|
|
@ -166,6 +166,12 @@ |
|
|
if(this.opType==='add'){ |
|
|
if(this.opType==='add'){ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
this.$refs.editForm.validate((vali)=>{ |
|
|
|
|
|
if(!vali){ |
|
|
|
|
|
this.$notify({position:'bottom-left',showClose:true,message:"表单检查不通过,请修改后提交", type: 'error' }); |
|
|
|
|
|
return; |
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
let params={}; |
|
|
let params={}; |
|
|
params['ids']=[row].map(i=>i.id) |
|
|
params['ids']=[row].map(i=>i.id) |
|
|
if(fieldName=='adminUserid'){ |
|
|
if(fieldName=='adminUserid'){ |
|
|
@ -190,6 +196,10 @@ |
|
|
this.$notify({position:'bottom-left',showClose:true,message:tips.msg,type:tips.isOk?'success':'error'}) |
|
|
this.$notify({position:'bottom-left',showClose:true,message:tips.msg,type:tips.isOk?'success':'error'}) |
|
|
} |
|
|
} |
|
|
}).catch((e)=>Object.assign(this.editForm,this.editFormBak)) |
|
|
}).catch((e)=>Object.assign(this.editForm,this.editFormBak)) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
initData(){ |
|
|
initData(){ |
|
|
this.editForm=Object.assign(this.editForm, this.xmIteration); |
|
|
this.editForm=Object.assign(this.editForm, this.xmIteration); |
|
|
|