PANELEDITOR.vue.ftl 2.5 KB
Newer Older
1
<#ibizinclude>../@MACRO/FUNC/PUBLIC.vue.ftl</#ibizinclude>
2 3 4
<#if item.render??>
    ${item.render.code}
<#else>
5 6 7 8 9 10 11 12
<app-upicker  
  :formState="formState"
  :data="data"
  :context="context"
  :viewparams="viewparams"
  :itemParams='<#if editor.getItemParamJO?? && editor.getItemParamJO()??>${editor.getItemParamJO()}</#if>'
  :localContext =<@getNavigateContext editor />
  :localParam =<@getNavigateParams editor />
13
  :disabled="detailsModel.${editor.name}.disabled"
14 15 16
  <#if item.getPlaceHolder()??>
  placeholder="${item.getPlaceHolder()}"
  </#if>
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
  name='${editor.name}' 
<#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>
  <#-- 自填模式界面行为组start -->
  <#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>
  <#-- 自填模式界面行为组end -->
</#if>
<#if editor.getPSAppDataEntity?? && editor.getPSAppDataEntity()??>
  deMajorField='${editor.getPSAppDataEntity().getMajorPSAppDEField().getCodeName()?lower_case}'
  deKeyField='${editor.getPSAppDataEntity().getCodeName()?lower_case}'
</#if>
  :service="service"
  :acParams=<@getAcParams editor />
  valueitem='${item.getValueItemName()}' 
48
  :value="data.${editor.name}" 
49 50
  editortype="dropdown" 
  style="${editor.getEditorCssStyle()}" 
Shine-zwj's avatar
Shine-zwj committed
51
  @formitemvaluechange="($event)=>{onPanelItemValueChange(data,$event)}">
52
    <@getItemRender editor />
53 54
</app-upicker>
</#if>