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

update:更新视图布局面板

上级 ebf7dfb6
...@@ -240,8 +240,8 @@ import UIService from '@/uiservice/ui-service'; ...@@ -240,8 +240,8 @@ import UIService from '@/uiservice/ui-service';
this.layoutData[fullName] = value; this.layoutData[fullName] = value;
this.layoutModelDetails[fullName].setData(value); this.layoutModelDetails[fullName].setData(value);
this.panelLogic(name, index); this.panelLogic(name, index);
this.computeButtonAuthState();
this.panelEditItemChange(name, value); this.panelEditItemChange(name, value);
this.computeButtonAuthState();
} }
/** /**
......
...@@ -289,7 +289,7 @@ this.$verify.testCond(_${item.getDstModelField()?lower_case}, "${item.getCondOp( ...@@ -289,7 +289,7 @@ this.$verify.testCond(_${item.getDstModelField()?lower_case}, "${item.getCondOp(
iconAlign: '${panelItem.getIconAlign()}', iconAlign: '${panelItem.getIconAlign()}',
<#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??> <#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??>
<#assign uiAction = panelItem.getPSUIAction()/> <#assign uiAction = panelItem.getPSUIAction()/>
uiAction: { actiontarget: '<#if uiAction.getActionTarget()??>${uiAction.getActionTarget()}</#if>', <#if uiAction.getAppNoPrivDisplayMode()??>noprivdisplaymode: ${uiAction.getAppNoPrivDisplayMode()}</#if>, dataaccaction: '<#if uiAction.getDataAccessAction()??>${uiAction.getDataAccessAction()}</#if>', visabled: true, disabled: false }, uiAction: { actiontarget: '<#if uiAction.getActionTarget()??>${uiAction.getActionTarget()}</#if>', <#if uiAction.getAppNoPrivDisplayMode()??>noprivdisplaymode: ${uiAction.getAppNoPrivDisplayMode()}</#if>, dataaccaction: '<#if uiAction.getDataAccessAction()??>${uiAction.getDataAccessAction()}</#if>', <#if uiAction.getPSAppDataEntity?? && uiAction.getPSAppDataEntity()??>actionDECodeName: '${uiAction.getPSAppDataEntity().codeName}', </#if>visabled: true, disabled: false },
<#if uiAction.getPredefinedType?? && uiAction.getPredefinedType()??> <#if uiAction.getPredefinedType?? && uiAction.getPredefinedType()??>
predefinedType: '${uiAction.getPredefinedType()}', predefinedType: '${uiAction.getPredefinedType()}',
</#if> </#if>
...@@ -408,11 +408,12 @@ this.$verify.testCond(_${item.getDstModelField()?lower_case}, "${item.getCondOp( ...@@ -408,11 +408,12 @@ this.$verify.testCond(_${item.getDstModelField()?lower_case}, "${item.getCondOp(
* @public * @public
* @memberof ${srfclassname('${item.name}')}Base * @memberof ${srfclassname('${item.name}')}Base
*/ */
public computeButtonAuthState() { public async computeButtonAuthState() {
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => { for (const key in this.layoutModelDetails) {
const layoutModel = this.layoutModelDetails[key];
if (layoutModel.itemType == 'BUTTON') { if (layoutModel.itemType == 'BUTTON') {
layoutModel.computeActionAuthState(); await layoutModel.computeActionAuthState();
}
} }
})
} }
</#macro> </#macro>
\ No newline at end of file
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> :value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
defaultIcon="ios-contact" defaultIcon="ios-contact"
@valueChange="handleValueChange" /></@compress> @valueChange="($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_PASSWORD"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_PASSWORD">
<@compress single_line=true><app-login-input <@compress single_line=true><app-login-input
class="app-login-password" class="app-login-password"
...@@ -94,21 +94,21 @@ ...@@ -94,21 +94,21 @@
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> :value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
defaultIcon="ios-key" defaultIcon="ios-key"
@valueChange="handleValueChange" /></@compress> @valueChange="($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_ORGPICK"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_ORGPICK">
<@compress single_line=true><app-login-org <@compress single_line=true><app-login-org
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if> <#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> :value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange" /></@compress> @valueChange="($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_VERIFICATIONCODE"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_VERIFICATIONCODE">
<@compress single_line=true><app-login-note-verify <@compress single_line=true><app-login-note-verify
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if> <#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> :value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange" /></@compress> @valueChange="($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_LOGINMSG"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_LOGINMSG">
<@compress single_line=true><app-login-message <@compress single_line=true><app-login-message
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<#if isMultiData == true >:index="slotProps.data.index"</#if> <#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> :value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange"/></@compress> @valueChange="($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_QRCODE"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_QRCODE">
<@compress single_line=true><app-preset-qrcode <@compress single_line=true><app-preset-qrcode
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
...@@ -363,33 +363,33 @@ ...@@ -363,33 +363,33 @@
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if> <#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
@itemClick="handleButtonClick('${panelDetail.name}'<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress> @itemClick="(name) => handleButtonClick(name<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()?? && panelDetail.getPSUIAction().getPredefinedType?? && panelDetail.getPSUIAction().getPredefinedType()?? && panelDetail.getPSUIAction().getPredefinedType() == "DATA_CANCELCHANGES"> <#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()?? && panelDetail.getPSUIAction().getPredefinedType?? && panelDetail.getPSUIAction().getPredefinedType()?? && panelDetail.getPSUIAction().getPredefinedType() == "DATA_CANCELCHANGES">
<@compress single_line=true><app-login-button <@compress single_line=true><app-login-button
class="app-reset-button" class="app-reset-button"
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if> <#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
@itemClick="handleButtonClick('${panelDetail.name}'<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress> @itemClick="(name) => handleButtonClick(name<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()?? && panelDetail.getPSUIAction().getPredefinedType?? && panelDetail.getPSUIAction().getPredefinedType()?? && panelDetail.getPSUIAction().getPredefinedType() == "APP_LOGOUT"> <#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()?? && panelDetail.getPSUIAction().getPredefinedType?? && panelDetail.getPSUIAction().getPredefinedType()?? && panelDetail.getPSUIAction().getPredefinedType() == "APP_LOGOUT">
<@compress single_line=true><app-login-button <@compress single_line=true><app-login-button
class="app-logout-button" class="app-logout-button"
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if> <#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
@itemClick="handleButtonClick('${panelDetail.name}'<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress> @itemClick="(name) => handleButtonClick(name<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()??> <#elseif panelDetail.getPSUIAction?? && panelDetail.getPSUIAction()??>
<@compress single_line=true><app-preset-button <@compress single_line=true><app-preset-button
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
<#if isMultiData == true > :index="slotProps.data.index"</#if> <#if isMultiData == true > :index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
@itemClick="handleButtonClick('${panelDetail.name}'<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress> @itemClick="(name) => handleButtonClick(name<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
<#else> <#else>
<@compress single_line=true><app-preset-button <@compress single_line=true><app-preset-button
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
<#if isMultiData == true > :index="slotProps.data.index"</#if> <#if isMultiData == true > :index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
@itemClick="handleButtonClick('${panelDetail.name}'<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress> @itemClick="(name) => handleButtonClick(name<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)"/></@compress>
</#if> </#if>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "CTRLPOS"> <#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "CTRLPOS">
<app-ctrl-pos name="${panelDetail.getName()}"<#if isMultiData == true > :index="slotProps.data.index"</#if> :layoutModelDetails="layoutModelDetails"> <app-ctrl-pos name="${panelDetail.getName()}"<#if isMultiData == true > :index="slotProps.data.index"</#if> :layoutModelDetails="layoutModelDetails">
...@@ -408,7 +408,7 @@ ...@@ -408,7 +408,7 @@
<#if isMultiData == true >:index="slotProps.data.index"</#if> <#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails" :layoutModelDetails="layoutModelDetails"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> :value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange" /></@compress> @valueChange="($event) => handleValueChange($event<#if isMultiData == true >, `<#noparse>${slotProps.data.index}</#noparse>`</#if>)" /></@compress>
<#elseif panelDetail.getPredefinedType?? && panelDetail.getPredefinedType()?? && panelDetail.getPredefinedType() == "AUTH_SSO"> <#elseif panelDetail.getPredefinedType?? && panelDetail.getPredefinedType()?? && panelDetail.getPredefinedType() == "AUTH_SSO">
<@compress single_line=true><app-login-third <@compress single_line=true><app-login-third
name="${panelDetail.getName()}" name="${panelDetail.getName()}"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册