diff --git a/src/components/Approval/NotPassed.vue b/src/components/Approval/NotPassed.vue index 7d3ea14..6d42cca 100644 --- a/src/components/Approval/NotPassed.vue +++ b/src/components/Approval/NotPassed.vue @@ -4,7 +4,7 @@ import { useMessage } from 'naive-ui' import { useDictionary } from '@/store/modules/dictonary' import { audit } from '@/api/task/task' -const emit = defineEmits(['success']) +const emit = defineEmits(['success','close']) const message = useMessage() const loading = ref(false) @@ -42,6 +42,7 @@ function showModal(value) { function closeModal() { show.value = false + emit('close') } defineExpose({ diff --git a/src/layout/components/Header/RecycleModal.vue b/src/layout/components/Header/RecycleModal.vue index f90529f..46688d4 100644 --- a/src/layout/components/Header/RecycleModal.vue +++ b/src/layout/components/Header/RecycleModal.vue @@ -600,7 +600,10 @@ watch(() => show.value, watch(() => pagination.pageNo, - (newVal) => { + (newVal, oldVal) => { + if(newVal == oldVal) { + return + } if((newVal == 1 || newVal == 2) && canloadMore) { setTimeout(() => { nextTick(() => { diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index a7aa03d..eb4b794 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -574,15 +574,13 @@ const scrollX = computed(() => { return const tableEl: any = table?.$el const wrapper = tableEl.querySelector('.n-data-table-wrapper') - const arr = columnsRef.value.filter(item => !item.fixed) + // const arr = columnsRef.value.filter(item => !item.fixed) let width = 0 - console.log(arr) - arr.forEach((item) => { + columnsRef.value.forEach((item) => { width += Number(item.width) || 200 }) - console.log(wrapper.offsetWidth + width) - console.log(arr) - return wrapper.offsetWidth + width + + return width }) query(pagination.page, pagination.pageSize) @@ -1196,4 +1194,8 @@ defineExpose({ :deep(.n-data-table .n-data-table-td) { color: #666; } + +:deep(.n-data-table .n-data-table-base-table-header) { + overflow: hidden; +} diff --git a/src/views/home/aside/comp/AdvanceFilter.vue b/src/views/home/aside/comp/AdvanceFilter.vue index a882283..8a18413 100644 --- a/src/views/home/aside/comp/AdvanceFilter.vue +++ b/src/views/home/aside/comp/AdvanceFilter.vue @@ -414,7 +414,7 @@ defineExpose({ align-items: center; position: absolute; left: 0; - top: -5px; + width: 100%; padding: 12px 16px; border-bottom: 1px solid #e8e8e8; diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index fc77327..a03961b 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -157,9 +157,17 @@ function handleKeydown(event) { // 如果两次按键时间间隔小于我们设定的双击间隔,则认为是双击 if (now - lastKeyPressTime < doubleClickInterval) { - // 清除已经设置的定时器(如果有的话) - clearTimeout(keyPressTimer); + const item = taskDetailInfo.value; + if ( + item?.userapprove?.statshis === 2 || + item?.userapprove?.statshis == 3 + ) { + overTask.value = null; + return; + } + if (validate([item]) == null && batch.value === false) + overTask.value = item; // 执行想要的操作 const modal = unref(notPassModalRef)! as any; modal.showModal([taskDetailInfo.value]); @@ -270,12 +278,24 @@ function approvalHandler(items?: any) { negativeText: "取消", onPositiveClick: () => { doAudit(param); + overTask.value = null; }, - onNegativeClick: () => {}, + onNegativeClick: () => {overTask.value = null;}, }); } +function approvalHandlerx(item?:any){ + + console.log(item) + alert(1) +} +function singleRejectHandlex(item?:any){ + console.log(item) + const modal = unref(notPassModalRef)! as any; + modal.showModal([item]); +} function rejectHandler(items?: any) { + console.log(items) const modal = unref(notPassModalRef)! as any; modal.showModal(items); } @@ -334,7 +354,7 @@ async function addSuspicious() { const res = await dubiousfileyd({ pictureid: taskDetailInfo.value.ocrPicture.id, }); - console.log(res) + if (res.code === "OK") { message.success("加入成功"); setBatch(false); @@ -411,6 +431,7 @@ function overTaskHandle() { function leaveTaskHandler() { overTask.value = null; + overTasktwo.value = null; } function showActionsModal() { @@ -461,6 +482,7 @@ async function getDetail() { function notPassSuccess(param) { batchModalRef.value.reload(); reloadList(param, "不通过"); + overTask.value=null } function reloadList(param, text) { @@ -507,6 +529,9 @@ function overTaskHandelr(item: any) { if (validate([item]) == null && batchtwo.value === false) overTasktwo.value = item; } +function closePassno(){ + overTask.value=null +}