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