提交 5fe30256 编写于 作者: shanwewei's avatar shanwewei

sww --重定向视图异常应用

上级 c1a6dadc
...@@ -17,8 +17,15 @@ public click${item.codeName}(item: any = {}) { ...@@ -17,8 +17,15 @@ public click${item.codeName}(item: any = {}) {
targetNode: '${dataview.getPSAppModule().getCodeName()?lower_case}_${dataview.getCodeName()?lower_case}', targetNode: '${dataview.getPSAppModule().getCodeName()?lower_case}_${dataview.getCodeName()?lower_case}',
data: Object.assign({}, viewparam), data: Object.assign({}, viewparam),
}); });
<#if dataview.getViewType=='DEREDIRECTVIEW'>
this.$Modal.error({
title: '首页菜单应用功能不支持打开重定向视图!',
});
return;
<#else>
this.$router.push({ name: '${dataview.getPSAppModule().getCodeName()?lower_case}_${dataview.getCodeName()?lower_case}', params: _params }); this.$router.push({ name: '${dataview.getPSAppModule().getCodeName()?lower_case}_${dataview.getCodeName()?lower_case}', params: _params });
</#if> </#if>
</#if>
<#if dataview.getOpenMode() == 'POPUP'> <#if dataview.getOpenMode() == 'POPUP'>
console.log('-----POPUP-----非模式弹出,暂时不实现'); console.log('-----POPUP-----非模式弹出,暂时不实现');
</#if> </#if>
...@@ -30,11 +37,18 @@ public click${item.codeName}(item: any = {}) { ...@@ -30,11 +37,18 @@ public click${item.codeName}(item: any = {}) {
width: ${dataview.getWidth()?c}, width: ${dataview.getWidth()?c},
}; };
const data = { srfparentdata: viewparam }; const data = { srfparentdata: viewparam };
<#if dataview.getViewType=='DEREDIRECTVIEW'>
this.$Modal.error({
title: '首页菜单应用功能不支持打开重定向视图!',
});
return;
<#else>
const appmodal = this.$appmodal.openModal(view, data); const appmodal = this.$appmodal.openModal(view, data);
appmodal.subscribe((result: any) => { appmodal.subscribe((result: any) => {
console.log(result); console.log(result);
}); });
</#if> </#if>
</#if>
<#if dataview.getOpenMode() == 'POPUPAPP'> <#if dataview.getOpenMode() == 'POPUPAPP'>
console.log('-----POPUPAPP-----独立程序弹出,暂时不实现'); console.log('-----POPUPAPP-----独立程序弹出,暂时不实现');
</#if> </#if>
...@@ -47,11 +61,18 @@ public click${item.codeName}(item: any = {}) { ...@@ -47,11 +61,18 @@ public click${item.codeName}(item: any = {}) {
placement: '${dataview.getOpenMode()}' placement: '${dataview.getOpenMode()}'
}; };
const data: any = { srfparentdata: viewparam }; const data: any = { srfparentdata: viewparam };
<#if dataview.getViewType=='DEREDIRECTVIEW'>
this.$Modal.error({
title: '首页菜单应用功能不支持打开重定向视图!',
});
return;
<#else>
const appdrawer = this.$appdrawer.openDrawer(view, data); const appdrawer = this.$appdrawer.openDrawer(view, data);
appdrawer.subscribe((result: any) => { appdrawer.subscribe((result: any) => {
console.log(result); console.log(result);
}); });
</#if> </#if>
</#if>
<#if dataview.getOpenMode() == 'POPOVER'> <#if dataview.getOpenMode() == 'POPOVER'>
const view: any = { const view: any = {
viewname: '${srffilepath2(dataview.getCodeName())}', viewname: '${srffilepath2(dataview.getCodeName())}',
...@@ -61,11 +82,18 @@ public click${item.codeName}(item: any = {}) { ...@@ -61,11 +82,18 @@ public click${item.codeName}(item: any = {}) {
placement: '${dataview.getOpenMode()}' placement: '${dataview.getOpenMode()}'
}; };
const data: any = { srfparentdata: viewparam }; const data: any = { srfparentdata: viewparam };
<#if dataview.getViewType=='DEREDIRECTVIEW'>
this.$Modal.error({
title: '首页菜单应用功能不支持打开重定向视图!',
});
return;
<#else>
const appPopover = this.$apppopover.openPop($event, view, data); const appPopover = this.$apppopover.openPop($event, view, data);
appPopover.subscribe((result: any) => { appPopover.subscribe((result: any) => {
console.log(result); console.log(result);
}); });
</#if> </#if>
</#if>
<#if dataview.getOpenMode()?index_of('USER') == 0> <#if dataview.getOpenMode()?index_of('USER') == 0>
console.log('-----${dataview.getOpenMode()}-----用户自定义'); console.log('-----${dataview.getOpenMode()}-----用户自定义');
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册