VIEW.vue.ftl 3.2 KB
Newer Older
1
<#--  <#if view.isBlankMode()>
2 3 4 5 6
<div class="index_view ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>">
    <app-keep-alive :routerList="getRouterList">
        <router-view :key="getRouterViewKey"></router-view>
    </app-keep-alive>
</div>
7
<#else>  -->
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<#if view.getMainMenuAlign()=="TOP">
    <app-index-view-layout-top :class="{ [themeClasses]: true, '${srffilepath2(view.getCodeName())}': true<#if view.getPSSysCss?? && view.getPSSysCss()??>, '${view.getPSSysCss().getCssName()}': true</#if> }" :style="themeStyle">
            <template #headerLeft>
                <img class="app-icon" src="../../../assets/img/logo.png" />
                <span class="app-caption">{{$t(model.srfCaption)}}</span>
            </template>
            <template #headerRight>
                ${P.getCtrlCode('appmenu', 'CONTROL.html').code}
                <app-user></app-user>
                <app-message-popover></app-message-popover>
                <app-help></app-help>
                <app-lang></app-lang>
            </template>
            <template #navPos>
                <router-view></router-view>
            </template>
    </app-index-view-layout-top>
<#else>
26 27
    <app-index-view-layout-left :navModel="navModel" :collapseChange="collapseChange" :class="{ [themeClasses]: true, '${srffilepath2(view.getCodeName())}': true<#if view.getPSSysCss?? && view.getPSSysCss()??>, '${view.getPSSysCss().getCssName()}': true</#if> }" :style="themeStyle">
        <template #siderTop>
28
            <div class="app-title">
29
            <#if view.getAppIconPath() != "">
30
                <img class="app-icon" v-if="isEnableAppSwitch" src="${view.getAppIconPath()}" @click="contextMenuDragVisiable=!contextMenuDragVisiable" />
31
                <#else>
32
                <span class="menuicon" v-if="isEnableAppSwitch" @click="contextMenuDragVisiable=!contextMenuDragVisiable"><Icon class="app-icon" type="md-menu" /></span>
33
            </#if>
34
                <span class="app-caption" v-show="!collapseChange">{{$t(model.srfCaption)}}</span>
35
            </div>
36 37 38 39 40
        </template>
        <template #siderContent>
            ${P.getCtrlCode('appmenu', 'CONTROL.html').code}
            <context-menu-drag v-if="isEnableAppSwitch" :contextMenuDragVisiable="contextMenuDragVisiable"></context-menu-drag>
        </template>
41 42 43
        <template #siderBottom>
            <i v-show="!collapseChange" class="collapse-icon ivu-icon el-icon-s-fold" @click="handleClick"></i>
            <i v-show="collapseChange" class="collapse-icon ivu-icon el-icon-s-unfold" @click="handleClick"></i>
44 45 46 47
        </template>
        <template #headerRight>
            <app-user></app-user>
            <app-message-popover></app-message-popover>
Shine-zwj's avatar
Shine-zwj committed
48 49
            <app-help></app-help>
            <app-lang></app-lang>
50 51 52 53 54 55 56 57 58 59
        </template>
        <template #tabPageExp>
            <tab-page-exp v-if="Object.is(navModel,'tab')"></tab-page-exp>
        </template>
        <template #navPos>
            <app-keep-alive :routerList="getRouterList">
                <router-view :key="getRouterViewKey"></router-view>
            </app-keep-alive>
        </template>
    </app-index-view-layout-left>
60
</#if>
61
<#--  </#if>  -->