提交 793a41ca 编写于 作者: zhangpingchuan's avatar zhangpingchuan

Update LOGIC.tsx.ftl

上级 048d558e
...@@ -41,6 +41,15 @@ ...@@ -41,6 +41,15 @@
if (_this.srfparentdata) { if (_this.srfparentdata) {
Object.assign(data, { srfparentdata: _this.srfparentdata }); Object.assign(data, { srfparentdata: _this.srfparentdata });
} }
batchAddPSAppViews.forEach((item:any,index:number) =>{
if(item.res){
item.res.forEach((curRes:any) =>{
if(Object.is(curRes,_this.srfparentdata.srfparentmode)){
item.curRes = true;
}
})
}
})
const openPopupModal = (view: any, data: any) => { const openPopupModal = (view: any, data: any) => {
let container: Subject<any> = this.$appmodal.openModal(view, data); let container: Subject<any> = this.$appmodal.openModal(view, data);
container.subscribe((result: any) => { container.subscribe((result: any) => {
...@@ -65,7 +74,6 @@ ...@@ -65,7 +74,6 @@
keys += key; keys += key;
}); });
Object.assign(viewParam,{srfkeys:keys}); Object.assign(viewParam,{srfkeys:keys});
return;
// 发送批处理请求 // 发送批处理请求
const url:string ="${app.getPKGCodeName()?lower_case}/${de.getPSSystemModule().codeName?lower_case}/${de.codeName?lower_case}/addbatch"; const url:string ="${app.getPKGCodeName()?lower_case}/${de.getPSSystemModule().codeName?lower_case}/${de.codeName?lower_case}/addbatch";
this.$http.post(url,viewParam).then((response:any) =>{ this.$http.post(url,viewParam).then((response:any) =>{
...@@ -80,12 +88,13 @@ ...@@ -80,12 +88,13 @@
}) })
}); });
} }
const view: any = { let curView:any ={};
<#-- viewname: '${srffilepath2(batchappView.getCodeName())}', batchAddPSAppViews.forEach((item:any) =>{
height: ${batchappView.getHeight()?c}, if(!item.curRes){
width: ${batchappView.getWidth()?c}, Object.assign(curView,item.view)
title: '${batchappView.title}', --> }
}; })
const view: any = curView;
openPopupModal(view, data); openPopupModal(view, data);
<#elseif viewlogic.isBatchAddOnly()> <#elseif viewlogic.isBatchAddOnly()>
this.$Notice.warning({ title: '错误', desc: '只支持批添加未实现' }); this.$Notice.warning({ title: '错误', desc: '只支持批添加未实现' });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册