VIEW.vue.ftl 3.2 KB
Newer Older
tony001's avatar
tony001 committed
1
<#ibizinclude>../../@MACRO/FUNC/MACRO.ftl</#ibizinclude>
2
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
3
    <app-studioaction :viewTitle="$t(model.srfCaption)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
4
    <card class='view-card <#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>'  :dis-hover="true" :bordered="false">
tony001's avatar
tony001 committed
5 6 7 8 9
    <@ibizindent blank=8>
    <#ibizinclude>
    ../@MACRO/VIEW_CAPTION.vue.ftl
    </#ibizinclude>
    </@ibizindent>
10 11 12 13 14 15 16
<#--  BEGIN:视图顶部视图消息  -->
<@ibizindent blank=8>
<#ibizinclude>
../@MACRO/View_Pos_Top_Msgs.vue.ftl
</#ibizinclude>
</@ibizindent>
<#--  END:视图顶部视图消息  -->
17
        <div class='content-container'>
tony001's avatar
tony001 committed
18 19 20 21 22 23
<#assign MDContent>
  <#--  BEGIN:快速搜索框或工具栏或支持快速分组搜索或快速搜索表单部件存在  -->
  <#if (view.isEnableQuickSearch() || view.hasPSControl('toolbar') || view.isEnableQuickGroup() || view.getQuickPSDESearchForm()??)>
  <div style="margin-bottom:6px;">
      <#if view.isEnableQuickGroup()>
      <div class="quick-group-container">
24
          <app-quick-group :items="quickGroupModel" <#if appCounter??>:counterService="${appCounter.getCodeName()?lower_case}counterservice"</#if> @valuechange="quickGroupValueChange"></app-quick-group>
tony001's avatar
tony001 committed
25 26 27 28 29 30 31 32 33
      </div>
      </#if>
      <#if view.getQuickPSDESearchForm()??>
      <div class="quick-search-container">
        <#assign quickSearchForm = view.getQuickPSDESearchForm() />
      ${P.getCtrlCode(quickSearchForm, 'CONTROL.html').code}
      </div>
      </#if>
      <#if view.isEnableQuickSearch()>
34
      <i-input <#if view.hasPSControl('searchform')><#if view.isExpandSearchForm??> v-show='!this.isExpandSearchForm '</#if></#if> v-model='query' search @on-search='onSearch' placeholder="<@getQuickSearchPlaceholder view />" class='pull-left' style='max-width: 400px;margin-top:6px;padding-left: 24px;' />
tony001's avatar
tony001 committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
      </#if>
      <div class='pull-right'>
      <#if view.hasPSControl('toolbar')>
      <@ibizindent blank=20>
      ${P.getCtrlCode('toolbar', 'CONTROL.html').code}<#t>
      </@ibizindent>
      </#if>
      </div>
  </div>
  </#if>
  <#--  END:快速搜索框或工具栏或支持快速分组搜索或快速搜索表单部件存在  -->
  <#if view.hasPSControl('searchform')>
  <@ibizindent blank=12>
  ${P.getCtrlCode('searchform', 'CONTROL.html').code}<#t>
  </@ibizindent>
  </#if>
51 52 53 54 55 56 57
<#--  BEGIN:视图内容区视图消息  -->
<@ibizindent blank=8>
<#ibizinclude>
../@MACRO/View_Pos_Body_Msgs.vue.ftl
</#ibizinclude>
</@ibizindent>
<#--  END:视图内容区视图消息  -->
tony001's avatar
tony001 committed
58 59 60 61 62 63
  <#if view.hasPSControl('dataview')>
  <@ibizindent blank=12>
  ${P.getCtrlCode('dataview', 'CONTROL.html').code}<#t>
  </@ibizindent>
  </#if>
</#assign>
64 65 66
            <#ibizinclude>
            ../@MACRO/VIEW_MD_CONTENT.vue.ftl
            </#ibizinclude>
67
        </div>
68 69 70 71 72 73 74
<#--  BEGIN:视图底部视图消息  -->
<@ibizindent blank=8>
<#ibizinclude>
../@MACRO/View_Pos_Bottom_Msgs.vue.ftl
</#ibizinclude>
</@ibizindent>
<#--  END:视图底部视图消息  -->
75 76
    </card>
</div>