From 55c9130d18c017cdc593d14e77f6497f46298ca1 Mon Sep 17 00:00:00 2001 From: zhuangdashia Date: Thu, 19 Jun 2025 14:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF?= =?UTF-8?q?++?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 8 ++ src/service/api/workflow.ts | 7 ++ src/views/workflow/task/index.vue | 197 ++++++++++++++++++++++++++++-- 4 files changed, 206 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index ef1a591..0413f8c 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "@sa/hooks": "workspace:*", "@sa/materials": "workspace:*", "@sa/utils": "workspace:*", + "@vicons/fluent": "^0.13.0", "@vueuse/core": "12.5.0", "clipboard": "2.0.11", "dayjs": "1.11.13", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e21f11..8d49e3d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,6 +41,9 @@ importers: '@sa/utils': specifier: workspace:* version: link:packages/utils + '@vicons/fluent': + specifier: ^0.13.0 + version: 0.13.0 '@vueuse/core': specifier: 12.5.0 version: 12.5.0(typescript@5.7.3) @@ -1639,6 +1642,9 @@ packages: peerDependencies: vite: ^2.9.0 || ^3.0.0-0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 + '@vicons/fluent@0.13.0': + resolution: {integrity: sha512-bYGZsOE3qzvm3Cm43e7tybgGlr5ZUpYqtRZq0g0Tfupe8jIzLolpvQLNUt1zS8Mgt6goTbUk5YH7Fkv16jkykg==} + '@vitejs/plugin-vue-jsx@4.1.1': resolution: {integrity: sha512-uMJqv/7u1zz/9NbWAD3XdjaY20tKTf17XVfQ9zq4wY1BjsB/PjpJPMe2xiG39QpP4ZdhYNhm4Hvo66uJrykNLA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -6350,6 +6356,8 @@ snapshots: - supports-color - vue + '@vicons/fluent@0.13.0': {} + '@vitejs/plugin-vue-jsx@4.1.1(vite@6.1.0(@types/node@22.13.1)(jiti@2.4.2)(sass@1.84.0)(tsx@4.19.2)(yaml@2.7.0))(vue@3.5.13(typescript@5.7.3))': dependencies: '@babel/core': 7.26.0 diff --git a/src/service/api/workflow.ts b/src/service/api/workflow.ts index 15e91e6..7c80bc2 100644 --- a/src/service/api/workflow.ts +++ b/src/service/api/workflow.ts @@ -158,3 +158,10 @@ export function fetchWorkflowHistoryDetail(id: string, version: string) { method: 'get' }); } + +export function fetchDeleteWorkflowHistory(id: string ,version: string) { + return request({ + url: `/workflow/history/del/${id}?version=${version}`, + method: 'get' + }); +} diff --git a/src/views/workflow/task/index.vue b/src/views/workflow/task/index.vue index 48088bc..6d69c96 100644 --- a/src/views/workflow/task/index.vue +++ b/src/views/workflow/task/index.vue @@ -1,9 +1,16 @@