提交 0d94a2ac 编写于 作者: tony001's avatar tony001

zpc--支持批量添加-fix1

上级 22a2596d
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
</#ibizinclude> </#ibizinclude>
<#macro getres tempView> <#macro getres tempView>
<#compress> <#compress>
<#if tempView.getPSAppDataEntity?? && tempView.getPSAppDataEntity()?? && tempView.getPSAppDataEntity().getPSDataEntity?? && tempView.getPSAppDataEntity().getPSDataEntity()??> <#if tempView.getPSAppDataEntity?? && tempView.getPSAppDataEntity()?? && tempView.getPSAppDataEntity().getMajorPSAppDERSs?? && tempView.getPSAppDataEntity().getMajorPSAppDERSs()??>
<#assign dataeneity = tempView.getPSAppDataEntity().getPSDataEntity() /> <#assign appDataEneity = tempView.getPSAppDataEntity() />
<#if dataeneity.getMajorPSDERs?? && dataeneity.getMajorPSDERs()??> <#if appDataEneity.getMajorPSAppDERSs?? && dataeneity.getMajorPSAppDERSs()??>
[<#list dataeneity.getMajorPSDERs() as psDes>'${psDes.getName()}'<#if psDes_has_next>,</#if></#list>] [<#list dataeneity.getMajorPSAppDERSs() as psDes>'${psDes.getMajorPSAppDataEntity()}'<#if psDes_has_next>,</#if></#list>]
</#if> </#if>
</#if> </#if>
</#compress> </#compress>
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
</#list> </#list>
]; ];
</#if> </#if>
console.log(this.context);
console.log(args);
const data: any = {}; const data: any = {};
if (args && args.length > 0 && args[0].srfsourcekey) { if (args && args.length > 0 && args[0].srfsourcekey) {
Object.assign(data, { srfsourcekey: args[0].srfsourcekey }) Object.assign(data, { srfsourcekey: args[0].srfsourcekey })
...@@ -58,7 +60,7 @@ ...@@ -58,7 +60,7 @@
}) })
} }
}) })
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) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
...@@ -102,7 +104,7 @@ ...@@ -102,7 +104,7 @@
} }
}) })
const view: any = curView; 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: '只支持批添加未实现' });
<#elseif viewlogic.getNewDataPSAppView()??> <#elseif viewlogic.getNewDataPSAppView()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册