From 806545c7ad100b2e2901ef3ad0946ff998456879 Mon Sep 17 00:00:00 2001
From: ssc <273702440@qq.com>
Date: Sat, 2 Apr 2022 20:26:19 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=81=E7=A8=8B=E7=89=A9=E7=90=86?=
=?UTF-8?q?=E4=B8=8E=E9=80=BB=E8=BE=91=E5=88=A0=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/plugin/workflow/ops.js | 11 ++++
src/views/plugin/workflow/mixins/ex-form.js | 4 ++
src/views/plugin/workflow/ops/done.vue | 3 +
src/views/plugin/workflow/ops/list.vue | 63 ++++++++++++++++++-
.../workflow/process/components/flow.vue | 1 +
src/views/plugin/workflow/process/done.vue | 3 +
src/views/plugin/workflow/process/send.vue | 3 +
7 files changed, 86 insertions(+), 2 deletions(-)
diff --git a/src/api/plugin/workflow/ops.js b/src/api/plugin/workflow/ops.js
index 92b1a31..708cc9f 100644
--- a/src/api/plugin/workflow/ops.js
+++ b/src/api/plugin/workflow/ops.js
@@ -188,4 +188,15 @@ export const getList = (current, size, params) => {
method: 'post',
data
})
+}
+
+/**
+ * 删除流程
+ */
+ export const deleteProcess = (data) => {
+ return request({
+ url: `${prefix}/deleteProcess`,
+ method: 'post',
+ data
+ })
}
\ No newline at end of file
diff --git a/src/views/plugin/workflow/mixins/ex-form.js b/src/views/plugin/workflow/mixins/ex-form.js
index a0b1c4c..2c0185a 100644
--- a/src/views/plugin/workflow/mixins/ex-form.js
+++ b/src/views/plugin/workflow/mixins/ex-form.js
@@ -442,6 +442,10 @@ export default {
comment = '撤销:' + fullMessage
ff.class = 'nodeWarn'
}
+ if (type == 'deleteProcessComment') {
+ comment = '删除流程:' + fullMessage
+ ff.class = 'nodeError'
+ }
if (type == 'comment') {
comment = '审批:' + fullMessage
ff.class = 'nodeSuccess'
diff --git a/src/views/plugin/workflow/ops/done.vue b/src/views/plugin/workflow/ops/done.vue
index d040024..c693d5f 100644
--- a/src/views/plugin/workflow/ops/done.vue
+++ b/src/views/plugin/workflow/ops/done.vue
@@ -174,6 +174,9 @@ export default {
}, {
label: '已撤销',
value: 'withdraw'
+ }, {
+ label: '已删除',
+ value: 'deleted'
}],
type: 'select',
search: true
diff --git a/src/views/plugin/workflow/ops/list.vue b/src/views/plugin/workflow/ops/list.vue
index 62998bc..a42ab74 100644
--- a/src/views/plugin/workflow/ops/list.vue
+++ b/src/views/plugin/workflow/ops/list.vue
@@ -26,6 +26,18 @@
size="small"
icon="el-icon-search"
@click="handleFlow(row)">流程图
+ 删除
+
+
+ 删除
@@ -52,7 +64,7 @@