|
@@ -479,6 +479,7 @@
|
|
|
})
|
|
|
},
|
|
|
submit(){
|
|
|
+ var submitData = {}
|
|
|
this.confirmLoading = true;
|
|
|
let httpurl = '';
|
|
|
let method = '';
|
|
@@ -489,17 +490,18 @@
|
|
|
httpurl+=this.url.edit;
|
|
|
method = 'put';
|
|
|
}
|
|
|
- if(this.model.id && this.model.id === this.model[this.pidField]){
|
|
|
+ if(this.model.id && this.model.id === this.model[this.pidField]){
|
|
|
this.$message.warning("父级节点不能选择自己");
|
|
|
this.confirmLoading = false;
|
|
|
return;
|
|
|
}
|
|
|
+ submitData.interlockBase = this.model
|
|
|
if(this.model.interlockType === '1'){
|
|
|
var index = this.interlockTwoTree.findIndex(item => item.key === this.model.pid)
|
|
|
- this.model.groupName = this.interlockTwoTree[index].title + '_' + this.model.interlockName
|
|
|
+ submitData.groupName = this.interlockTwoTree[index].title + '_' + this.model.interlockName
|
|
|
}
|
|
|
// console.log(this.model.groupName)
|
|
|
- httpAction(httpurl,this.model,method).then((res)=>{
|
|
|
+ httpAction(httpurl,submitData,method).then((res)=>{
|
|
|
if(res.success){
|
|
|
this.$message.success(res.message);
|
|
|
this.$emit('ok');
|