liuqing01 于 2025/06/18 10:08 最后修改

从版本 10.10
maym编辑
在2025/03/18 09:58上
修改评论: 该版本没有评论
到版本
yinshi编辑
在2024/10/24 08:32上
修改评论: 该版本没有评论

摘要

细节

页面属性
标题
... ... @@ -1,1 +1,1 @@
1 -5.8.2.5 Indicator Card
1 +5.8.2.5 指标卡
... ... @@ -1,1 +1,1 @@
1 -Egret Cloud Operation manual.5\. 设计应用.5\.8 报表设计.5\.8\.2 报表设计器.WebHome
1 +Main.5\. 设计应用.5\.8 报表设计.5\.8\.2 报表设计器.WebHome
文档作者
... ... @@ -1,1 +1,1 @@
1 -XWiki.maym
1 +XWiki.yinshi
内容
... ... @@ -1,81 +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 -(% style="width:650.222px" %)
12 -|(% style="width:290px" %)Indicator|(% style="width:356px" %)Indicator field type
13 -|(% style="width:290px" %)Required, maximum of 8 fields.|(% style="width:356px" %)Must be an aggregatable field.
14 14  
15 -**Indicator:**The numbers displayed in the indicator cards are aggregated results, meaning that the indicator cards must exclusively show numerical values.
12 +|指标|指标字段类型
13 +|必填,最多8个字段|必须是聚合字段公式内字段也需要为聚合字段
16 16  
15 +**指标**:数据的总值,支持聚合,且仅显示聚合后的结果(所以指标卡中一定是显示的数字)
17 17  
17 +备注:**可以直接选择数据集下的字段,也可以通过公式生成**
18 18  
19 -==== **[Configuration steps]** ====
20 20  
21 -**Step-1 Select chart and configure data sources**
20 +2、【数据源配置】
22 22  
23 -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.
22 +①在画布中点击“指标卡”图形:首页点击指标卡后,显示demo假数据,效果如下图
24 24  
25 -[[image:1729843542241-466.png]]
24 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=NTE1YThkNDdiNDdiMTg3Y2NiYWNlYTI5YmUyMmQzZWFfZzVYTnZyOVFHdFg4ejZtRG9CWkJpc0ZFVldhRjBuZzdfVG9rZW46VVRZRmJYd1ZSb0FsdHp4MkhicmNRODFkbnloXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]]
26 26  
27 -**Step-2 Add indicator field**
28 28  
29 -In the chart selection panel, select 'Add Metrics to Indicator Card graphic': Drag dataset fields into the Metrics section.
27 +②为指标卡图形添加指标,即: 拖入表单字段作为数据源:
30 30  
31 -[[image:1737529303936-797.png]]
29 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=NTI3MzQ4NTg3ODI5MzE3YzU3MTEzMzQ0ZTk5YjBlZDJfMkNVSWxZaDFLamdNN1c4TnBPanVEMkN2cG1TNFBPOUtfVG9rZW46U3phdmJ0eHM5b01NekV4dVp3dmNFMU9XbmRmXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]]
32 32  
33 33  
34 -**Step-2  Style settings**
32 +3、【样式配置】
35 35  
36 -[[image:1729843821098-935.png||height="659" width="1281"]]
34 +如下图:
37 37  
36 +(% contenteditable="false" tabindex="-1" %)[[image:https://quickegret.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDFiNzQyYzFjMTczNzg2MWFkMzYxZjZjYTMzODQ1MzJfTlB6bmE3Z09yQ1dGMlA2SXJlV3lyY2d0MmNZdXkwZkJfVG9rZW46Q0FkemJ0aUVBb094aEh4allHUWNCWEVKbmNmXzE3Mjk3NTg3MjU6MTcyOTc2MjMyNV9WNA||data-widget="image"]]
38 38  
39 39  
39 +具体可配置的样式和详细需求如下:
40 40  
41 -==== **[Style Configuration Description]** ====
41 +|(% colspan="1" rowspan="1" %)(((
42 +
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 +**指标卡**
42 42  
43 -|(% colspan="1" rowspan="1" %)Classification|(% colspan="1" rowspan="1" %)Configuration Items|(% colspan="1" rowspan="1" %)Purpose
44 -|(% colspan="1" rowspan="7" %)(((
45 -Basic Style
46 -
47 47  
48 -)))|(% 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
49 -|(% colspan="1" rowspan="1" %)Title name|(% colspan="1" rowspan="1" %)You can name the chart by yourself
50 -|(% colspan="1" rowspan="1" %)Help text|(% colspan="1" rowspan="1" %)(((
51 -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
56 +)))|(% colspan="1" rowspan="6" %)(((
57 +基础
52 52  
53 -[[image:1729844522588-836.png]]
59 +
60 +)))|(% colspan="1" rowspan="1" %)(((
61 +显示标题
62 +)))|(% colspan="1" rowspan="1" %)(((
63 +开关
64 +)))|(% colspan="1" rowspan="1" %)(((
65 +默认开启
54 54  )))
55 -|(% 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
56 -|(% 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.
57 -|(% colspan="1" %)Enable export|(% colspan="1" %)After enabling, the client-side application can export indicator card data to local Excel files.
58 -|(% colspan="1" rowspan="1" %)Cols/Row|(% colspan="1" rowspan="1" %)(((
59 -(((
60 -Selectable options: 4 columns, 3 columns, or 2 columns.
61 -
62 -[[image:1729844573944-101.png||height="365" width="1150"]]
67 +|(% colspan="1" rowspan="1" %)(((
68 +标题名称
69 +)))|(% colspan="1" rowspan="1" %)(((
70 +输入框
71 +)))|(% colspan="1" rowspan="1" %)(((
72 +默认输入:指标卡
63 63  )))
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 +开关
64 64  
65 -(((
66 66  
94 +)))|(% colspan="1" rowspan="1" %)(((
95 +默认打开。**导出的是报表数据源表单的Excel源数据**
67 67  )))
97 +|(% colspan="1" rowspan="1" %)(((
98 +每行列数
99 +)))|(% colspan="1" rowspan="1" %)(((
100 +下拉单选
101 +)))|(% colspan="1" rowspan="1" %)(((
102 +默认:4, 可选值:4,3,2
68 68  )))
69 69  |(% colspan="1" rowspan="3" %)(((
70 -Indicator card style
105 +指标卡样式
71 71  
72 72  
73 -)))|(% colspan="1" rowspan="1" %)Indicator style|(% colspan="1" rowspan="1" %)Select either a solid fill style or a side-bar style for display.
74 -|(% colspan="1" rowspan="1" %)Card background|(% colspan="1" rowspan="1" %)The background color of the indicator card can be customized.
108 +)))|(% colspan="1" rowspan="1" %)(((
109 +指标卡风格
110 +)))|(% colspan="1" rowspan="1" %)(((
111 +选项卡
112 +)))|(% colspan="1" rowspan="1" %)(((
113 +默认:纯色填充,可选值:纯色填充,带侧边条 (以UI为准)
114 +)))
75 75  |(% 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" %)(((
76 76  指标字号
77 77  )))|(% colspan="1" rowspan="1" %)(((
78 -支持用户改变指标卡中数字的字号粗细,颜色
125 +下拉单选
126 +
127 +
128 +)))|(% colspan="1" rowspan="1" %)(((
129 +默认:大,可选值:大,中,小(以UI为准)。只改变指标卡中数字的字号粗细,不改变指标名称的字体字号(原型中有效果展示)。
79 79  )))
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 +)))
80 80  
81 -(% 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
内容