|
|
|
|
@ -1,8 +1,9 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed, onMounted, reactive, ref, unref, watch,defineProps } from 'vue'
|
|
|
|
|
import { computed, defineProps, onMounted, reactive, ref, unref, watch } from 'vue'
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
import { chunk } from 'lodash-es'
|
|
|
|
|
import { chunk, cloneDeep } from 'lodash-es'
|
|
|
|
|
import { useDialog, useMessage } from 'naive-ui'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
import { RepeatModal, RepeatTaskTableModal } from '../comp'
|
|
|
|
|
import testImg from '@/assets/images/test.png'
|
|
|
|
|
import type { RowData } from '@/config/final'
|
|
|
|
|
@ -10,10 +11,16 @@ import { getFinalList } from '@/api/final'
|
|
|
|
|
import { useFinal } from '@/store/modules/final'
|
|
|
|
|
import { formatToDateHMS } from '@/utils/dateUtil'
|
|
|
|
|
import { audit } from '@/api/task/task'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
import { cloneDeep } from 'lodash-es'
|
|
|
|
|
|
|
|
|
|
import NotPassed from '@/components/Approval/NotPassed.vue'
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
|
|
|
|
taskvalue: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
const emit = defineEmits(['changeShow'])
|
|
|
|
|
const dialog = useDialog()
|
|
|
|
|
const message = useMessage()
|
|
|
|
|
@ -26,13 +33,6 @@ const total = ref(0)
|
|
|
|
|
const scrollContainer = ref(null)
|
|
|
|
|
const tableData = ref<any>([])
|
|
|
|
|
const finalStore = useFinal()
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
|
|
|
|
taskvalue: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: ""
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
let num = 1
|
|
|
|
|
const pagination = reactive({
|
|
|
|
|
page: 1,
|
|
|
|
|
@ -103,23 +103,21 @@ async function initData(
|
|
|
|
|
// console.log(asideParmas.izyear)
|
|
|
|
|
// asideParmas.izuptime = cloneDeep(asideParmas.izyear)
|
|
|
|
|
// asideParmas.izuptime = asideParmas.izyear.split(",");
|
|
|
|
|
let ontime = dayjs(asideParmas.izyear[0]).format(
|
|
|
|
|
const ontime = dayjs(asideParmas.izyear[0]).format(
|
|
|
|
|
'YYYY/MM/DD',
|
|
|
|
|
)
|
|
|
|
|
let twotime = dayjs(asideParmas.izyear[1]).format(
|
|
|
|
|
const twotime = dayjs(asideParmas.izyear[1]).format(
|
|
|
|
|
'YYYY/MM/DD',
|
|
|
|
|
)
|
|
|
|
|
asideParmas.izuptime =ontime+"-"+twotime
|
|
|
|
|
asideParmas.izuptime = `${ontime}-${twotime}`
|
|
|
|
|
// delete asideParmas.izyear
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// 有过滤配置的时候优先使用过滤配置,不要使用左侧参数
|
|
|
|
|
// let params = filterId ? { userSearchId: filterId } : asideParmas
|
|
|
|
|
let params = asideParmas
|
|
|
|
|
if (params?.izshowall == true)
|
|
|
|
|
{
|
|
|
|
|
const params = asideParmas
|
|
|
|
|
if (params?.izshowall == true) {
|
|
|
|
|
params.isFail = true
|
|
|
|
|
delete params.izshowall;
|
|
|
|
|
delete params.izshowall
|
|
|
|
|
}
|
|
|
|
|
const result = await getFinalList({
|
|
|
|
|
sortorder: sortorder.value,
|
|
|
|
|
@ -162,23 +160,21 @@ async function query(
|
|
|
|
|
// console.log(asideParmas.izyear)
|
|
|
|
|
// asideParmas.izuptime = cloneDeep(asideParmas.izyear)
|
|
|
|
|
// asideParmas.izuptime = asideParmas.izyear.split(",");
|
|
|
|
|
let ontime = dayjs(asideParmas.izyear[0]).format(
|
|
|
|
|
const ontime = dayjs(asideParmas.izyear[0]).format(
|
|
|
|
|
'YYYY/MM/DD',
|
|
|
|
|
)
|
|
|
|
|
let twotime = dayjs(asideParmas.izyear[1]).format(
|
|
|
|
|
const twotime = dayjs(asideParmas.izyear[1]).format(
|
|
|
|
|
'YYYY/MM/DD',
|
|
|
|
|
)
|
|
|
|
|
asideParmas.izuptime =ontime+"-"+twotime
|
|
|
|
|
asideParmas.izuptime = `${ontime}-${twotime}`
|
|
|
|
|
// delete asideParmas.izyear
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
let params = asideParmas
|
|
|
|
|
if (params?.izshowall == true)
|
|
|
|
|
{
|
|
|
|
|
if (params?.izshowall == true) {
|
|
|
|
|
params.isFail = true
|
|
|
|
|
delete params.izshowall;
|
|
|
|
|
delete params.izshowall
|
|
|
|
|
}
|
|
|
|
|
params = params?.izshowall ? {isFail:true} : params;
|
|
|
|
|
params = params?.izshowall ? { isFail: true } : params
|
|
|
|
|
const result = await getFinalList({
|
|
|
|
|
sortorder: sortorder.value,
|
|
|
|
|
pageSize,
|
|
|
|
|
@ -189,7 +185,7 @@ async function query(
|
|
|
|
|
...params,
|
|
|
|
|
})
|
|
|
|
|
const { data, pageCount, totalCount } = result
|
|
|
|
|
console.log(data, pageCount, totalCount);
|
|
|
|
|
console.log(data, pageCount, totalCount)
|
|
|
|
|
const newlist = []
|
|
|
|
|
const oldlist = tableData.value
|
|
|
|
|
if (oldlist.length > 0) {
|
|
|
|
|
@ -423,7 +419,6 @@ function checkBottom() {
|
|
|
|
|
if (!container)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const { scrollTop, clientHeight, scrollHeight } = container;
|
|
|
|
|
const scrollTop = window.pageYOffset || document.documentElement.scrollTop
|
|
|
|
|
|
|
|
|
|
@ -753,6 +748,7 @@ defineExpose({
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 0px 24px 24px 24px;
|
|
|
|
|
|