提交 22b89943 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm--面板动态逻辑--fix1

上级 6745c138
......@@ -57,7 +57,7 @@ import CodeListService from "@service/app/codelist-service";
*/
public detailsModel: any = {
<#list ctrl.getAllPSPanelItems() as panelItems>
${panelItems.name}: new FormItemModel({ visible: <#if panelItems.getPSDEFDGroupLogic('PANELVISIBLE')??>false<#else>true</#if>, disabled: false, enableCond: 3 }),
${panelItems.name}: new FormItemModel({ visible: <#if panelItems.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>, disabled: false, enableCond: 3 }),
</#list>
};
......@@ -70,8 +70,8 @@ import CodeListService from "@service/app/codelist-service";
*/
public panelLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
<#list ctrl.getAllPSPanelItems() as panelitem>
<#if panelitem.getPSDEFDGroupLogic('ITEMBLANK')??>
<#assign ITEMBLANK = panelitem.getPSDEFDGroupLogic('ITEMBLANK')/>
<#if panelitem.getPSPanelItemGroupLogic('ITEMBLANK')??>
<#assign ITEMBLANK = panelitem.getPSPanelItemGroupLogic('ITEMBLANK')/>
if (Object.is(name, '')<#if ITEMBLANK.getRelatedItemNames()??><#list ITEMBLANK.getRelatedItemNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) {
let ret = true;
<#if ITEMBLANK.getRelatedItemNames()??>
......@@ -90,8 +90,8 @@ import CodeListService from "@service/app/codelist-service";
});
}
</#if>
<#if panelitem.getPSDEFDGroupLogic('ITEMENABLE')??>
<#assign ITEMENABLE = panelitem.getPSDEFDGroupLogic('ITEMENABLE')/>
<#if panelitem.getPSPanelItemGroupLogic('ITEMENABLE')??>
<#assign ITEMENABLE = panelitem.getPSPanelItemGroupLogic('ITEMENABLE')/>
if (Object.is(name, '')<#if ITEMENABLE.getRelatedItemNames()??><#list ITEMENABLE.getRelatedItemNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) {
let ret = false;
<#if ITEMENABLE.getRelatedItemNames()??>
......@@ -105,8 +105,8 @@ import CodeListService from "@service/app/codelist-service";
this.detailsModel.${panelitem.name}.setDisabled(!ret);
}
</#if>
<#if panelitem.getPSDEFDGroupLogic('PANELVISIBLE')??>
<#assign PANELVISIBLE = panelitem.getPSDEFDGroupLogic('PANELVISIBLE')/>
<#if panelitem.getPSPanelItemGroupLogic('PANELVISIBLE')??>
<#assign PANELVISIBLE = panelitem.getPSPanelItemGroupLogic('PANELVISIBLE')/>
if (Object.is(name, '')<#if PANELVISIBLE.getRelatedItemNames()??><#list PANELVISIBLE.getRelatedItemNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) {
let ret = false;
<#if PANELVISIBLE.getRelatedItemNames()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册