|
|
|
@ -229,7 +229,7 @@ export default { |
|
|
|
parentId: this.form.parentId, |
|
|
|
}).then((res) => { |
|
|
|
if (res.code == 0) { |
|
|
|
this.$message.success("新增成功"); |
|
|
|
this.$message.success("新增成功11"); |
|
|
|
this.dialogVisible = false; |
|
|
|
this.form.displayName = ""; |
|
|
|
this.getonorganization(); |
|
|
|
@ -293,7 +293,7 @@ export default { |
|
|
|
// this.$message.success("新增成功"); |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
console.log(data); |
|
|
|
|
|
|
|
getapi("/api/app/organization-units/by-code-all").then((res) => { |
|
|
|
this.treedata = res.data; |
|
|
|
console.log(res); |
|
|
|
@ -301,7 +301,11 @@ export default { |
|
|
|
this.selecttable = []; |
|
|
|
this.dialogVisible = true; |
|
|
|
this.title = 1; |
|
|
|
this.form.parentId = ""; |
|
|
|
if (this.title == 1) { |
|
|
|
this.form.parentId = data.parentId; |
|
|
|
console.log(this.form.parentId); |
|
|
|
} |
|
|
|
// this.form.parentId = ""; |
|
|
|
console.log(this.form); |
|
|
|
this.form.displayName = ""; |
|
|
|
}, |
|
|
|
|