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/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/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'), }, 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 bf855f4..cb9350c 100644 --- a/src/views/worksheet/aside/ListItem.vue +++ b/src/views/worksheet/aside/ListItem.vue @@ -1,8 +1,10 @@ @@ -45,8 +50,16 @@ onMounted(async () => {
- {{ listItem.name }} + + {{ listItem.name }} + ({{ listItem.pictureCount }}) + + + 解散任务包 +
@@ -103,6 +116,11 @@ onMounted(async () => { margin-bottom: 6px } + .dismiss-task-pack { + position: absolute; + right: 15px; + } + .list-item-header-name { width: 250px; font-size: 16px; @@ -111,8 +129,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/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 @@