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 @@