From 6af37bf71df3e38abd8d72b7fd7f86a0a8285e24 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sun, 31 Mar 2024 18:22:03 +0800 Subject: [PATCH 01/11] =?UTF-8?q?fix:=20=E6=96=87=E5=AD=97=E5=A4=AA?= =?UTF-8?q?=E9=95=BF=E6=98=BE=E7=A4=BA=E5=A2=9E=E5=8A=A0popver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/worksheet/aside/ListItem.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/worksheet/aside/ListItem.vue b/src/views/worksheet/aside/ListItem.vue index acb324e..39d46f5 100644 --- a/src/views/worksheet/aside/ListItem.vue +++ b/src/views/worksheet/aside/ListItem.vue @@ -36,7 +36,7 @@ const popconfirmTarget: any = ref(null) const popconfirmRef: any = ref(null) function handleDismissTask() { - emit('dismisClick', props.mouseOverTask.id) + emit('dismisClick', props.mouseOverTask.id) popconfirmRef.value[0]?.setShow(false); // 关闭 popconfirm } @@ -69,21 +69,21 @@ onMounted(async () => { @@ -185,6 +185,5 @@ onMounted(async () => { position: absolute; bottom: 0px; } -} - +} ../types From afc7b81d9925a952c1f41567bd8123dc34678396 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sun, 31 Mar 2024 18:30:30 +0800 Subject: [PATCH 02/11] =?UTF-8?q?fix:=202872=20=E3=80=90=E5=9B=BE=E5=AE=A1?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E7=AE=A1=E7=90=86=E3=80=91=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E4=BB=BB=E5=8A=A1=E5=8C=85=E6=98=BE=E7=A4=BA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8E=EF=BC=8C=E5=B7=A6=E4=BE=A7=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9C=AA=E5=B1=95=E7=A4=BA=E5=AF=B9=E5=BA=94=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/worksheet/aside/ListItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/worksheet/aside/ListItem.vue b/src/views/worksheet/aside/ListItem.vue index 39d46f5..c6febe5 100644 --- a/src/views/worksheet/aside/ListItem.vue +++ b/src/views/worksheet/aside/ListItem.vue @@ -82,7 +82,7 @@ onMounted(async () => {
  • 生成时间:{{ listItem.createTime && format(listItem.createTime, "yyyy-MM-dd HH:mm:ss") }}
  • -
  • +
  • {{ item.name }}:{{ listItem[item.id] }}
  • From 8507763b45720397e960923959cae6d72b87ebd9 Mon Sep 17 00:00:00 2001 From: Dragon <> Date: Sun, 31 Mar 2024 18:32:58 +0800 Subject: [PATCH 03/11] =?UTF-8?q?=E5=B0=8F=E7=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/final/index.ts | 38 +- src/views/final/comp/RepeatModal.vue | 11 +- src/views/final/comp/RepeatTaskTableModal.vue | 416 ++++++++++++------ src/views/final/content/Content.vue | 52 ++- 4 files changed, 357 insertions(+), 160 deletions(-) diff --git a/src/api/final/index.ts b/src/api/final/index.ts index e7249f8..10d4f30 100644 --- a/src/api/final/index.ts +++ b/src/api/final/index.ts @@ -30,11 +30,11 @@ export async function getFinalList(params: FinalParam) { params: notEmptyParams, }) - const { data: { list, totalPage,totalCount } } = res + const { data: { list, totalPage, totalCount } } = res return { pageCount: totalPage, data: list, - totalCount + totalCount, } } @@ -62,3 +62,37 @@ export async function repetitionTask() { method: 'get', }) } + +/** + * 获取审核列表 + * @returns + */ +export async function getRepeatList(params: FinalParam) { + const notEmptyParams = pickBy(params, notEmpty) + + Object.keys(notEmptyParams).forEach((key) => { + const val = notEmptyParams[key] + + if (key === 'izuptime') { + const start = formatToDate2(val[0]) + const end = formatToDate2(val[1]) + notEmptyParams[key] = `${start}-${end}` + } + + if (Array.isArray(notEmptyParams[key])) + notEmptyParams[key] = val.join(',') + }) + + const res = await http.request({ + url: `/flow/task/repetitionTaskList`, + method: 'get', + params: notEmptyParams, + }) + + const { data: { list, totalPage, totalCount } } = res + return { + pageCount: totalPage, + data: list, + totalCount, + } +} diff --git a/src/views/final/comp/RepeatModal.vue b/src/views/final/comp/RepeatModal.vue index 8ae0db5..d0ed920 100644 --- a/src/views/final/comp/RepeatModal.vue +++ b/src/views/final/comp/RepeatModal.vue @@ -22,6 +22,7 @@ const { detail, total } = toRefs(state) const show = ref(false) function showModal(id) { + state.total = 0 getDetail(id) } @@ -45,7 +46,13 @@ function closeModal() { } async function reject() { - emit('reject', { a: 'todo' }) + const list = [] + state.detail.forEach((items) => { + items.repeatedTaskList.forEach((item) => { + list.push(item) + }) + }) + emit('reject', list) closeModal() } @@ -157,7 +164,7 @@ defineExpose({ border-radius: 8px; padding: 16px; padding-top: 0; - margin: 45px 12px 35px 38px; + margin: 25px 12px 35px 38px; .imgwrapper { width: 160px; diff --git a/src/views/final/comp/RepeatTaskTableModal.vue b/src/views/final/comp/RepeatTaskTableModal.vue index d0f6d99..0b62d37 100644 --- a/src/views/final/comp/RepeatTaskTableModal.vue +++ b/src/views/final/comp/RepeatTaskTableModal.vue @@ -1,101 +1,156 @@ From b2975583294f5673287be256625f7f1560a1ece4 Mon Sep 17 00:00:00 2001 From: Dragon <> Date: Sun, 31 Mar 2024 23:29:09 +0800 Subject: [PATCH 09/11] bug --- src/assets/icons/summary.svg | 26 ++++++ src/components/Approval/NotPassed.vue | 8 +- src/views/final/comp/RepeatTaskTableModal.vue | 2 +- src/views/final/content/Content.vue | 3 +- src/views/task/content/Content.vue | 92 ++++++++++++------- 5 files changed, 95 insertions(+), 36 deletions(-) create mode 100644 src/assets/icons/summary.svg diff --git a/src/assets/icons/summary.svg b/src/assets/icons/summary.svg new file mode 100644 index 0000000..075c554 --- /dev/null +++ b/src/assets/icons/summary.svg @@ -0,0 +1,26 @@ + + + chazhongjiansuo + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/Approval/NotPassed.vue b/src/components/Approval/NotPassed.vue index b2e53a5..7d3ea14 100644 --- a/src/components/Approval/NotPassed.vue +++ b/src/components/Approval/NotPassed.vue @@ -101,7 +101,7 @@ async function handleSumbit(e: MouseEvent) { audit(param).then((res) => { const { code } = res if (code === 'OK') { - message.success('审核成功') + message.success(res.message) emit('success', param) closeModal() } @@ -199,6 +199,8 @@ async function selectChange(id) { justify-content: flex-end; padding-right: 24px; padding-bottom: 10px; + border-top: 0.5px solid #d9d9d9; + padding-top: 15px; } &-info { @@ -236,6 +238,10 @@ async function selectChange(id) { margin-bottom: 0px; } +::v-deep(.n-form-item-label__text) { + color: #666666; +} + ::v-deep(.n-input__placeholder) { color: #333333!important; } diff --git a/src/views/final/comp/RepeatTaskTableModal.vue b/src/views/final/comp/RepeatTaskTableModal.vue index 00947ed..0d1c1ae 100644 --- a/src/views/final/comp/RepeatTaskTableModal.vue +++ b/src/views/final/comp/RepeatTaskTableModal.vue @@ -322,7 +322,7 @@ function doAudit(param: any) { audit(param).then((res) => { const { code } = res if (code === 'OK') { - message.success('审核成功') + message.success(res.message) reload() } else { message.error(res.message) } diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index cd56c0c..71285a0 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -717,7 +717,7 @@ function doAudit(param: any) { audit(param).then((res) => { const { code } = res if (code === 'OK') { - message.success('审核成功') + message.success(res.message) reload() } else { message.error(res.message) } @@ -762,6 +762,7 @@ async function refreshHandler(searchId?: any) {
    + 小结查重 diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index e0c9fe3..488edf8 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -2,7 +2,7 @@ import { computed, onMounted, onUnmounted, reactive, ref, unref, watch } from 'vue' import { chunk, clone } from 'lodash-es' import { useDialog, useMessage } from 'naive-ui' -import { useRoute } from 'vue-router' +import { useRoute, useRouter } from 'vue-router' import BatchModal from '../modal/BatchModal.vue' import CustomSettingModal from '../modal/CustomSettingModal.vue' import PictureTable from './PictureTable.vue' @@ -25,6 +25,9 @@ import { formatToDateHMS } from '@/utils/dateUtil' import { hideDownload } from '@/utils/image' const emit = defineEmits(['setAsideItemName']) + +const router = useRouter() + const batch = ref(false) const selectItems = ref([]) const message = useMessage() @@ -37,22 +40,12 @@ const packageId: any = ref('') // 包id const CustomSettingModalRef = ref(null) const taskTableData = ref([]) const route = useRoute() - +const isDetail = ref(false) // 是否是详情 const sortBy: any = { orderType: 'desc', orderName: 'similarityScore', } -function setBatch(value: boolean) { - if (totalCount.value === 0) - return - - batch.value = value - - if (value === false) - selectItems.value = [] -} - function onCheckChange(checked: any, item: any) { const index = selectItems.value.indexOf(item) item.checked = checked @@ -77,23 +70,23 @@ const taskDetailPictureList = ref([]) const userStore = useUser() const imageRef = ref() let processItems: any[] = [] -const isFullScreen = ref(false); +const isFullScreen = ref(false) const fullscreenStyles = computed(() => ({ - 'width': isFullScreen.value ? '100vw' : '', - 'height': isFullScreen.value ? '100vh' : '', - 'position': isFullScreen.value ? 'fixed' : '', - 'top': isFullScreen.value ? '0' : '', - 'left': isFullScreen.value ? '0' : '', - 'zIndex': isFullScreen.value ? '9999' : '', -})); - + width: isFullScreen.value ? '100vw' : '', + height: isFullScreen.value ? '100vh' : '', + position: isFullScreen.value ? 'fixed' : '', + top: isFullScreen.value ? '0' : '', + left: isFullScreen.value ? '0' : '', + zIndex: isFullScreen.value ? '9999' : '', +})) onMounted(() => { window.addEventListener('keydown', handleKeydown) if (route.query.id) { taskId.value = route.query.id packageId.value = route.query.packageid + isDetail.value = true getDetail() } }) @@ -108,6 +101,21 @@ function handleKeydown(event) { // 在这里执行右箭头的逻辑 } +function setBatch(value: boolean) { + // if (totalCount.value === 0) + // return + + batch.value = value + + if (value === false) { + taskDetailInfo.value.checked = false + selectItems.value = [] + taskDetailPictureList.value.forEach((item) => { + item.checked = false + }) + } +} + // 从store里面获取任务id function currentTaskId() { const index = taskStore.getCurrentIndex @@ -202,7 +210,7 @@ function doAudit(param: any) { audit(param).then((res) => { const { code } = res if (code === 'OK') { - message.success('审核成功') + message.success(res.message) setBatch(false) reloadList(param, '通过') } @@ -311,12 +319,12 @@ onUnmounted(() => { function immersionHandler() { // taskStore.updateImmersion() - toggleFullScreen(); + toggleFullScreen() } // 切换全屏状态 -const toggleFullScreen = () => { - isFullScreen.value = !isFullScreen.value; -}; +function toggleFullScreen() { + isFullScreen.value = !isFullScreen.value +} function previewHandler(event: MouseEvent) { event.stopImmediatePropagation() event.stopPropagation() @@ -354,6 +362,14 @@ function reloadList(param, text) { getDetail() } + +function goBack() { + router.back() +} + +function switchBatch() { + setBatch(!batch.value) +}