提交 1fa2bcfc 编写于 作者: WodahsOrez's avatar WodahsOrez

Revert "lxm---修复srfkey为空时依然能打开编辑视图的bug"

This reverts commit 98a8653f.
上级 e80dbe4b
...@@ -107,11 +107,7 @@ ...@@ -107,11 +107,7 @@
openPopupApp(result.url); openPopupApp(result.url);
} else if (Object.is(result.openmode, 'INDEXVIEWTAB') || Object.is(result.openmode, '')) { } else if (Object.is(result.openmode, 'INDEXVIEWTAB') || Object.is(result.openmode, '')) {
const viewpath = ${r'`${result.viewmodule}_${result.viewname}`.toLowerCase()'}; const viewpath = ${r'`${result.viewmodule}_${result.viewname}`.toLowerCase()'};
if(data.srfkey == null || data.srfkey == ""){
this.$Notice.error({ title: '错误', desc: 'srfkey为空,无法打开编辑视图!' });
}else{
openIndexViewTab(viewpath, data); openIndexViewTab(viewpath, data);
}
} else if (Object.is(result.openmode, 'POPUPMODAL')) { } else if (Object.is(result.openmode, 'POPUPMODAL')) {
const viewname = this.$util.srfFilePath2(result.viewname); const viewname = this.$util.srfFilePath2(result.viewname);
const view: any = { const view: any = {
...@@ -172,11 +168,7 @@ ...@@ -172,11 +168,7 @@
this.$router.push({ name: viewpath, params: _params }); this.$router.push({ name: viewpath, params: _params });
} }
} }
if(data.srfkey == null || data.srfkey == ""){
this.$Notice.error({ title: '错误', desc: 'srfkey为空,无法打开编辑视图!' });
}else{
openIndexViewTab('${dataview.getPSAppModule().codeName?lower_case}_${dataview.codeName?lower_case}', data); openIndexViewTab('${dataview.getPSAppModule().codeName?lower_case}_${dataview.codeName?lower_case}', data);
}
<#elseif dataview.getOpenMode() = 'POPUPMODAL'> <#elseif dataview.getOpenMode() = 'POPUPMODAL'>
<#-- 打开模态 --> <#-- 打开模态 -->
const _this: any = this; const _this: any = this;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册