|
@@ -341,9 +341,6 @@ export default {
|
|
|
},
|
|
|
// 获取部门
|
|
|
async getDepartments() {
|
|
|
- // getOrdinaryDeptList().then(response => {
|
|
|
- // this.departments = response.data
|
|
|
- // })
|
|
|
await treeselect().then(response => {
|
|
|
this.departments = response.data
|
|
|
})
|
|
@@ -376,14 +373,13 @@ export default {
|
|
|
await this.getUsers()
|
|
|
await this.getRoles()
|
|
|
await this.getDepartments()
|
|
|
- // await this.getTaskList()
|
|
|
await this.getProcessList()
|
|
|
await this.getPostOptions()
|
|
|
},
|
|
|
async handleCreate() {
|
|
|
- // load.startLoading()
|
|
|
- // await this.getProcessInitData()
|
|
|
- // load.endLoading()
|
|
|
+ load.startLoading()
|
|
|
+ await this.getProcessInitData()
|
|
|
+ load.endLoading()
|
|
|
this.ruleForm = {
|
|
|
id: undefined,
|
|
|
name: '',
|
|
@@ -409,7 +405,6 @@ export default {
|
|
|
await this.getProcessInitData()
|
|
|
load.endLoading()
|
|
|
this.wfdDesignRefresh = false
|
|
|
- this.open = true
|
|
|
await processDetails({
|
|
|
processId: row.id
|
|
|
}).then(response => {
|
|
@@ -430,6 +425,7 @@ export default {
|
|
|
this.wfdDesignRefresh = true
|
|
|
})
|
|
|
})
|
|
|
+ this.open = true
|
|
|
},
|
|
|
handleClose(done) {
|
|
|
this.$confirm('确认关闭?')
|
|
@@ -442,6 +438,7 @@ export default {
|
|
|
.catch(_ => {})
|
|
|
},
|
|
|
verifyProcess(structureValue) {
|
|
|
+ console.log(structureValue)
|
|
|
for (var r of structureValue.nodes) {
|
|
|
if (r.sort === undefined || r.sort === null || r.sort === '') {
|
|
|
return '流程节点顺序不能为空'
|