From bb88e3d77c22fe122367db90c921ced5b0aeaf6a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 5 Apr 2023 00:12:12 +0800 Subject: [PATCH] =?UTF-8?q?REVIEW=20=E5=B7=B2=E5=AE=8C=E6=88=90=E7=9A=84?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/vite/index.ts | 2 +- package.json | 1 + src/router/modules/remaining.ts | 12 --- .../done/{Taskdetail.vue => TaskDetail.vue} | 10 +- src/views/bpm/task/done/index.vue | 101 +++++++----------- 5 files changed, 49 insertions(+), 77 deletions(-) rename src/views/bpm/task/done/{Taskdetail.vue => TaskDetail.vue} (84%) diff --git a/build/vite/index.ts b/build/vite/index.ts index 7d3aa5be..0e721ce9 100644 --- a/build/vite/index.ts +++ b/build/vite/index.ts @@ -98,7 +98,7 @@ export function createVitePlugins() { deleteOriginFile: false //压缩后是否删除源文件 }), ViteEjsPlugin(), - topLevelAwait({ + topLevelAwait({ // https://juejin.cn/post/7152191742513512485 // The export name of top-level await promise for each chunk module promiseExportName: '__tla', // The function to generate import names of top-level await promise in each chunk module diff --git a/package.json b/package.json index b7629029..6309ddc9 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "build:dev": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev", "build:test": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode test", "build:static": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode static", + "build:front": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode front", "serve:pro": "vite preview --mode pro", "serve:dev": "vite preview --mode dev", "serve:test": "vite preview --mode test", diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 92625cdc..2dc9522d 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -317,18 +317,6 @@ const remainingRouter: AppRouteRecordRaw[] = [ title: '查看 OA 请假', activeMenu: 'bpm/oa/leave/detail' } - }, - { - path: '/bpm/task/done', - component: () => import('@/views/bpm/task/done/index.vue'), - name: 'TaskDone', - meta: { - noCache: true, - hidden: true, - canTo: true, - title: '已办任务', - activeMenu: 'bpm/task/done/index' - } } ] }, diff --git a/src/views/bpm/task/done/Taskdetail.vue b/src/views/bpm/task/done/TaskDetail.vue similarity index 84% rename from src/views/bpm/task/done/Taskdetail.vue rename to src/views/bpm/task/done/TaskDetail.vue index cef57cb7..4c293c17 100644 --- a/src/views/bpm/task/done/Taskdetail.vue +++ b/src/views/bpm/task/done/TaskDetail.vue @@ -1,5 +1,5 @@ diff --git a/src/views/bpm/task/done/index.vue b/src/views/bpm/task/done/index.vue index 735f4edc..75ba0fef 100644 --- a/src/views/bpm/task/done/index.vue +++ b/src/views/bpm/task/done/index.vue @@ -14,36 +14,30 @@ placeholder="请输入任务名称" clearable @keyup.enter="handleQuery" + class="!w-240px" /> - - - - + + 搜索 重置 - - 导出 - + - + @@ -63,8 +57,8 @@ /> @@ -76,46 +70,28 @@ @pagination="getList" /> + - +