CONTROL-BASE.template.ftl 1.2 KB
Newer Older
ibizdev's avatar
ibizdev committed
1
<template>
2
    <ion-grid class="app-mob-dashboard <#if appde??>${appde.getCodeName()?lower_case}-${ctrl.name}</#if> <#if ctrl.getPSSysCss()??><#assign singleCss = ctrl.getPSSysCss()> ${singleCss.getCssName()}</#if>">
KK's avatar
KK committed
3
        <div v-show="isEnableCustomized" class="dashboard-enableCustomized" @click="openCustomized">定制仪表盘<ion-icon name="settings-outline"></ion-icon></div>
ibizdev's avatar
ibizdev committed
4 5
        <#list ctrl.getAllPSPortlets() as portlet><#t>
        <#if portlet.getPortletType?? && portlet.getPortletType()?? && portlet.getPortletType() != 'CONTAINER'><#t>
KK's avatar
KK committed
6
            <div class="dashboard-item" v-if="!isEnableCustomized">
ibizdev's avatar
ibizdev committed
7
            ${P.getCtrlCode(portlet, 'CONTROL.html').code}
KK's avatar
KK committed
8
            </div>
ibizdev's avatar
ibizdev committed
9 10
        </#if>
        </#list>
KK's avatar
KK committed
11
            <template v-for="item in customizeModel">
KK's avatar
KK committed
12
                <ion-card class="dashboard-item ios hydrated" :class="item.componentName + 'dashboard'"  :key="item.id" v-if="isEnableCustomized">
13
                    <component :is="item.componentName" :isCustomize="true" :viewState="viewState" :name="item.portletCodeName" :context="context" :isChildView="true" :viewparams="viewparams"></component>
KK's avatar
KK committed
14
                </ion-card>
KK's avatar
KK committed
15
            </template>
ibizdev's avatar
ibizdev committed
16 17
    </ion-grid>
</template>