GRIDEIDTOR.vue.ftl 1.7 KB
Newer Older
1
<#ibizinclude>../@MACRO/FUNC/PUBLIC.vue.ftl</#ibizinclude>
2
<#if item.render??>
3 4
    ${item.render.code}
<#else>
5 6 7 8 9 10 11
<#if editor.getEditorParam("PICKUPVIEW",true)??>
  <#if editor.getPickupPSAppView()??>
<app-picker 
  :formState="viewState" 
  :data="row"
  :context="context"
  :viewparams="viewparams"
tony001's avatar
tony001 committed
12 13
  :localContext =<@getNavigateContext editor />
  :localParam =<@getNavigateParams editor />
14 15 16 17 18 19 20
  :disabled="row.srfuf === 1 ? (${item.getEnableCond()?c} & 2) !== 2 : (${item.getEnableCond()?c} & 1) !== 1" 
  name='${editor.name}'
<#if editor.getPSAppDataEntity?? && editor.getPSAppDataEntity()??>
  deMajorField='${editor.getPSAppDataEntity().getMajorPSAppDEField().getCodeName()?lower_case}'
  deKeyField='${editor.getPSAppDataEntity().getCodeName()?lower_case}'
</#if>
  :service="service"
21 22 23 24 25 26 27
<#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>
28 29 30 31 32 33
  :acParams=<@getAcParams editor />
  valueitem='${editor.getValueItemName()}' 
  :value="row[column.property]" 
  editortype="" 
  :pickupView=<@getPickupView editor />
  style="${editor.getEditorCssStyle()}"  
34
  @formitemvaluechange="($event)=>{onGridItemValueChange(row,$event,$index)}">
35 36 37
    <@getItemRender editor />
</app-picker>
  </#if>
38
</#if>
39
</#if>