Commit c8a01090 by 冒粤蓉

fix

1 parent 4f74143c
...@@ -819,10 +819,14 @@ export default{ ...@@ -819,10 +819,14 @@ export default{
if(valid){ if(valid){
this.submitting = true; this.submitting = true;
const params = this.getParams();
params.snList.forEach(item => {
if(item.sns) {
delete item.sns;
}
})
if(typeof this.fenceId != 'undefined'){ if(typeof this.fenceId != 'undefined'){
const params = this.getParams();
params.id = this.fenceId; params.id = this.fenceId;
MONITOR_SERVICE.updateFence(params).then((res)=>{ MONITOR_SERVICE.updateFence(params).then((res)=>{
if(res.code == 200){ if(res.code == 200){
...@@ -842,7 +846,7 @@ export default{ ...@@ -842,7 +846,7 @@ export default{
this.submitting = false; this.submitting = false;
}); });
}else{ }else{
MONITOR_SERVICE.saveFence(this.getParams()).then((res)=>{ MONITOR_SERVICE.saveFence(params).then((res)=>{
if(res.code == 200){ if(res.code == 200){
//this.closeDialog(); //this.closeDialog();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!