提交 e93bd061 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm--关系界面子保存父不保存

上级 271b0ea5
...@@ -1387,21 +1387,20 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; ...@@ -1387,21 +1387,20 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
public drdatasaved($event:any){ public drdatasaved($event:any){
let _this = this; let _this = this;
this.drcounter--; this.drcounter--;
if(this.drcounter > 0){ if(this.drcounter === 0){
return; this.save(this.drsaveopt, undefined, false).then((res) =>{
} this.saveState(res);
this.save(this.drsaveopt, undefined, false).then((res) =>{ this.drsaveopt = {};
this.saveState(res); if(Object.is(_this.currentAction, "saveAndNew")){
this.drsaveopt = {}; _this.ResetData(res);
if(Object.is(_this.currentAction, "saveAndNew")){ _this.loadDraft({});
_this.ResetData(res); }else if(Object.is(_this.currentAction, "saveAndExit")){
_this.loadDraft({}); if(res){
}else if(Object.is(_this.currentAction, "saveAndExit")){ _this.closeView(res.data);
if(res){ }
_this.closeView(res.data);
} }
} });
}); }
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册