提交 ac673f85 编写于 作者: KK's avatar KK

增加门户类型样式类

上级 3178c06c
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<div v-show="isEnableCustomized" class="dashboard-enableCustomized" @click="openCustomized">定制仪表盘<ion-icon name="settings-outline"></ion-icon></div> <div v-show="isEnableCustomized" class="dashboard-enableCustomized" @click="openCustomized">定制仪表盘<ion-icon name="settings-outline"></ion-icon></div>
<#list ctrl.getAllPSPortlets() as portlet><#t> <#list ctrl.getAllPSPortlets() as portlet><#t>
<#if portlet.getPortletType?? && portlet.getPortletType()?? && portlet.getPortletType() != 'CONTAINER'><#t> <#if portlet.getPortletType?? && portlet.getPortletType()?? && portlet.getPortletType() != 'CONTAINER'><#t>
<ion-card class="dashboard-item" v-if="!isEnableCustomized"> <ion-card class="dashboard-item ${portlet.getPortletType()?lower_case}" v-if="!isEnableCustomized">
${P.getCtrlCode(portlet, 'CONTROL.html').code} ${P.getCtrlCode(portlet, 'CONTROL.html').code}
</ion-card> </ion-card>
</#if> </#if>
</#list> </#list>
<template v-for="item in customizeModel"> <template v-for="item in customizeModel">
<ion-card class="dashboard-item ios hydrated" :class="item.componentName + 'dashboard'" :key="item.id" v-if="isEnableCustomized"> <ion-card class="dashboard-item userCustomize ios hydrated" :class="item.componentName + 'dashboard'" :key="item.id" v-if="isEnableCustomized">
<component :is="item.componentName" :item="item" :isCustomize="true" :customizeTitle="item.customizeTitle" :viewState="viewState" :name="item.portletCodeName" :context="context" :isChildView="true" :viewparams="viewparams" @enableCustomizedEvent="enableCustomizedEvent"></component> <component :is="item.componentName" :item="item" :isCustomize="true" :customizeTitle="item.customizeTitle" :viewState="viewState" :name="item.portletCodeName" :context="context" :isChildView="true" :viewparams="viewparams" @enableCustomizedEvent="enableCustomizedEvent"></component>
</ion-card> </ion-card>
</template> </template>
......
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
</#if> </#if>
<#elseif ctrl.getContentPSControl()??> <#elseif ctrl.getContentPSControl()??>
<#-- 图表,列表,菜单 --> <#-- 图表,列表,菜单 -->
<div class="${ctrl.getPortletType()?lower_case}">
${P.getCtrlCode(ctrl.getContentPSControl(), 'CONTROL.html').code} ${P.getCtrlCode(ctrl.getContentPSControl(), 'CONTROL.html').code}
</div>
<#else> <#else>
<div>${ctrl.name}类型${ctrl.getPortletType()}不提供内容输出</div> <div>${ctrl.name}类型${ctrl.getPortletType()}不提供内容输出</div>
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册