Commit 02a14710 by Mr. Lan

添加流程管理。

parent bfaec2ca
Showing with 6 additions and 6 deletions
...@@ -153,7 +153,8 @@ import { ...@@ -153,7 +153,8 @@ import {
processList, processList,
createProcess, createProcess,
updateProcess, updateProcess,
processDetails processDetails,
deleteProcess
} from '@/api/process/admin/process' } from '@/api/process/admin/process'
import { classifyList } from '@/api/process/admin/classify' import { classifyList } from '@/api/process/admin/classify'
...@@ -301,7 +302,7 @@ export default { ...@@ -301,7 +302,7 @@ export default {
if (valid) { if (valid) {
if (this.ruleForm.structure.nodes.length > 0 && this.ruleForm.structure.edges.length > 0) { if (this.ruleForm.structure.nodes.length > 0 && this.ruleForm.structure.edges.length > 0) {
createProcess(this.ruleForm).then(response => { createProcess(this.ruleForm).then(response => {
// this.getList() this.getList()
this.open = false this.open = false
}) })
} else { } else {
...@@ -347,15 +348,14 @@ export default { ...@@ -347,15 +348,14 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// eslint-disable-next-line no-undef deleteProcess({
deleteTemplate({ processId: row.id
templateId: row.id
}).then(response => { }).then(response => {
if (response !== undefined) { if (response !== undefined) {
this.getList() this.getList()
this.$message({ this.$message({
type: 'success', type: 'success',
message: '模版已删除!' message: '流程已删除!'
}) })
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment