提交 62587604 编写于 作者: tony001's avatar tony001

update:更新

上级 b9e0bb94
......@@ -541,11 +541,13 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
* @public
* @memberof ${srfclassname('${view.name}')}Base
*/
public handleValueChange($event: { name: string, value: any }) {
if (!$event || !$event.name || Object.is($event.name, '') || !this.layoutData.hasOwnProperty($event.name)) {
public handleValueChange(args: { name: string, value: any }) {
if (!args || !args.name || Object.is(args.name, '') || !this.layoutData.hasOwnProperty(args.name)) {
return;
}
this.layoutData[$event.name] = $event.value;
const {name,value} = args;
this.layoutData[name] = value;
this.layoutModelDetails[name].setData(value);
}
/**
......
......@@ -78,7 +78,7 @@
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
defaultIcon="ios-contact"
@valueChange="handleValueChange" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_PASSWORD">
......@@ -88,7 +88,7 @@
<#if isMultiData == true >:index="slotProps.data.index"</#if>
defaultType="password"
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
defaultIcon="ios-key"
@valueChange="handleValueChange" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_ORGPICK">
......@@ -96,21 +96,21 @@
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange" /></@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="layoutData.${panelDetail.getName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange" /></@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()}
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}" /></@compress>
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "APP_APPTITLE">
<@compress single_line=true><app-preset-title
name="${panelDetail.getName()}"
......@@ -127,27 +127,27 @@
<@compress single_line=true><app-preset-text
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:value="layoutData.${panelDetail.getViewFieldName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
:layoutModelDetails="layoutModelDetails"/></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_SWITCH">
<@compress single_line=true><app-preset-switch
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange"/></@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()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}" /></@compress>
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_TEXTBOX">
<@compress single_line=true><app-preset-text-input
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange"/></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "AUTH_ORGPICK">
<@compress single_line=true><app-index-org-select
......@@ -158,7 +158,7 @@
<@compress single_line=true><app-field-image-dynamic
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:value="layoutData['${panelDetail.getName()}']"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
:layoutModelDetails="layoutModelDetails" /></@compress>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_CAROUSEL">
<@compress single_line=true><app-rawitem-carousel
......@@ -318,14 +318,14 @@
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>
@valueChange="handleValueChange" /></@compress>
<#elseif panelDetail.getPredefinedType?? && panelDetail.getPredefinedType()?? && panelDetail.getPredefinedType() == "AUTH_SSO">
<@compress single_line=true><app-login-third
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:layoutModelDetails="layoutModelDetails"
:value="layoutData.${panelDetail.getName()}" /></@compress>
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if> /></@compress>
<#else>
<@compress single_line=true><span>用户自定义控件</span></@compress>
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册