|
@@ -304,6 +304,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.processData = subList
|
|
|
+ }).catch(() => {
|
|
|
+ load.endLoading()
|
|
|
})
|
|
|
},
|
|
|
// 获取流程分类列表
|
|
@@ -313,6 +315,8 @@ export default {
|
|
|
per_page: 99999
|
|
|
}).then(response => {
|
|
|
this.classifyListData = response.data.data
|
|
|
+ }).catch(() => {
|
|
|
+ load.endLoading()
|
|
|
})
|
|
|
},
|
|
|
// 获取模版列表
|
|
@@ -322,6 +326,8 @@ export default {
|
|
|
per_page: 99999
|
|
|
}).then(response => {
|
|
|
this.templates = response.data.data
|
|
|
+ }).catch(() => {
|
|
|
+ load.endLoading()
|
|
|
})
|
|
|
},
|
|
|
// 获取用户
|
|
@@ -330,6 +336,8 @@ export default {
|
|
|
pageSize: 999999
|
|
|
}).then(response => {
|
|
|
this.users = response.data.list
|
|
|
+ }).catch(() => {
|
|
|
+ load.endLoading()
|
|
|
})
|
|
|
},
|
|
|
async getRoles() {
|
|
@@ -337,12 +345,16 @@ export default {
|
|
|
pageSize: 999999
|
|
|
}).then(response => {
|
|
|
this.roles = response.data.list
|
|
|
+ }).catch(() => {
|
|
|
+ load.endLoading()
|
|
|
})
|
|
|
},
|
|
|
// 获取部门
|
|
|
async getDepartments() {
|
|
|
await treeselect().then(response => {
|
|
|
this.departments = response.data
|
|
|
+ }).catch(() => {
|
|
|
+ load.endLoading()
|
|
|
})
|
|
|
},
|
|
|
// 获取岗位
|
|
@@ -352,6 +364,8 @@ export default {
|
|
|
pageSize: 99999
|
|
|
}).then(response => {
|
|
|
this.postOptions = response.data.list
|
|
|
+ }).catch(() => {
|
|
|
+ load.endLoading()
|
|
|
})
|
|
|
},
|
|
|
/** 查询流程列表 */
|