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

update:更新视图布局面板

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