|
@@ -311,7 +311,7 @@ export default {
|
|
|
this.projectOptions = this.handleTree(response.data, "id");
|
|
|
});
|
|
|
getDeptUserTree('1').then(res => {
|
|
|
- this.userList = res.datas
|
|
|
+ this.userList = res.data
|
|
|
})
|
|
|
getAuditUsers().then(res => {
|
|
|
this.auditUsers = res.data
|
|
@@ -353,7 +353,10 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.form['auditConfigs'] = this.$refs.auditModule.getAuditConfigs()
|
|
|
+ if(this.$refs.auditModule){
|
|
|
+ this.form['auditConfigs'] = this.$refs.auditModule.getAuditConfigs()
|
|
|
+ }
|
|
|
+
|
|
|
if (this.form.id != undefined) {
|
|
|
if (this.form.id === this.form.parentId) {
|
|
|
this.$message.error("上级结构不能自身节点")
|