EDITOR.vue.ftl 3.1 KB
Newer Older
KK's avatar
KK committed
1
<#ibizinclude>../@MACRO/FUNC/PUBLIC.vue.ftl</#ibizinclude>
2 3
<#if editor?? && editor.render??> 
    ${editor.render.code}
KK's avatar
KK committed
4 5 6 7 8 9 10 11 12 13 14
<#else>
<#if editor.getEditorParam("PICKUPVIEW",true)??>
  <#if editor.getPickupPSAppView()??>
<app-picker 
  :formState="formState"
  :data="data"
  :context="context"
  :viewparams="viewparams"
  :localContext =<@getNavigateContext editor />
  :localParam =<@getNavigateParams editor />
  :disabled="detailsModel.${editor.name}.disabled"
15 16 17
  <#if item.getPlaceHolder()??>
  placeholder="${item.getPlaceHolder()}"
  </#if>
KK's avatar
KK committed
18
  :showButton="false"
KK's avatar
KK committed
19
  name='${editor.name}'
20 21 22 23 24 25
<#-- 自填模式文本属性、值属性start -->
<#if editor.getPSAppDEACMode?? && editor.getPSAppDEACMode()??>
<#assign appDeAcMode = editor.getPSAppDEACMode() />
  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>'
<#else>
KK's avatar
KK committed
26 27 28 29
<#if editor.getPSAppDataEntity?? && editor.getPSAppDataEntity()??>
  deMajorField='${editor.getPSAppDataEntity().getMajorPSAppDEField().getCodeName()?lower_case}'
  deKeyField='${editor.getPSAppDataEntity().getCodeName()?lower_case}'
</#if>
30 31
</#if>
<#-- 自填模式文本属性、值属性end -->
KK's avatar
KK committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
  :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>
  <#-- 自填模式界面行为组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>
  :acParams=<@getAcParams editor />
  valueitem='${editor.getValueItemName()}' 
  :value="data.${editor.name}" 
  editortype="" 
  :pickupView=<@getPickupView editor />
  style="${editor.getEditorCssStyle()}"  
  @formitemvaluechange="onFormItemValueChange">
    <@getItemRender editor />
</app-picker>
  </#if>
</#if>
</#if>