提交 7b935516 编写于 作者: tony001's avatar tony001

调整 新建、编辑预置逻辑

上级 c10f2921
...@@ -40,7 +40,8 @@ ...@@ -40,7 +40,8 @@
<#if appUILogicRefView_index == 0><#assign curUILogicRefView = appUILogicRefView /></#if> <#if appUILogicRefView_index == 0><#assign curUILogicRefView = appUILogicRefView /></#if>
</#list> </#list>
</#if> </#if>
${curUILogicRefView.getCodeName()} let localContext:any = <@getNavigateContext curUILogicRefView />;
let localViewParam:any = <@getNavigateParams curUILogicRefView />;
<#if viewlogic.isEnableWizardAdd()> <#if viewlogic.isEnableWizardAdd()>
this.$Notice.warning({ title: '错误', desc: '向导添加未实现' }); this.$Notice.warning({ title: '错误', desc: '向导添加未实现' });
<#elseif viewlogic.isEnableBatchAdd()> <#elseif viewlogic.isEnableBatchAdd()>
......
...@@ -19,13 +19,14 @@ ...@@ -19,13 +19,14 @@
<#if appUILogicRefView_index == 0><#assign curUILogicRefView = appUILogicRefView /></#if> <#if appUILogicRefView_index == 0><#assign curUILogicRefView = appUILogicRefView /></#if>
</#list> </#list>
</#if> </#if>
${curUILogicRefView.getCodeName()} let localContext:any = <@getNavigateContext curUILogicRefView />;
let localViewParam:any = <@getNavigateParams curUILogicRefView />;
<#if viewlogic.getOpenDataPSAppView()??> <#if viewlogic.getOpenDataPSAppView()??>
<#assign dataview = viewlogic.getOpenDataPSAppView()/> <#assign dataview = viewlogic.getOpenDataPSAppView()/>
const data: any = {}; const data: any = {};
let curViewParam = JSON.parse(JSON.stringify(this.context)); let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){ if(args.length >0){
Object.assign(curViewParam,args[0]); Object.assign(tempContext,args[0]);
} }
<#-- BEGIN:准备参数 --> <#-- BEGIN:准备参数 -->
<#if dataview.isRedirectView()> <#if dataview.isRedirectView()>
...@@ -41,7 +42,7 @@ ...@@ -41,7 +42,7 @@
<#list dataview.getPSAppDERSPath(count_index) as deRSPath> <#list dataview.getPSAppDERSPath(count_index) as deRSPath>
<#if deRSPath.getMajorPSAppDataEntity?? && deRSPath.getMajorPSAppDataEntity()??> <#if deRSPath.getMajorPSAppDataEntity?? && deRSPath.getMajorPSAppDataEntity()??>
<#assign _dataEntity = deRSPath.getMajorPSAppDataEntity()/> <#assign _dataEntity = deRSPath.getMajorPSAppDataEntity()/>
<#assign condition>${condition}curViewParam.${_dataEntity.getCodeName()?lower_case} && </#assign> <#assign condition>${condition}tempContext.${_dataEntity.getCodeName()?lower_case} && </#assign>
</#if> </#if>
</#list> </#list>
</#list> </#list>
...@@ -133,7 +134,7 @@ ...@@ -133,7 +134,7 @@
<#-- 打开顶级分页视图 --> <#-- 打开顶级分页视图 -->
const _this: any = this; const _this: any = this;
const openIndexViewTab = (data: any) => { const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, curViewParam, deResParameters, parameters, args, data); const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
<#if dataview.getViewType() == "DEWFDYNAEDITVIEW" > <#if dataview.getViewType() == "DEWFDYNAEDITVIEW" >
this.$router.push(routePath+'?userTaskId='+this.viewparams.userTaskId); this.$router.push(routePath+'?userTaskId='+this.viewparams.userTaskId);
<#else> <#else>
...@@ -144,13 +145,13 @@ ...@@ -144,13 +145,13 @@
<#elseif dataview.getOpenMode() == 'POPUPAPP'> <#elseif dataview.getOpenMode() == 'POPUPAPP'>
<#-- 打开独立程序弹出 --> <#-- 打开独立程序弹出 -->
const _this: any = this; const _this: any = this;
const routePath = this.$viewTool.buildUpRoutePath(this.$route, curViewParam, deResParameters, parameters, args, data); const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
window.open('./#'+routePath, '_blank'); window.open('./#'+routePath, '_blank');
<#elseif dataview.getOpenMode() = 'POPUPMODAL'> <#elseif dataview.getOpenMode() = 'POPUPMODAL'>
<#-- 打开模态 --> <#-- 打开模态 -->
const _this: any = this; const _this: any = this;
const openPopupModal = (view: any, data: any) => { const openPopupModal = (view: any, data: any) => {
let container: Subject<any> = this.$appmodal.openModal(view, curViewParam, data); let container: Subject<any> = this.$appmodal.openModal(view, tempContext, data);
container.subscribe((result: any) => { container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
return; return;
...@@ -172,7 +173,7 @@ ...@@ -172,7 +173,7 @@
<#-- 打开抽屉 --> <#-- 打开抽屉 -->
const _this: any = this; const _this: any = this;
const openDrawer = (view: any, data: any) => { const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, curViewParam, data); let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => { container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
return; return;
...@@ -195,7 +196,7 @@ ...@@ -195,7 +196,7 @@
<#-- 打开气泡卡片 --> <#-- 打开气泡卡片 -->
const _this: any = this; const _this: any = this;
const openPopOver = (view: any, data: any) => { const openPopOver = (view: any, data: any) => {
let container: Subject<any> = this.$apppopover.openPop($event, view, curViewParam, data); let container: Subject<any> = this.$apppopover.openPop($event, view, tempContext, data);
container.subscribe((result: any) => { container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
return; return;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册