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

数据看板定制

上级 e6f4e3ff
<template>
<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>">
<div v-show="isEnableCustomized" class="dashboard-enableCustomized">定制仪表盘<ion-icon name="settings-outline"></ion-icon></div>
<#list ctrl.getAllPSPortlets() as portlet><#t>
<#if portlet.getPortletType?? && portlet.getPortletType()?? && portlet.getPortletType() != 'CONTAINER'><#t>
<div class="dashboard-item">
......
......@@ -7,6 +7,15 @@
</#ibizinclude>
/**
* 支持定制
*
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
protected isEnableCustomized: boolean = <#if ctrl.isEnableCustomized?? && ctrl.isEnableCustomized()??>${ctrl.isEnableCustomized()?c}<#else>false</#if>;
/**
* 获取多项数据
*
......
<#assign content>
isEnableCustomized="<#if ctrl.isEnableCustomized?? && ctrl.isEnableCustomized()??>${ctrl.isEnableCustomized()?c}</#if>"
</#assign>
<#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl
</#ibizinclude>
\ No newline at end of file
......@@ -17,5 +17,17 @@
.dashboard-item {
margin: 10px;
background: #fafafa;
min-height: 300px;
}
.dashboard-enableCustomized{
display: flex;
justify-content: flex-end;
align-items: center;
margin: 10px;
font-size: 14px;
color: #7b7575;
ion-icon{
padding-left: 5px;
}
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册