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

Update LOGIC.tsx.ftl

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