|
@@ -588,6 +588,7 @@
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@click="saveNode"
|
|
@click="saveNode"
|
|
|
|
+ :loading="saveNodeLoading"
|
|
>确 定</el-button>
|
|
>确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -1406,6 +1407,7 @@ export default {
|
|
editType: 1,
|
|
editType: 1,
|
|
|
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
|
+ saveNodeLoading:false,
|
|
deptCategorylist: [],
|
|
deptCategorylist: [],
|
|
majorDataTypeList: [],
|
|
majorDataTypeList: [],
|
|
rules: {
|
|
rules: {
|
|
@@ -1531,6 +1533,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
addNode () {
|
|
addNode () {
|
|
|
|
+ this.saveNodeLoading = true;
|
|
update(this.nodeDetail).then(() => {
|
|
update(this.nodeDetail).then(() => {
|
|
this.updateTreeNewNode();
|
|
this.updateTreeNewNode();
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
@@ -1538,6 +1541,9 @@ export default {
|
|
type: "success",
|
|
type: "success",
|
|
message: "新增成功!"
|
|
message: "新增成功!"
|
|
});
|
|
});
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.saveNodeLoading = false;
|
|
|
|
+ })
|
|
})
|
|
})
|
|
},
|
|
},
|
|
updateNode () {
|
|
updateNode () {
|