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

Update LOGIC.tsx.ftl

上级 11a68e23
<#macro getRes tempView>
<#if tempView.getPSAppDataEntity?? && tempView.getPSAppDataEntity()?? && tempView.getPSAppDataEntity().getPSDataEntity?? && tempView.getPSAppDataEntity().getPSDataEntity()??>
<#assign dataeneity = tempView.getPSAppDataEntity().getPSDataEntity() />
<#if dataeneity.getMajorPSDERs?? && dataeneity.getMajorPSDERs()??>
[<#list dataeneity.getMajorPSDERs as psDes>'${psDes.getName()}'<#if psDes_has_next>,</#if></#list>]
</#if>
</#if>
</#macro>
<#if item.getPSViewLogic?? && item.getPSViewLogic()??> <#if item.getPSViewLogic?? && item.getPSViewLogic()??>
<#assign viewlogic = item.getPSViewLogic()/> <#assign viewlogic = item.getPSViewLogic()/>
/** /**
...@@ -18,14 +26,8 @@ ...@@ -18,14 +26,8 @@
<#assign batchAddPSAppViews = viewlogic.getBatchAddPSAppViews()/> <#assign batchAddPSAppViews = viewlogic.getBatchAddPSAppViews()/>
const batchAddPSAppViews=[ const batchAddPSAppViews=[
<#list batchAddPSAppViews as batchAddPSAppView> <#list batchAddPSAppViews as batchAddPSAppView>
<#if batchAddPSAppView_index == 0> {view:{viewname:'${srffilepath2(batchAddPSAppView.getCodeName())}',height: ${batchAddPSAppView.getHeight()?c},width: ${batchAddPSAppView.getWidth()?c},title: '${batchAddPSAppView.title}'},
<#assign batchappView = batchAddPSAppView /> res:<@getRes tempView=batchAddPSAppView />}<#if batchAddPSAppView_has_next>,</#if>
</#if>
<#-- {'${batchAddPSAppView.getCodeName()}':
{viewname:'${srffilepath2(batchAddPSAppView.getCodeName())}',
height: ${batchAddPSAppView.getHeight()?c},
width: ${batchAddPSAppView.getWidth()?c},
title: '${batchAddPSAppView.title}'}}<#if batchAddPSAppView_has_next>,</#if> -->
</#list> </#list>
] ]
</#if> </#if>
...@@ -61,6 +63,7 @@ ...@@ -61,6 +63,7 @@
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) =>{
...@@ -76,10 +79,10 @@ ...@@ -76,10 +79,10 @@
}); });
} }
const view: any = { const view: any = {
viewname: '${srffilepath2(batchappView.getCodeName())}', <#-- viewname: '${srffilepath2(batchappView.getCodeName())}',
height: ${batchappView.getHeight()?c}, height: ${batchappView.getHeight()?c},
width: ${batchappView.getWidth()?c}, width: ${batchappView.getWidth()?c},
title: '${batchappView.title}', title: '${batchappView.title}', -->
}; };
openPopupModal(view, data); openPopupModal(view, data);
<#elseif viewlogic.isBatchAddOnly()> <#elseif viewlogic.isBatchAddOnly()>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册