提交 f2711a82 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新面板逻辑

上级 ed0d8389
...@@ -561,13 +561,13 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -561,13 +561,13 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
<#-- <#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem> <#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem>
<#if panelItem.getPSDEFDGroupLogic('ITEMBLANK')??> <#if panelItem.getPSPanelItemGroupLogic('ITEMBLANK')??>
<#assign ITEMBLANK = panelItem.getPSDEFDGroupLogic('ITEMBLANK')/> <#assign ITEMBLANK = panelItem.getPSPanelItemGroupLogic('ITEMBLANK')/>
if (Object.is(name, '')<#if ITEMBLANK.getRelatedDetailNames()??><#list ITEMBLANK.getRelatedDetailNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) { if (Object.is(name, '')<#if ITEMBLANK.getRelatedItemNames()??><#list ITEMBLANK.getRelatedItemNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) {
let ret = true; let ret = true;
<#if ITEMBLANK.getRelatedDetailNames()??> <#if ITEMBLANK.getRelatedItemNames()??>
<#list ITEMBLANK.getRelatedDetailNames() as detailName> <#list ITEMBLANK.getRelatedItemNames() as detailName>
const _${detailName} = this.data.${detailName}; const _${detailName} = this.data.${detailName};
</#list> </#list>
</#if> </#if>
...@@ -577,12 +577,12 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -577,12 +577,12 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
this.layoutModelDetails['${panelItem.name}'].required = ret; this.layoutModelDetails['${panelItem.name}'].required = ret;
} }
</#if> </#if>
<#if panelItem.getPSDEFDGroupLogic('ITEMENABLE')??> <#if panelItem.getPSPanelItemGroupLogic('ITEMENABLE')??>
<#assign ITEMENABLE = panelItem.getPSDEFDGroupLogic('ITEMENABLE')/> <#assign ITEMENABLE = panelItem.getPSPanelItemGroupLogic('ITEMENABLE')/>
if (Object.is(name, '')<#if ITEMENABLE.getRelatedDetailNames()??><#list ITEMENABLE.getRelatedDetailNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) { if (Object.is(name, '')<#if ITEMENABLE.getRelatedItemNames()??><#list ITEMENABLE.getRelatedItemNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) {
let ret = false; let ret = false;
<#if ITEMENABLE.getRelatedDetailNames()??> <#if ITEMENABLE.getRelatedItemNames()??>
<#list ITEMENABLE.getRelatedDetailNames() as detailName> <#list ITEMENABLE.getRelatedItemNames() as detailName>
const _${detailName} = this.data.${detailName}; const _${detailName} = this.data.${detailName};
</#list> </#list>
</#if> </#if>
...@@ -592,12 +592,12 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -592,12 +592,12 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
this.layoutModelDetails['${panelItem.name}'].disabled = !ret; this.layoutModelDetails['${panelItem.name}'].disabled = !ret;
} }
</#if> </#if>
<#if panelItem.getPSDEFDGroupLogic('PANELVISIBLE')??> <#if panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')??>
<#assign PANELVISIBLE = panelItem.getPSDEFDGroupLogic('PANELVISIBLE')/> <#assign PANELVISIBLE = panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')/>
if (Object.is(name, '')<#if PANELVISIBLE.getRelatedDetailNames()??><#list PANELVISIBLE.getRelatedDetailNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) { if (Object.is(name, '')<#if PANELVISIBLE.getRelatedItemNames()??><#list PANELVISIBLE.getRelatedItemNames() as detailName> || Object.is(name, '${detailName}')</#list></#if>) {
let ret = false; let ret = false;
<#if PANELVISIBLE.getRelatedDetailNames()??> <#if PANELVISIBLE.getRelatedItemNames()??>
<#list PANELVISIBLE.getRelatedDetailNames() as detailName> <#list PANELVISIBLE.getRelatedItemNames() as detailName>
const _${detailName} = this.data.${detailName}; const _${detailName} = this.data.${detailName};
</#list> </#list>
</#if> </#if>
...@@ -607,7 +607,7 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -607,7 +607,7 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
this.layoutModelDetails['${panelItem.name}'].visible = ret; this.layoutModelDetails['${panelItem.name}'].visible = ret;
} }
</#if> </#if>
</#list> --> </#list>
} }
/** /**
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<#if item.isNotMode()> <#if item.isNotMode()>
!( !(
</#if> </#if>
<#if item.getPSDEFDLogics()??> <#if item.getPSPanelItemLogics()??>
<#list item.getPSDEFDLogics() as subLogic> <#list item.getPSPanelItemLogics() as subLogic>
<#if subLogic_index gt 0> <#if subLogic_index gt 0>
<#if item.getGroupOP() == 'AND'> <#if item.getGroupOP() == 'AND'>
&& &&
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
) )
</#if> </#if>
<#elseif item.getLogicType() == 'SINGLE'> <#elseif item.getLogicType() == 'SINGLE'>
this.$verify.testCond(_${item.getDEFDName()?lower_case}, "${item.getPSDBValueOPId()}", "${item.getValue()}"); this.$verify.testCond(_${item.getDstModelField()?lower_case}, "${item.getCondOp()}", "${item.getValue()}");
</#if> </#if>
</@compress> </@compress>
</#macro> </#macro>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册