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

update:更新面板属性

上级 1fdb8808
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<input-box <input-box
v-model="data.${editor.getName()?lower_case}"
style="${item.getEditorCssStyle()}"
type="text" type="text"
:disabled="detailsModel.${item.getCodeName()}.disabled" style="${item.getEditorCssStyle()}"
:value="layoutData.${editor.name}"
:disabled="layoutModelDetails.${editor.name}.disabled"
<#if item.getUnitName?? && item.getUnitName()??>unit="${item.getUnitName()}"</#if> <#if item.getUnitName?? && item.getUnitName()??>unit="${item.getUnitName()}"</#if>
<#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if> <#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if>
@change="($event)=>{panelEditItemChange(data, '${editor.getName()?lower_case}', $event)}"> @change="(value) => handleValueChange({ name: '${editor.name}', value})">
</input-box> </input-box>
</#if> </#if>
\ No newline at end of file
<#ibizinclude>../@MACRO/FUNC/PUBLIC.vue.ftl</#ibizinclude> <#ibizinclude>../@MACRO/FUNC/PUBLIC.vue.ftl</#ibizinclude>
<#if editor?? && editor.render??> <#if editor?? && editor.render??>
${editor.render.code} ${editor.render.code}
<#else> <#else>
<dropdown-list <dropdown-list
v-model="data.${editor.name?lower_case}" :value="layoutData.${editor.name}"
:disabled="detailsModel.${item.getCodeName()}.disabled" :data="layoutData"
:data="data"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:localContext =<@getNavigateContext editor /> :formState="viewState"
:localParam =<@getNavigateParams editor /> :disabled="layoutModelDetails.${editor.name}.disabled"
<#if item.getPSCodeList()??> :localContext=<@getNavigateContext editor />
<#assign codelist=item.getPSCodeList()> :localParam=<@getNavigateParams editor />
tag='${codelist.codeName}' <#if editor.getPSCodeList()??>
codelistType='${codelist.getCodeListType()}' <#assign codelist=editor.getPSCodeList()>
</#if> tag="${codelist.codeName}"
codelistType="${codelist.getCodeListType()}"
</#if>
placeholder=<#if item.getPlaceHolder()??>'${item.getPlaceHolder()}'<#else>'请选择...'</#if> placeholder=<#if item.getPlaceHolder()??>'${item.getPlaceHolder()}'<#else>'请选择...'</#if>
style="${item.getEditorCssStyle()}" style="${editor.getEditorCssStyle()}"
@change="($event)=>{panelEditItemChange(data, '${editor.name?lower_case}', $event)}"> @change="(value) => handleValueChange({ name: '${editor.name}', value})">
</dropdown-list> </dropdown-list>
</#if> </#if>
\ No newline at end of file
...@@ -3,21 +3,23 @@ ...@@ -3,21 +3,23 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<dropdown-list-mpicker <dropdown-list-mpicker
v-model="data.${editor.name?lower_case}" :value="layoutData.${editor.name}"
:data="data" :data="layoutData"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:localContext =<@getNavigateContext editor /> :localContext=<@getNavigateContext editor />
:localParam =<@getNavigateParams editor /> :localParam=<@getNavigateParams editor />
:disabled="detailsModel.${item.getCodeName()}.disabled" :disabled="layoutModelDetails.${editor.name}.disabled"
<#if item.getPSCodeList()??> <#if editor.getPSCodeList()??>
<#assign codelist=editor.getPSCodeList()> <#assign codelist=editor.getPSCodeList()>
tag='${codelist.codeName}' tag="${codelist.codeName}"
codelistType='${codelist.getCodeListType()}' codelistType="${codelist.getCodeListType()}"
<#if codelist.valueSeparator?has_content>valueSeparator="${codelist.valueSeparator}"</#if> <#if codelist.valueSeparator?has_content>
</#if> valueSeparator="${codelist.valueSeparator}"
</#if>
</#if>
placeholder=<#if item.getPlaceHolder()??>'${item.getPlaceHolder()}'<#else>'请选择...'</#if> placeholder=<#if item.getPlaceHolder()??>'${item.getPlaceHolder()}'<#else>'请选择...'</#if>
@change="($event)=>{panelEditItemChange(data, '${editor.name?lower_case}', $event)}" style="${editor.getEditorCssStyle()}"
style="${item.getEditorCssStyle()}"> @change="(value) => handleValueChange({ name: '${editor.name}', value})">
</dropdown-list-mpicker> </dropdown-list-mpicker>
</#if> </#if>
\ No newline at end of file
...@@ -3,20 +3,20 @@ ...@@ -3,20 +3,20 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-radio-group <app-radio-group
v-model="data.${editor.name?lower_case}" name="${editor.name}"
:disabled="detailsModel.${item.getCodeName()}.disabled" :value="layoutData.${editor.name}"
name="${editor.name?lower_case}" :data="layoutData"
:data="data"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:localContext =<@getNavigateContext editor /> :disabled="layoutModelDetails.${editor.name}.disabled"
:localParam =<@getNavigateParams editor /> :localContext=<@getNavigateContext editor />
@change="($event)=>{panelEditItemChange(data, '${editor.name?lower_case}', $event)}" :localParam=<@getNavigateParams editor />
<#if editor.getPSCodeList?? && editor.getPSCodeList()??> <#if editor.getPSCodeList()??>
<#assign codelist=item.getPSCodeList()> <#assign codelist=editor.getPSCodeList()>
tag='${codelist.codeName}' tag='${codelist.codeName}'
codelistType='${codelist.getCodeListType()}' codelistType='${codelist.getCodeListType()}'
</#if> </#if>
style="${item.getEditorCssStyle()}"> style="${editor.getEditorCssStyle()}"
@change="(value) => handleValueChange({ name: '${editor.name}', value})">
</app-radio-group> </app-radio-group>
</#if> </#if>
\ No newline at end of file
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-file-upload <app-file-upload
name="${editor.name}"
:formState="viewState" :formState="viewState"
:ignorefieldvaluechange="false" :ignorefieldvaluechange="false"
@formitemvaluechange="($event)=>{onPanelItemValueChange(data,$event)}" :data="JSON.stringify(layoutData)"
:data="JSON.stringify(data)" :value="layoutData.${editor.name}"
name='${editor.name?lower_case}' :disabled="layoutModelDetails.${editor.name}.disabled"
:value="data.${editor.name?lower_case}"
:disabled="detailsModel.${item.getCodeName()}.disabled"
:rowPreview="true" :rowPreview="true"
:imageOnly="true" :imageOnly="true"
:uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>' :uploadparams='<#if editor.getEditorParam('uploadparams','') != ''>${editor.getEditorParam('uploadparams','')}<#else>{}</#if>'
:exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>' :exportparams='<#if editor.getEditorParam('exportparams','') != ''>${editor.getEditorParam('exportparams','')}<#else>{}</#if>'
:multiple='<#if editor.getEditorParam('multiple','') != ''>${editor.getEditorParam('multiple','')}<#else>true</#if>' :multiple='<#if editor.getEditorParam('multiple','') != ''>${editor.getEditorParam('multiple','')}<#else>true</#if>'
style="${editor.getEditorCssStyle()}overflow: auto;"> style="${editor.getEditorCssStyle()}overflow: auto;"
@formitemvaluechange="handleValueChange">
</app-file-upload> </app-file-upload>
</#if> </#if>
\ No newline at end of file
...@@ -3,12 +3,11 @@ ...@@ -3,12 +3,11 @@
<#else> <#else>
<input-box <input-box
type="password" type="password"
:disabled="detailsModel.${item.getCodeName()}.disabled" name="${editor.name}"
<#if item.getPlaceHolder()??>
placeholder="${item.getPlaceHolder()}"
</#if>
v-model="data.${editor.name?lower_case}"
style="${item.getEditorCssStyle()}" style="${item.getEditorCssStyle()}"
@change="($event)=>{panelEditItemChange(data, '${editor.name?lower_case}', $event)}"> :value="layoutData.${editor.name}"
:disabled="layoutModelDetails.${editor.name}.disabled"
<#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if>
@change="(value) => handleValueChange({ name: '${editor.name}', value})">
</input-box> </input-box>
</#if> </#if>
\ No newline at end of file
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<#else> <#else>
<input-box <input-box
type="number" type="number"
:disabled="detailsModel.${item.getCodeName()}.disabled"
<#if item.getUnitName?? && item.getUnitName()??>unit="${item.getUnitName()}"</#if>
:precision="2" :precision="2"
v-model="data.${editor.name?lower_case}" :value="layoutData.${editor.name}"
style="${item.getEditorCssStyle()}" :disabled="layoutModelDetails.${editor.name}.disabled"
<#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if> <#if editor.getUnitName?? && editor.getUnitName()??>unit="${editor.getUnitName()}"</#if>
@change="($event)=>{panelEditItemChange(data, '${editor.name?lower_case}', $event)}"> <#if editor.getPlaceHolder()??>placeholder="${editor.getPlaceHolder()}"</#if>
style="${editor.getEditorCssStyle()}"
@change="(value) => handleValueChange({ name: '${editor.name}', value})">
</input-box> </input-box>
</#if> </#if>
\ No newline at end of file
...@@ -6,36 +6,58 @@ ...@@ -6,36 +6,58 @@
<#if editor.getPickupPSAppView()??> <#if editor.getPickupPSAppView()??>
<app-picker <app-picker
:formState="viewState" :formState="viewState"
:data="data" :data="layoutData"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:localContext =<@getNavigateContext editor /> :localContext=<@getNavigateContext editor />
:localParam =<@getNavigateParams editor /> :localParam=<@getNavigateParams editor />
:disabled="detailsModel.${item.getCodeName()}.disabled" :disabled="layoutModelDetails.${editor.name}.disabled"
<#if item.getPlaceHolder()??> <#if item.getPlaceHolder()??>
placeholder="${item.getPlaceHolder()}" placeholder="${item.getPlaceHolder()}"
</#if> </#if>
name='${editor.name}' name='${editor.name}'
<#-- 自填模式文本属性、值属性start --> <#if editor.getEditorParam("PICKUPDATA", "") != "">pickUpData="${editor.getEditorParam("PICKUPDATA", "")}"</#if>
<#if editor.getPSAppDEACMode?? && editor.getPSAppDEACMode()??> <#if editor.getPSAppDEACMode?? && editor.getPSAppDEACMode()??>
<#assign appDeAcMode = editor.getPSAppDEACMode() /> <#assign appDeAcMode = editor.getPSAppDEACMode() />
deMajorField='${appDeAcMode.getTextPSAppDEField().getCodeName()?lower_case}' deMajorField='${appDeAcMode.getTextPSAppDEField().getCodeName()?lower_case}'
deKeyField='<#if appDeAcMode.getValuePSAppDEField().getCodeName() == editor.getPSAppDataEntity().getKeyPSAppDEField().getCodeName()>${editor.getPSAppDataEntity().getCodeName()?lower_case}<#else>${appDeAcMode.getValuePSAppDEField().getCodeName()?lower_case}</#if>' deKeyField='<#if appDeAcMode.getValuePSAppDEField().getCodeName() == editor.getPSAppDataEntity().getKeyPSAppDEField().getCodeName()>${editor.getPSAppDataEntity().getCodeName()?lower_case}<#else>${appDeAcMode.getValuePSAppDEField().getCodeName()?lower_case}</#if>'
<#else> <#else>
<#if editor.getPSAppDataEntity?? && editor.getPSAppDataEntity()??> <#if editor.getPSAppDataEntity?? && editor.getPSAppDataEntity()??>
deMajorField='${editor.getPSAppDataEntity().getMajorPSAppDEField().getCodeName()?lower_case}' deMajorField='${editor.getPSAppDataEntity().getMajorPSAppDEField().getCodeName()?lower_case}'
deKeyField='${editor.getPSAppDataEntity().getCodeName()?lower_case}' deKeyField='${editor.getPSAppDataEntity().getCodeName()?lower_case}'
</#if> </#if>
</#if> </#if>
<#-- 自填模式文本属性、值属性end -->
:service="service" :service="service"
<#if editor.getPSAppDEACMode?? && editor.getPSAppDEACMode()??>
<#if editor.getPSAppDEACMode().getMinorSortPSDEF?? && editor.getPSAppDEACMode().getMinorSortPSDEF()?? && editor.getPSAppDEACMode().getMinorSortDir?? && editor.getPSAppDEACMode().getMinorSortDir()??>
<#if editor.getPSAppDEACMode().getMinorSortDir() == 'ASC' || editor.getPSAppDEACMode().getMinorSortDir() == 'DESC'>
sort='${editor.getPSAppDEACMode().getMinorSortPSDEF().getCodeName()?lower_case},${editor.getPSAppDEACMode().getMinorSortDir()?lower_case}'
</#if>
</#if>
<#if editor.getPSAppDEACMode().getPSDEUIActionGroup?? && editor.getPSAppDEACMode().getPSDEUIActionGroup()??>
<#assign editorActionGroup = editor.getPSAppDEACMode().getPSDEUIActionGroup() />
<#if editorActionGroup.getPSUIActionGroupDetails?? && editorActionGroup.getPSUIActionGroupDetails()??>
:actionDetails="[<#compress>
<#list editorActionGroup.getPSUIActionGroupDetails() as actionDetail>
<#if actionDetail.getPSUIAction?? && actionDetail.getPSUIAction()??>
<#assign uiaction = actionDetail.getPSUIAction() />
{caption:'${uiaction.getCaption()}',tag:${editor.name}_editor_${actionDetail.getName()}_click}<#if actionDetail_has_next>,</#if>
</#if>
</#list>
</#compress>]"
@editoractionclick="onFormItemActionClick"
</#if>
</#if>
</#if>
:acParams=<@getAcParams editor /> :acParams=<@getAcParams editor />
valueitem='${editor.getValueItemName()}' <#if editor.getValueItemName??>
:value="data[${editor.name}]" valueitem="${editor.getValueItemName()}"
</#if>
:value="layoutData.${editor.name}"
editortype="" editortype=""
:pickupView=<@getPickupView editor /> :pickupView=<@getPickupView editor />
style="${editor.getEditorCssStyle()}" style="${editor.getEditorCssStyle()}"
@formitemvaluechange="($event)=>{onPanelItemValueChange(data,$event)}"> @formitemvaluechange="handleValueChange">
<@getItemRender editor /> <@getItemRender editor />
</app-picker> </app-picker>
</#if> </#if>
......
...@@ -3,14 +3,12 @@ ...@@ -3,14 +3,12 @@
<#else> <#else>
<date-picker <date-picker
type="date" type="date"
:transfer="true"
format="yyyy-MM-dd" format="yyyy-MM-dd"
<#if item.getPlaceHolder()??> <#if item.getPlaceHolder()??>placeholder="${item.getPlaceHolder()}"</#if>
placeholder="${item.getPlaceHolder()}" :transfer="true"
</#if> :value="layoutData.${editor.name}"
:disabled="detailsModel.${item.getCodeName()}.disabled" :disabled="layoutModelDetails.${editor.name}.disabled"
:value="data.${editor.name?lower_case}" style="min-width: 150px;${editor.getEditorCssStyle()}<#if editor.getEditorParam('width','') == 'auto'>width:100%;</#if>"
style="${item.getEditorCssStyle()}<#if item.getEditorParam('width','') == 'auto'>width:100%;</#if>" @on-change="(value, val2) => handleValueChange({ name: '${editor.name}', value})">
@on-change="(val1, val2) => { data.${editor.name?lower_case} = val1; panelEditItemChange(data, '${editor.name?lower_case}', val1)}">
</date-picker> </date-picker>
</#if> </#if>
\ No newline at end of file
...@@ -2,22 +2,28 @@ ...@@ -2,22 +2,28 @@
<#if editor?? && editor.render??> <#if editor?? && editor.render??>
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-span <#t> <app-span
:value="data.${editor.name?lower_case}" <#t> name="${editor.name}"
name="${editor.name?lower_case}" <#t> :value="layoutData.${editor.name}"
:data="data" <#t> <#if item.getPSCodeList?? && item.getPSCodeList()??>
:context="context" <#t> <#assign codelist=item.getPSCodeList() />
:viewparams="viewparams" <#t> tag="${codelist.codeName}"
:localContext =<@getNavigateContext editor /> <#t> codelistType="${codelist.getCodeListType()}"
:localParam =<@getNavigateParams editor /> <#t> <#if codelist.getOrMode?? && codelist.getOrMode()?has_content>
<#if item.getPSCodeList?? && item.getPSCodeList()??> renderMode="${codelist.getOrMode()}"
<#assign codelist=item.getPSCodeList()>
tag='${codelist.codeName}' <#t>
codelistType='${codelist.getCodeListType()}' <#t>
<#if codelist.getValueSeparator?? && codelist.getValueSeparator()?? && codelist.getValueSeparator() != ''>
valueSeparator='${codelist.getValueSeparator()}' <#t>
</#if> </#if>
</#if> <#if codelist.valueSeparator?has_content>
style="${item.getEditorCssStyle()}"> <#t> valueSeparator="${codelist.valueSeparator}"
</app-span> <#lt> </#if>
<#if codelist.textSeparator?has_content>
textSeparator="${codelist.textSeparator}"
</#if>
</#if>
:data="layoutData"
:context="context"
:viewparams="viewparams"
:localContext=<@getNavigateContext editor />
:localParam=<@getNavigateParams editor />
style="${editor.getEditorCssStyle()}">
</app-span>
</#if> </#if>
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<#else> <#else>
<app-stepper <app-stepper
name='${editor.name}' name='${editor.name}'
:value="data.${editor.name?lower_case}" style="${item.getEditorCssStyle()}"
@change="($event)=>{onPanelItemValueChange(data,$event)} " :value="layoutData.${editor.name}"
:disabled="detailsModel.${item.getCodeName()}.disabled" :disabled="layoutModelDetails.${editor.name}.disabled"
style="${item.getEditorCssStyle()}"> @change="handleValueChange">
</app-stepper> </app-stepper>
</#if> </#if>
\ No newline at end of file
...@@ -2,10 +2,13 @@ ...@@ -2,10 +2,13 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-slider <app-slider
name='${editor.name?lower_case}' name="${editor.name}"
:value="data.${editor.name?lower_case}" style="${editor.getEditorCssStyle()}"
@change="($event)=>{onPanelItemValueChange(data,$event)} " :value="layoutData.${editor.name}"
:disabled="detailsModel.${item.getCodeName()}.disabled" :disabled="layoutModelDetails.${editor.name}.disabled"
style="${item.getEditorCssStyle()}"> :step="<#if editor.getEditorParam('step','') != ''>${editor.getEditorParam('step','')}<#else>1</#if>"
:min="<#if editor.getEditorParam('min','') != ''>${editor.getEditorParam('min','')}<#else>0</#if>"
:max="<#if editor.getEditorParam('max','') != ''>${editor.getEditorParam('max','')}<#else>100</#if>"
@change="handleValueChange">
</app-slider> </app-slider>
</#if> </#if>
\ No newline at end of file
...@@ -2,18 +2,21 @@ ...@@ -2,18 +2,21 @@
${editor.render.code} ${editor.render.code}
<#else> <#else>
<app-rate <app-rate
name='${editor.name?lower_case}' name="${editor.name}"
:value="data.${editor.name?lower_case}" style="${editor.getEditorCssStyle()}"
@change="($event)=>{data.${editor.name?lower_case} = $event; panelEditItemChange(data, '${editor.name?lower_case}', $event)} " :value="layoutData.${editor.name}"
:disabled="detailsModel.${item.getCodeName()}.disabled" :disabled="layoutModelDetails.${editor.name}.disabled"
<#if item.getEditorParam('max','') != ''>
:max="${item.getEditorParam('max','')}"
</#if>
<#if item.getPSCodeList?? && item.getPSCodeList()??> <#if item.getPSCodeList?? && item.getPSCodeList()??>
<#assign codelist=item.getPSCodeList()> <#assign codelist=item.getPSCodeList()>
tag='${codelist.codeName}' <#t> tag="${codelist.codeName}"
codelistType='${codelist.getCodeListType()}' <#t> codelistType="${codelist.getCodeListType()}"
<#if codelist.getValueSeparator?? && codelist.getValueSeparator()?? && codelist.getValueSeparator() != ''> <#if codelist.getValueSeparator?? && codelist.getValueSeparator()?? && codelist.getValueSeparator() != ''>
valueSeparator='${codelist.getValueSeparator()}' <#t> valueSeparator="${codelist.getValueSeparator()}"
</#if> </#if>
</#if> </#if>
style="${item.getEditorCssStyle()}"> @change="(value) => handleValueChange({ name: '${editor.name}', value})">
</app-rate> </app-rate>
</#if> </#if>
\ No newline at end of file
<#if editor?? && editor.render??> <#if editor?? && editor.render??>
${editor.render.code} ${editor.render.code}
<#else> <#else>
<div style="${item.getEditorCssStyle()}"> <app-checkbox
<app-checkbox :value="data.${editor.name?lower_case}" @change="($event)=>{data.${editor.name?lower_case} = $event;panelEditItemChange(data, '${editor.name?lower_case}', $event)} " :disabled="detailsModel.${item.getCodeName()}.disabled"></app-checkbox> style="${editor.getEditorCssStyle()}"
</div> :value="layoutData.${editor.name}"
:disabled="layoutModelDetails.${editor.name}.disabled"
@change="(value) => handleValueChange({ name: '${editor.name}', value})">
</app-checkbox>
</#if> </#if>
\ No newline at end of file
...@@ -168,7 +168,13 @@ ...@@ -168,7 +168,13 @@
:data="layoutData" :data="layoutData"
:layoutModelDetails="layoutModelDetails"/></@compress> :layoutModelDetails="layoutModelDetails"/></@compress>
<#else> <#else>
<@compress single_line=true><span>属性项</span></@compress> <@compress single_line=true><app-panel-field
name="${panelDetail.getName()}"
<#if isMultiData == true >:index="slotProps.data.index"</#if>
:data="layoutData"
:value=<#if isMultiData == true >"layoutData[`${panelDetail.getName()}_<#noparse>${slotProps.data.index}</#noparse>`]"<#else>"layoutData.${panelDetail.getName()}"</#if>>
${P.getEditorCode(item, "PANELEDITOR.vue").code}
</app-panel-field></@compress>
</#if> </#if>
<#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "RAWITEM"> <#elseif panelDetail.getItemType()?? && panelDetail.getItemType() == "RAWITEM">
<#if panelDetail.getPSRawItem?? && panelDetail.getPSRawItem()??> <#if panelDetail.getPSRawItem?? && panelDetail.getPSRawItem()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册