From ff11552fc67086b1f3ff97fe1599a30a0ecb6976 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sat, 30 Mar 2024 16:06:56 +0800 Subject: [PATCH 1/7] =?UTF-8?q?fix:=202819=20=E3=80=90AI=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=91=E5=90=8D=E5=AD=97=E6=94=B9=E5=8F=98?= =?UTF-8?q?=EF=BC=8C=E5=8F=98=E6=88=90=E5=9B=BE=E5=AE=A1=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/user/user.ts | 2 +- src/router/modules/worksheet.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mock/user/user.ts b/mock/user/user.ts index 22854ed..ff5816e 100644 --- a/mock/user/user.ts +++ b/mock/user/user.ts @@ -23,7 +23,7 @@ const adminInfo = { value: 'task-main', }, { - label: 'AI工单', + label: '图审审批管理', value: 'worksheet-main', }, ], diff --git a/src/router/modules/worksheet.ts b/src/router/modules/worksheet.ts index 8a46a38..d80eb8d 100644 --- a/src/router/modules/worksheet.ts +++ b/src/router/modules/worksheet.ts @@ -1,5 +1,5 @@ -import type { RouteRecordRaw } from 'vue-router' import { Layout } from '@/router/constant' +import type { RouteRecordRaw } from 'vue-router' /** * @param name 路由名称, 必须设置,且不能重名 @@ -19,7 +19,7 @@ const routes: Array = [ redirect: '/worksheet', component: Layout, meta: { - title: 'AI工单', + title: '图审审批管理', permissions: ['worksheet-main'], svgname: 'worksheet', svgsize: 22, @@ -30,7 +30,7 @@ const routes: Array = [ path: 'worksheet', name: 'worksheet-main', meta: { - title: 'AI工单', + title: '图审审批管理', }, component: () => import('@/views/worksheet/index.vue'), }, -- 2.39.3 From d4ee5d73b766af7b002ce75daa2f7fcec1f05de4 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sat, 30 Mar 2024 23:48:06 +0800 Subject: [PATCH 2/7] =?UTF-8?q?fix:=20=E6=96=87=E5=AD=97=E8=B6=85=E5=87=BA?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=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 | 10 +++++++--- src/views/worksheet/content/Content.vue | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/worksheet/aside/ListItem.vue b/src/views/worksheet/aside/ListItem.vue index bf855f4..00db5f3 100644 --- a/src/views/worksheet/aside/ListItem.vue +++ b/src/views/worksheet/aside/ListItem.vue @@ -45,7 +45,9 @@ onMounted(async () => {
- {{ listItem.name }} + + {{ listItem.name }}{{ listItem.name }}{{ listItem.name }}{{ listItem.name }}{{ listItem.name }} + ({{ listItem.pictureCount }})
@@ -111,8 +113,10 @@ onMounted(async () => { color: #333333; margin-bottom: 0 0 8px 8px; display: flex; - justify-content: space-between; - .list-item-title{ + justify-content: flex-start; + align-items: center; + + .list-item-title { width: 200px; display: inline-block; white-space: nowrap; diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index 4d2d7f0..b26ca8a 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -480,7 +480,7 @@ function reloadList() {
- 任务ID:{{ taskDetailInfo.taskname }} + 任务ID:{{ taskDetailInfo.taskname }}
{{ TASK_STATUS_OBJ[taskDetailInfo.states] }}
-- 2.39.3 From f3e7bd4c4b442e20f8485956c546c659ca0856a1 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sat, 30 Mar 2024 23:51:47 +0800 Subject: [PATCH 3/7] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E4=BB=BB=E5=8A=A1=E5=8C=85=E5=90=8D=E7=A7=B0?= 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 00db5f3..8a3c4f6 100644 --- a/src/views/worksheet/aside/ListItem.vue +++ b/src/views/worksheet/aside/ListItem.vue @@ -46,7 +46,7 @@ onMounted(async () => { - {{ listItem.name }}{{ listItem.name }}{{ listItem.name }}{{ listItem.name }}{{ listItem.name }} + {{ listItem.name }} ({{ listItem.pictureCount }}) -- 2.39.3 From 1fa07621a5d16eb3111ff5f1db912dc81dabf1c0 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sun, 31 Mar 2024 00:07:45 +0800 Subject: [PATCH 4/7] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=8F=90=E6=8A=A5?= =?UTF-8?q?=E4=BA=BA=E6=8F=90=E6=8A=A5=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/worksheet/aside/ListItem.vue | 2 +- src/views/worksheet/content/Content.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/worksheet/aside/ListItem.vue b/src/views/worksheet/aside/ListItem.vue index 8a3c4f6..f80514d 100644 --- a/src/views/worksheet/aside/ListItem.vue +++ b/src/views/worksheet/aside/ListItem.vue @@ -45,7 +45,7 @@ onMounted(async () => {
- + {{ listItem.name }} ({{ listItem.pictureCount }}) diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index b26ca8a..7bacc6a 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -517,7 +517,7 @@ function reloadList() {
提报人 - {{ taskDetailInfo?.pictureInfo?.source || "-" }} + {{ taskDetailInfo?.upname || "-" }}
创建时间 @@ -527,8 +527,8 @@ function reloadList() {
提报时间 - {{ taskDetailInfo?.uploadTime && - format(taskDetailInfo?.pictureInfo?.uploadTime, 'yyyy-MM-dd HH:mm:ss') || '-' }} + {{ taskDetailInfo?.submitDateTimestamp && + format(taskDetailInfo?.submitDateTimestamp, 'yyyy-MM-dd HH:mm:ss') || '-' }}
{{ fieldMap[key] }} -- 2.39.3 From 331b75636b8f7b27ab226e5d43f81db4f4ab18f6 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Sun, 31 Mar 2024 01:28:55 +0800 Subject: [PATCH 5/7] =?UTF-8?q?feat:=20=E8=A7=A3=E6=95=A3=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/main.ts | 13 ++++++++ src/views/home/content/Content.vue | 5 --- src/views/worksheet/aside/ListItem.vue | 36 +++++++++++++++------ src/views/worksheet/aside/WorkSheetList.vue | 30 +++++++++++++---- 4 files changed, 62 insertions(+), 22 deletions(-) diff --git a/src/api/home/main.ts b/src/api/home/main.ts index bd661e2..5f70458 100644 --- a/src/api/home/main.ts +++ b/src/api/home/main.ts @@ -180,6 +180,19 @@ export async function oneClickCheck(params: Partial = { search_histo params }) } +/** + * 解散任务包 + * @param + * @returns + */ + export async function deletePackage(params) { + + return http.request({ + url: `/ocr/ocrTaskPackage/deletePackage`, + method: 'get', + params + }) +} /** * 任务完成——创建任务包前——获取图片列表 * @param diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue index 8ebdf46..52595ad 100644 --- a/src/views/home/content/Content.vue +++ b/src/views/home/content/Content.vue @@ -236,11 +236,6 @@ async function tasksLoadingCloseCallback() { checkingTaskModal.showModal() } -async function showLoginSuccessModal() { - const modal = LoginSuccessModalRef.value as any - // modal.showModal() -} - async function commitHandler(settingParam) { const params = { name: settingParam.packagename, diff --git a/src/views/worksheet/aside/ListItem.vue b/src/views/worksheet/aside/ListItem.vue index f80514d..cb9350c 100644 --- a/src/views/worksheet/aside/ListItem.vue +++ b/src/views/worksheet/aside/ListItem.vue @@ -1,8 +1,10 @@ @@ -46,9 +51,15 @@ onMounted(async () => { - {{ listItem.name }} + {{ listItem.name }} ({{ listItem.pictureCount }}) + + + 解散任务包 +
@@ -105,6 +116,11 @@ onMounted(async () => { margin-bottom: 6px } + .dismiss-task-pack { + position: absolute; + right: 15px; + } + .list-item-header-name { width: 250px; font-size: 16px; diff --git a/src/views/worksheet/aside/WorkSheetList.vue b/src/views/worksheet/aside/WorkSheetList.vue index 39cb0b7..4292eb4 100644 --- a/src/views/worksheet/aside/WorkSheetList.vue +++ b/src/views/worksheet/aside/WorkSheetList.vue @@ -1,9 +1,11 @@