由 liuqing01 于 2025/06/18 10:08 最后修改
摘要
-
页面属性 (4 修改, 0 新增, 0 删除)
-
附件 (0 修改, 0 新增, 15 删除)
- 1729839523741-806.png
- 1729843542241-466.png
- 1729843773872-432.png
- 1729843821098-935.png
- 1729844522588-836.png
- 1729844573944-101.png
- 1737529303936-797.png
- 1742287452034-168.png
- 1742292301873-589.png
- 1742292355305-673.png
- 1742292450362-628.png
- 1742292499859-182.png
- 1742292540188-800.png
- 1750241261946-144.png
- 1750241279860-224.png
细节
- 页面属性
-
- 标题
-
... ... @@ -1,1 +1,1 @@ 1 -5.8.2.5 Indicator Card1 +5.8.2.5 指标卡 - 父
-
... ... @@ -1,1 +1,1 @@ 1 - Egret Cloud Operationmanual.5\. 设计应用.5\.8 报表设计.5\.8\.2 报表设计器.WebHome1 +Main.5\. 设计应用.5\.8 报表设计.5\.8\.2 报表设计器.WebHome - 文档作者
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. liuqing011 +XWiki.yinshi - 内容
-
... ... @@ -1,69 +1,189 @@ 1 - ==== ** [Usage Scenario]** ====1 +1、【使用场景】 2 2 3 - It is suitable for scenarios that require directly highlighting key data. For example, indicator cards can be used to display metrics such as total product sales, delivery quantity, and warehouse inventory levels.3 +适用于需要直接显示重点数据的场景。例如可以使用指标卡展示商品的销售总额、发货数量、仓库库存数量等 4 4 5 - As shown in the figure below, the indicator card directly displays the total sales amount, effectively highlighting this key metric in a card format.5 +如下图所示,使用指标卡直接显示销售总金额,方便以卡片形式突出显示 6 6 7 -[[image: 1742287452034-168.png]]7 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=NmE0NmVkNTExODNiYTgxZWFiYWMzOWE2ZjgzZGMzMTlfQ3lwWmNTTFlwTVVjUFg0WVhkV0JGYTdFckFqU2IxZEFfVG9rZW46TzJQOGJ4Z3Ewb1VIZHl4RW13SmNmc2habmtnXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 8 8 9 - ==== **[Basic Requirements ]** ====9 +基本要求 10 10 11 -|Indicator|Indicator field type 12 -|Required, maximum of 8 fields.|Must be an aggregatable field. 13 13 14 -**Indicator:**The numbers displayed in the indicator cards are aggregated results, meaning that the indicator cards must exclusively show numerical values. 12 +|指标|指标字段类型 13 +|必填,最多8个字段|必须是聚合字段公式内字段也需要为聚合字段 15 15 16 - ====**[Configuration steps]**====15 +**指标**:数据的总值,支持聚合,且仅显示聚合后的结果(所以指标卡中一定是显示的数字) 17 17 18 -** Step-1 Select chart and configure data sources**17 +备注:**可以直接选择数据集下的字段,也可以通过公式生成** 19 19 20 -Select the 'Indicator Card' in the chart selection panel: Clicking the indicator card on the homepage displays demo sample data, as shown in the figure below. 21 21 22 - [[image:1750241261946-144.png]]20 +2、【数据源配置】 23 23 22 +①在画布中点击“指标卡”图形:首页点击指标卡后,显示demo假数据,效果如下图 24 24 25 - **Step-2 Addindicatorfield**24 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=NTE1YThkNDdiNDdiMTg3Y2NiYWNlYTI5YmUyMmQzZWFfZzVYTnZyOVFHdFg4ejZtRG9CWkJpc0ZFVldhRjBuZzdfVG9rZW46VVRZRmJYd1ZSb0FsdHp4MkhicmNRODFkbnloXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 26 26 27 -In the chart selection panel, select 'Add Metrics to Indicator Card graphic': Drag dataset fields into the Metrics section. 28 28 29 - [[image:1750241279860-224.png]]27 +②为指标卡图形添加指标,即: 拖入表单字段作为数据源: 30 30 29 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=NTI3MzQ4NTg3ODI5MzE3YzU3MTEzMzQ0ZTk5YjBlZDJfMkNVSWxZaDFLamdNN1c4TnBPanVEMkN2cG1TNFBPOUtfVG9rZW46U3phdmJ0eHM5b01NekV4dVp3dmNFMU9XbmRmXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 31 31 32 -**Step-2 Style settings** 33 33 34 - [[image:1742292450362-628.png]]32 +3、【样式配置】 35 35 36 - ==== **[Style Configuration Description]** ====34 +如下图: 37 37 38 -|(% colspan="1" rowspan="1" %)Classification|(% colspan="1" rowspan="1" %)Configuration Items|(% colspan="1" rowspan="1" %)Purpose 39 -|(% colspan="1" rowspan="7" %)((( 40 -Basic Style 36 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDFiNzQyYzFjMTczNzg2MWFkMzYxZjZjYTMzODQ1MzJfTlB6bmE3Z09yQ1dGMlA2SXJlV3lyY2d0MmNZdXkwZkJfVG9rZW46Q0FkemJ0aUVBb094aEh4allHUWNCWEVKbmNmXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 41 41 38 + 39 +具体可配置的样式和详细需求如下: 40 + 41 +|(% colspan="1" rowspan="1" %)((( 42 42 43 -)))|(% colspan="1" rowspan="1" %)Show title|(% colspan="1" rowspan="1" %)Control whether the chart title in the upper left corner of the canvas is displayed. When closed, the chart title will not be displayed in the report, The words "**Sales atatistis**" are shown in the following figure 44 -|(% colspan="1" rowspan="1" %)Title name|(% colspan="1" rowspan="1" %)You can name the chart by yourself 45 -|(% colspan="1" rowspan="1" %)Help text|(% colspan="1" rowspan="1" %)((( 46 -Control whether the help copy is displayed in the chart. If enabled, client users can see a "?" icon after the chart title and the corresponding help copy when moving the mouse over the icon 43 +)))|(% colspan="1" rowspan="1" %)((( 44 +样式设置分类 45 +)))|(% colspan="1" rowspan="1" %)((( 46 +配置项 47 +)))|(% colspan="1" rowspan="1" %)((( 48 +形态 49 +)))|(% colspan="1" rowspan="1" %)((( 50 + 51 +))) 52 +|(% colspan="1" rowspan="9" %)((( 53 +**指标卡** 47 47 48 -[[image:1742292355305-673.png]] 55 + 56 +)))|(% colspan="1" rowspan="6" %)((( 57 +基础 58 + 59 + 60 +)))|(% colspan="1" rowspan="1" %)((( 61 +显示标题 62 +)))|(% colspan="1" rowspan="1" %)((( 63 +开关 64 +)))|(% colspan="1" rowspan="1" %)((( 65 +默认开启 49 49 ))) 50 -|(% colspan="1" rowspan="1" %)Help text content|(% colspan="1" rowspan="1" %)Enter a description of the chart here to help client users understand the chart data 51 -|(% colspan="1" %)Drill down|(% colspan="1" %)After enabling, you can configure drill-down detail table reports that require setup. Please select a detail table report that shares the same data source as the current report. 52 -|(% colspan="1" %)Enable export|(% colspan="1" %)After enabling, the client-side application can export indicator card data to local Excel files. 53 -|(% colspan="1" rowspan="1" %)Cols/Row|(% colspan="1" rowspan="1" %)((( 54 -Selectable options: 4 columns, 3 columns, or 2 columns. 67 +|(% colspan="1" rowspan="1" %)((( 68 +标题名称 69 +)))|(% colspan="1" rowspan="1" %)((( 70 +输入框 71 +)))|(% colspan="1" rowspan="1" %)((( 72 +默认输入:指标卡 73 +))) 74 +|(% colspan="1" rowspan="1" %)((( 75 +帮助文字 76 +)))|(% colspan="1" rowspan="1" %)((( 77 +开关 78 +)))|(% colspan="1" rowspan="1" %)((( 79 +默认关闭 80 +))) 81 +|(% colspan="1" rowspan="1" %)((( 82 +帮助文字内容 83 +)))|(% colspan="1" rowspan="1" %)((( 84 +输入框 85 +)))|(% colspan="1" rowspan="1" %)((( 86 +占位提示:请输入 87 +))) 88 +|(% colspan="1" rowspan="1" %)((( 89 +启用导出 90 +)))|(% colspan="1" rowspan="1" %)((( 91 +开关 55 55 56 -[[image:1742292301873-589.png]] 93 + 94 +)))|(% colspan="1" rowspan="1" %)((( 95 +默认打开。**导出的是报表数据源表单的Excel源数据** 96 +))) 97 +|(% colspan="1" rowspan="1" %)((( 98 +每行列数 99 +)))|(% colspan="1" rowspan="1" %)((( 100 +下拉单选 101 +)))|(% colspan="1" rowspan="1" %)((( 102 +默认:4, 可选值:4,3,2 103 +))) 104 +|(% colspan="1" rowspan="3" %)((( 105 +指标卡样式 57 57 58 58 108 +)))|(% colspan="1" rowspan="1" %)((( 109 +指标卡风格 110 +)))|(% colspan="1" rowspan="1" %)((( 111 +选项卡 112 +)))|(% colspan="1" rowspan="1" %)((( 113 +默认:纯色填充,可选值:纯色填充,带侧边条 (以UI为准) 59 59 ))) 60 -|(% colspan="1" rowspan="4" %)((( 61 -Indicator card style 115 +|(% colspan="1" rowspan="1" %)((( 116 +背景色值 117 +)))|(% colspan="1" rowspan="1" %)((( 118 +拾色器 119 +)))|(% colspan="1" rowspan="1" %)((( 120 +默认颜色:待UI确定(以UI为准) 121 +))) 122 +|(% colspan="1" rowspan="1" %)((( 123 +指标字号 124 +)))|(% colspan="1" rowspan="1" %)((( 125 +下拉单选 62 62 63 63 64 -)))|(% colspan="1" rowspan="1" %)Indicator style|(% colspan="1" rowspan="1" %)Select either a solid fill style or a side-bar style for display. 65 -|(% colspan="1" rowspan="1" %)Card background|(% colspan="1" rowspan="1" %)The background color of the indicator card can be customized. 66 -|(% colspan="1" rowspan="1" %)Title color|(% colspan="1" rowspan="1" %)The title color of the indicator card can be customized. 67 -|(% colspan="1" %)Indicator value|(% colspan="1" %)The font size, weight, and color of numbers in the indicator card can be adjusted. 128 +)))|(% colspan="1" rowspan="1" %)((( 129 +默认:大,可选值:大,中,小(以UI为准)。只改变指标卡中数字的字号粗细,不改变指标名称的字体字号(原型中有效果展示)。 130 +))) 131 +|(% colspan="1" rowspan="1" %)((( 132 + 133 +)))|(% colspan="1" rowspan="1" %)((( 134 + 135 +)))|(% colspan="1" rowspan="1" %)((( 136 + 137 +)))|(% colspan="1" rowspan="1" %)((( 138 + 139 +)))|(% colspan="1" rowspan="1" %)((( 140 + 141 +))) 68 68 69 -(% contenteditable="false" style="background-image:url(http://192.168.102.35:8080/webjars/wiki%3Axwiki/xwiki-platform-ckeditor-webjar/16.8.0/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="拖曳以移動" width="15"]] 143 + 144 +4、【字段配置】 145 + 146 +下图中: 147 + 148 +1、截图左侧默认的选中项都是“基础设置” 149 + 150 +2、“展示格式”和“字段信息”和之前制作的折柱饼图中完全一致 151 + 152 +①设置的指标字段为“数值”类型时:(聚合方式:默认是求和) 153 + 154 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=NmE0ZTVlZTJhYjAzOTEyYmVlZDEwMDMyN2IzNTNlMTBfc1p1VlhZYVBUNXVmZDJRazRMWjJRQXZpUmdyRG9pNUhfVG9rZW46QVBoeWJqYzJ6b0V4Zmt4ZjBrVWNpcFFubm5oXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 155 + 156 + 157 +②设置的指标字段为“字符串”类型时:(聚合方式:默认是计数) 158 + 159 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=Yzg4MzcyNmI4NWE1YjE1MGJiMjM5ZTE0ZTZmMTg2MGNfNUQwR1VhRzlEMWtnNXdib1FPeUdqc093T0lIdjVERERfVG9rZW46TmlFbmIzWUdJbzJHekl4UFBXeGMyMlpQbnhiXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 160 + 161 + 162 +③设置的指标字段为“日期”类型时:(聚合方式:默认是计数) 163 + 164 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=NDU4M2ZiYThmZWIwMTQ0MTA2NmU1MjBjZjE2ZjQ2NWZfVjc2RDYyaUtQZUFKWGN1TG1rZkF4RmtjMkh5aGhzWVhfVG9rZW46TEhuTmJLeFpqb203WWx4OXM2T2NseXk4bkNnXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 165 + 166 + 167 +④设置的指标字段为“地址”类型时:(聚合方式:默认是计数) 168 + 169 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=MmYwZGQxMWI1ZDZmZWE3YjRlNGEwYzE3NDc0YzUyN2ZfeDlja2ltWGFLRDd6N1o0anRHQ2I5U3A5WDcwbk5uM1VfVG9rZW46WGFoN2J5TVR2bzJJVEN4Z0kwS2NVeGlKbnBoXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 170 + 171 + 172 +④设置的指标字段为“公式Fx”类型时: 173 + 174 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=MzU4MGYwMWQ2YWJhMjk5M2NiM2Y2ZmI0YzM0NzhiYmFfSWpQbmpNNkVUNFQzNGhqcHE4TENFVDJiQUdKWWozOHZfVG9rZW46UlYxUGIyalBub2hFcXh4ek1TRGNVTVZibnRkXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 175 + 176 + 177 +表单中用户提交的数据中,**如果有空值, 是否纳入指标卡中数字的计算?** 178 + 179 +答: 180 + 181 +不纳入计算, 如下例子: 182 + 183 +表单中共4条数据,但是其中1条数据的评分和日期没有填, 184 + 185 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=MGRhYTMyMGNhZjI5YTNlMGJjMzZjNDZlNmI1ZDE1Y2ZfTUUxdGdPamt5d2FxeWFqZjhwTzZYNTU0Z3BhYm5QNGVfVG9rZW46QjYzRGJpd3ZJb0o4MEl4b0F5YWM0dXg3blJiXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]] 186 + 187 +那么用指标卡的时候,计算的评分的平均值,计算日期的计数时,会显示如下结果:**即:均不把空值纳入统计** 188 + 189 +(% contenteditable="false" tabindex="-1" style="background-image:url(http://192.168.102.35:8080/webjars/wiki%3Axwiki/xwiki-platform-ckeditor-webjar/16.8.0/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="拖曳以移動" width="15"]]
- 1729839523741-806.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.YufeiLi - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -12.7 KB - 内容
- 1729843542241-466.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.YufeiLi - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -17.5 KB - 内容
- 1729843773872-432.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.YufeiLi - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -62.6 KB - 内容
- 1729843821098-935.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.YufeiLi - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -69.1 KB - 内容
- 1729844522588-836.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.YufeiLi - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -20.9 KB - 内容
- 1729844573944-101.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.YufeiLi - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -52.9 KB - 内容
- 1737529303936-797.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.YufeiLi - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -63.3 KB - 内容
- 1742287452034-168.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.maym - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -5.2 KB - 内容
- 1742292301873-589.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.maym - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -58.4 KB - 内容
- 1742292355305-673.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.maym - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -53.5 KB - 内容
- 1742292450362-628.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.maym - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -58.7 KB - 内容
- 1742292499859-182.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.maym - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -72.1 KB - 内容
- 1742292540188-800.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.maym - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -26.9 KB - 内容
- 1750241261946-144.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.liuqing01 - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -46.3 KB - 内容
- 1750241279860-224.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.liuqing01 - 大小
-
... ... @@ -1,1 +1,0 @@ 1 -55.0 KB - 内容