VIEW.tsx.ftl 2.1 KB
Newer Older
yanshaowei's avatar
yanshaowei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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
<div class="view-container ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
    <card class='view-card' dis-hover={true} padding={0} bordered={false}>

    <#ibizinclude>
    ../@MACRO/VIEW_CAPTION.tsx.ftl
    </#ibizinclude>

<#if view.hasPSControl('toolbar')>
<#assign toolbarCtrl = view.getPSControl('toolbar')>
<@ibizindent blank=8>
${P.getCtrlCode(toolbarCtrl, 'CONTROL.html').code}
</@ibizindent>
</#if>
        <div class="grid-view8-container">
<#if view.hasPSControl('totalgrid')>
<#assign totalgrid = view.getPSControl("totalgrid")>
            <div style="<#if totalgrid.getHeight() gt 0>height: ${totalgrid.getHeight()}px;</#if><#if totalgrid.getWidth() gt 0>width: ${totalgrid.getWidth()}px;<#else>flex-grow: 1;</#if>">
<@ibizindent blank=16>
${P.getCtrlCode(totalgrid, 'CONTROL.html').code}
</@ibizindent>
            </div>
</#if>
            <div class="grid-view8-toolbar">
                <div style="text-align: center;">
                    <el-button type="primary" disabled={this.engine.selections2.length == 0} on-click={() => this.engine.moveData()} icon="el-icon-arrow-right"></el-button>
                    <el-button type="primary" disabled={this.engine.selections.length == 0} on-click={() => this.engine.moveData2()} icon="el-icon-arrow-left"></el-button>
                    <el-button type="primary" disabled={this.engine.selections2.length == 0} on-click={() => this.engine.moveAllData()} icon="el-icon-d-arrow-right"></el-button>
                    <el-button type="primary" disabled={this.engine.selections.length == 0} on-click={() => this.engine.moveAllData2()} icon="el-icon-d-arrow-left"></el-button>
              </div>
            </div>
<#if view.hasPSControl('grid')>
<#assign grid = view.getPSControl("grid")>
            <div style="<#if grid.getHeight() gt 0>height: ${grid.getHeight()}px;</#if><#if grid.getWidth() gt 0>width: ${grid.getWidth()}px;<#else>flex-grow: 1;</#if>">
<@ibizindent blank=16>
${P.getCtrlCode(grid, 'CONTROL.html').code}
</@ibizindent>
            </div>
</#if>
        </div>
    </card>
</div>