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

update:更新

上级 bca232b1
...@@ -374,4 +374,17 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -374,4 +374,17 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
</#if> </#if>
</#list> </#list>
}; };
/**
* 处理值改变
*
* @public
* @memberof ${srfclassname('${view.name}')}Base
*/
handleValueChange($event: { name: string, value: any }) {
if (!$event || !$event.name || Object.is($event.name, '') || !this.layoutData.hasOwnProperty($event.name)) {
return;
}
this.layoutData[$event.name] = $event.value;
}
</#if> </#if>
\ No newline at end of file
...@@ -72,11 +72,11 @@ ...@@ -72,11 +72,11 @@
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_TEXT_DYNAMIC"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_TEXT_DYNAMIC">
<app-preset-text name="${panelDetail.getName()}" :value="layoutData.${panelDetail.getName()}" :layoutModelDetails="layoutModelDetails"/> <app-preset-text name="${panelDetail.getName()}" :value="layoutData.${panelDetail.getName()}" :layoutModelDetails="layoutModelDetails"/>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_SWITCH"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_SWITCH">
<app-preset-switch :layoutModelDetails="layoutModelDetails" :value="layoutData.${panelDetail.getName()}" name="${panelDetail.getName()}" @valueChange="handleVauleChange"/> <app-preset-switch :layoutModelDetails="layoutModelDetails" :value="layoutData.${panelDetail.getName()}" name="${panelDetail.getName()}" @valueChange="handleValueChange"/>
<#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">
<app-preset-qrcode :layoutModelDetails="layoutModelDetails" :value="layoutData.${panelDetail.getName()}" name="${panelDetail.getName()}"/> <app-preset-qrcode :layoutModelDetails="layoutModelDetails" :value="layoutData.${panelDetail.getName()}" name="${panelDetail.getName()}"/>
<#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_TEXTBOX"> <#elseif panelDetail.getPSEditor?? && panelDetail.getPSEditor()?? && panelDetail.getPSEditor().getPredefinedType?? && panelDetail.getPSEditor().getPredefinedType()?? && panelDetail.getPSEditor().getPredefinedType() == "FIELD_TEXTBOX">
<app-preset-text-input :layoutModelDetails="layoutModelDetails" :value="layoutData.${panelDetail.getName()}" name="${panelDetail.getName()}" @valueChange="handleVauleChange"/> <app-preset-text-input :layoutModelDetails="layoutModelDetails" :value="layoutData.${panelDetail.getName()}" name="${panelDetail.getName()}" @valueChange="handleValueChange"/>
<#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">
<app-index-org-select name="${panelDetail.getName()}" :layoutModelDetails="layoutModelDetails"></app-index-org-select> <app-index-org-select name="${panelDetail.getName()}" :layoutModelDetails="layoutModelDetails"></app-index-org-select>
<#else> <#else>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册