From ed48e7d6f4b24967a353cf93f8249e354b48fd28 Mon Sep 17 00:00:00 2001 From: Dragon <> Date: Sat, 30 Mar 2024 08:26:45 +0800 Subject: [PATCH 01/26] bug --- src/views/final/content/Content.vue | 652 ++++++++++++++-------------- src/views/task/content/Content.vue | 2 +- 2 files changed, 336 insertions(+), 318 deletions(-) diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index d0b8596..6da9fac 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -1,6 +1,6 @@ @@ -743,7 +761,9 @@ async function refreshHandler(searchId?: any) {
- 小结查重 + + 小结查重 +
批量审批 @@ -761,19 +781,13 @@ async function refreshHandler(searchId?: any) {
  • - 批量导入数据 + 批量导入数据
  • - 导出待审数据 + 导出待审数据
  • - 导出全部数据 + 导出全部数据
@@ -823,10 +837,11 @@ async function refreshHandler(searchId?: any) { :on-success="sucessHandler" :header-config="headRules" /> - + + @@ -834,6 +849,9 @@ async function refreshHandler(searchId?: any) { From a45916ebd0d64089e14912eaf0a6d444fe54136c Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sat, 30 Mar 2024 16:00:37 +0800 Subject: [PATCH 11/26] =?UTF-8?q?fix:=20=E6=8E=A5=E5=8F=A3=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=B0=83=E6=95=B4=EF=BC=8C=E5=89=8D=E7=AB=AF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E9=98=BB=E5=A1=9E=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/worksheet/content/Content.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index 8cdbce5..4d2d7f0 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -496,7 +496,7 @@ function reloadList() {
图片大小 - {{ taskDetailInfo?.pictureInfo && + {{ taskDetailInfo?.pictureInfo && taskDetailInfo?.pictureInfo?.imgSize&& (taskDetailInfo?.pictureInfo?.imgSize / 1000).toFixed(2) }}KB
@@ -522,8 +522,7 @@ function reloadList() {
创建时间 - {{ taskDetailInfo?.pictureInfo && - format(taskDetailInfo?.pictureInfo?.createTime, 'yyyy-MM-dd HH:mm:ss') }} + {{ taskDetailInfo?.pictureInfo && taskDetailInfo?.pictureInfo.createTime }}
提报时间 From 8f499e6343070539fc9115d9c8ebe53cee643e30 Mon Sep 17 00:00:00 2001 From: Dragon <> Date: Sat, 30 Mar 2024 16:01:48 +0800 Subject: [PATCH 12/26] bug --- src/components/Approval/NotPassed.vue | 6 +-- src/views/task/aside/Aside.vue | 10 ++++- src/views/task/aside/ListItem.vue | 3 -- src/views/task/aside/TaskList.vue | 6 +++ src/views/task/content/Content.vue | 61 ++++++++++++--------------- src/views/task/index.vue | 11 ++++- 6 files changed, 52 insertions(+), 45 deletions(-) diff --git a/src/components/Approval/NotPassed.vue b/src/components/Approval/NotPassed.vue index e2d4031..04bad76 100644 --- a/src/components/Approval/NotPassed.vue +++ b/src/components/Approval/NotPassed.vue @@ -4,9 +4,7 @@ import { useMessage } from 'naive-ui' import { useDictionary } from '@/store/modules/dictonary' import { audit } from '@/api/task/task' -const emit = defineEmits<{ - (e: 'success') -}>() +const emit = defineEmits(['success']) const message = useMessage() const loading = ref(false) @@ -104,7 +102,7 @@ async function handleSumbit(e: MouseEvent) { const { code } = res if (code === 'OK') { message.success('审核成功') - emit('success') + emit('success', param) closeModal() } else { message.error(res.message) } diff --git a/src/views/task/aside/Aside.vue b/src/views/task/aside/Aside.vue index c8a8ab4..17d1790 100644 --- a/src/views/task/aside/Aside.vue +++ b/src/views/task/aside/Aside.vue @@ -20,7 +20,7 @@ import emitter from '@/utils/mitt' const CustomFieldModalRef = ref(null) const collapse = ref(false) const taskStore = useTaskStore() -const taskListRef = ref(null) +const taskListRef: any = ref(null) // 展示字段 const showFieldList = ref([]) @@ -144,6 +144,14 @@ function editFilter(filter: any) { modal.showModal() modal.edit(filter) } + +function setAsideItemName(text) { + taskListRef.value.setStatusName(text) +} + +defineExpose({ + setAsideItemName, +}) 返回 - + - +
@@ -447,44 +442,50 @@ function reloadList() {
- - + +
- +
- +
- + - {{ TASK_STATUS_OBJ[taskDetailInfo?.userapprove?.statshis] }} + {{ + TASK_STATUS_OBJ[taskDetailInfo?.userapprove?.statshis] + }} 审批状态 - + - {{ - totalCount - }} + {{ totalCount }} 相似匹配 @@ -492,11 +493,18 @@ function reloadList() {
- {{ formatToDateHMS(Number(taskDetailInfo.ocrPicture.photoDateTimestamp) || 0) }} + {{ + formatToDateHMS(Number(taskDetailInfo.ocrPicture.photoDateTimestamp) || 0) + }}
-
+
- {{ formatToDateHMS(Number(taskDetailInfo.ocrPicture.submitDateTimestamp) || 0) }} + {{ + formatToDateHMS(Number(taskDetailInfo.ocrPicture.submitDateTimestamp) || 0) + }}
@@ -520,16 +528,16 @@ function reloadList() { />
-
+
@@ -541,19 +549,36 @@ function reloadList() { />
- - + +
- {{ formatToDateHMS(Number(item.photoDateTimestamp) || 0) }} + {{ + formatToDateHMS(Number(item.photoDateTimestamp) || 0) + }}
- {{ formatToDateHMS(Number(item.submitDateTimestamp) || 0) }} + {{ + formatToDateHMS(Number(item.submitDateTimestamp) || 0) + }}
-
+
{{ item.similarityScore }}%
@@ -566,7 +591,11 @@ function reloadList() { - + @@ -576,12 +605,12 @@ function reloadList() { - + -
@@ -593,7 +622,7 @@ function reloadList() { color: #666666; } ::v-deep(.n-tabs-tab--active .n-tabs-tab__label) { - color: #507AFD; + color: #507afd; font-size: 16px; font-weight: 500; } @@ -612,49 +641,48 @@ function reloadList() { } } -.icon-wrap{ +.icon-wrap { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; - background: rgba(80,122,253,.1); + background: rgba(80, 122, 253, 0.1); border-radius: 8px; margin-left: 10px; cursor: pointer; } -.img-info{ - .icon-status{ +.img-info { + .icon-status { width: 32px; height: 32px; } - .label{ + .label { font-size: 11px; font-family: PingFang SC, PingFang SC-Medium; font-weight: 500; color: #ffffff; } - .value{ + .value { font-size: 15px; font-family: PingFang SC, PingFang SC-Semibold; font-weight: 600; color: #ffffff; } - .num{ + .num { font-size: 18px; font-family: PingFang SC, PingFang SC-Semibold; font-weight: 600; color: #ffffff; } - .unit{ + .unit { font-size: 11px; } - } .wrapper { display: flex; @@ -717,13 +745,13 @@ function reloadList() { display: flex; align-items: center; - .btn-approval{ + .btn-approval { width: 68px; height: 28px; cursor: pointer; } - .btn-left{ + .btn-left { margin-left: 16px; } } @@ -749,10 +777,15 @@ function reloadList() { border-radius: 8px; position: relative; - .big-mark{ + .big-mark { width: 100%; height: 151px; - background: linear-gradient(180deg,rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.00) 29%, rgba(3,0,0,0.73)); + background: linear-gradient( + 180deg, + rgba(0, 0, 0, 0) 0%, + rgba(0, 0, 0, 0) 29%, + rgba(3, 0, 0, 0.73) + ); position: absolute; left: 0; bottom: 0; @@ -806,7 +839,7 @@ function reloadList() { left: 16px; bottom: 16px; - .time-item{ + .time-item { display: flex; align-items: center; font-size: 14px; @@ -816,12 +849,12 @@ function reloadList() { margin-bottom: 4px; } - .time-item2{ + .time-item2 { margin-bottom: 0; } - .svg-time{ - margin-right: 5px + .svg-time { + margin-right: 5px; } } @@ -837,20 +870,20 @@ function reloadList() { justify-content: center; } - .check{ + .check { position: absolute; z-index: 3; left: 2%; top: 2%; } - .status{ + .status { position: absolute; z-index: 3; left: 0; top: 0; - .img-status{ + .img-status { width: 133px; height: 129px; } @@ -859,12 +892,12 @@ function reloadList() { .right { flex: 0.5; - background: #F6F9FD; + background: #f6f9fd; border-radius: 8px; margin-left: 20px; padding: 24px; - .right-card{ + .right-card { padding: 3px; } @@ -893,10 +926,14 @@ function reloadList() { // overflow: hidden; margin: 0px 16px 27px 0px; - .small-mark{ + .small-mark { width: 100%; height: 36px; - background: linear-gradient(180deg,rgba(0,0,0,0.01), rgba(0,0,0,0.44) 88%); + background: linear-gradient( + 180deg, + rgba(0, 0, 0, 0.01), + rgba(0, 0, 0, 0.44) 88% + ); border-radius: 0px 8px 8px 8px; position: absolute; left: 0; @@ -904,7 +941,7 @@ function reloadList() { z-index: 0; } - .tag-status{ + .tag-status { width: 46px; height: 22px; position: absolute; @@ -917,7 +954,7 @@ function reloadList() { z-index: 3; left: 3px; bottom: 3px; - .time-item{ + .time-item { display: flex; align-items: center; font-size: 10px; @@ -928,12 +965,12 @@ function reloadList() { line-height: 12px; } - .time-item2{ + .time-item2 { margin-bottom: 0; } - .svg-time{ - margin-right: 5px + .svg-time { + margin-right: 5px; } } @@ -973,12 +1010,12 @@ function reloadList() { font-size: 14px; } - .percent-unit{ + .percent-unit { font-size: 8px; - margin-top: 4px + margin-top: 4px; } - .percent-red{ + .percent-red { background: #ff4e4f; } } diff --git a/src/views/task/content/TaskTable.vue b/src/views/task/content/TaskTable.vue index a0d4a18..cda8791 100644 --- a/src/views/task/content/TaskTable.vue +++ b/src/views/task/content/TaskTable.vue @@ -1,4 +1,6 @@