|
|
@@ -0,0 +1,707 @@
|
|
|
1
|
+<template>
|
|
|
2
|
+
|
|
|
3
|
+ <div class="org-profile">
|
|
|
4
|
+ <!-- 顶部指标卡片 -->
|
|
|
5
|
+ <div class="metric-row">
|
|
|
6
|
+ <div class="metric-card" v-for="(m, i) in metricCards" :key="i" :style="{ background: m.bg }">
|
|
|
7
|
+ <div class="metric-title">{{ m.title }}</div>
|
|
|
8
|
+ <div class="metric-value" :style="{ color: m.color }">{{ m.value }}</div>
|
|
|
9
|
+ <div class="metric-change-row">
|
|
|
10
|
+ <div class="metric-change-info">
|
|
|
11
|
+ <span class="metric-change-label">环比</span>
|
|
|
12
|
+ <span class="metric-change" :class="'change-' + m.changeType" :style="{ color: m.changeColor }">
|
|
|
13
|
+ {{ m.change }}
|
|
|
14
|
+ </span>
|
|
|
15
|
+ </div>
|
|
|
16
|
+ <div class="metric-chart" :ref="el => m._sparkRef = el" />
|
|
|
17
|
+ </div>
|
|
|
18
|
+ </div>
|
|
|
19
|
+ <div class="metric-side-cards">
|
|
|
20
|
+ <div class="metric-card metric-warning-top">
|
|
|
21
|
+ <div class="metric-title">锐甲安语—自愿报告系统</div>
|
|
|
22
|
+ <div class="metric-value" style="color:#fff">3</div>
|
|
|
23
|
+ </div>
|
|
|
24
|
+ <div class="metric-card metric-warning-bottom">
|
|
|
25
|
+ <div class="metric-title">部门亚健康人员</div>
|
|
|
26
|
+ <div class="metric-value" style="color:#fff">147</div>
|
|
|
27
|
+ </div>
|
|
|
28
|
+ </div>
|
|
|
29
|
+ </div>
|
|
|
30
|
+
|
|
|
31
|
+ <!-- 中部图表区 -->
|
|
|
32
|
+ <div class="charts-row">
|
|
|
33
|
+ <div class="charts-col charts-col-main">
|
|
|
34
|
+ <!-- 第一行 -->
|
|
|
35
|
+ <div class="charts-grid charts-grid-2">
|
|
|
36
|
+ <WhiteCard title="监察问题统计" bgColor="#dbeafe">
|
|
|
37
|
+ <div ref="supervisionLineRef" class="chart-box" />
|
|
|
38
|
+ </WhiteCard>
|
|
|
39
|
+ <WhiteCard title="问题类型分布" bgColor="#dbeafe">
|
|
|
40
|
+ <div ref="problemTypeRef" class="chart-box" />
|
|
|
41
|
+ </WhiteCard>
|
|
|
42
|
+ </div>
|
|
|
43
|
+ <!-- 第二行 -->
|
|
|
44
|
+ <div class="charts-grid charts-grid-2">
|
|
|
45
|
+ <WhiteCard title="班组问题统计(监察)" bgColor="#dcfce7">
|
|
|
46
|
+ <div ref="teamSupervisionRef" class="chart-box" />
|
|
|
47
|
+ </WhiteCard>
|
|
|
48
|
+ <WhiteCard title="区域问题占比(监察)" bgColor="#fef3c7">
|
|
|
49
|
+ <div ref="areaPieRef" class="chart-box" />
|
|
|
50
|
+ </WhiteCard>
|
|
|
51
|
+ </div>
|
|
|
52
|
+ <!-- 第三行 -->
|
|
|
53
|
+ <div class="charts-grid charts-grid-2">
|
|
|
54
|
+ <WhiteCard title="班组问题统计(实时)" bgColor="#dcfce7">
|
|
|
55
|
+ <div ref="teamRealtimeRef" class="chart-box" />
|
|
|
56
|
+ </WhiteCard>
|
|
|
57
|
+ <WhiteCard title="实时质控拦截情况" bgColor="#dcfce7">
|
|
|
58
|
+ <div ref="realtimeLineRef" class="chart-box" />
|
|
|
59
|
+ </WhiteCard>
|
|
|
60
|
+ </div>
|
|
|
61
|
+ <!-- 第四行 -->
|
|
|
62
|
+ <div class="charts-grid charts-grid-2">
|
|
|
63
|
+ <WhiteCard title="实时质控开机年轮分布" bgColor="#dbeafe">
|
|
|
64
|
+ <div ref="yearRingRef" class="chart-box" />
|
|
|
65
|
+ </WhiteCard>
|
|
|
66
|
+ <WhiteCard title="实时质控围难易度" bgColor="#dbeafe">
|
|
|
67
|
+ <div ref="difficultyRef" class="chart-box" />
|
|
|
68
|
+ </WhiteCard>
|
|
|
69
|
+ </div>
|
|
|
70
|
+ <!-- 第五行 -->
|
|
|
71
|
+ <div class="charts-grid charts-grid-2">
|
|
|
72
|
+ <WhiteCard title="实时拦截物品汇总" bgColor="#dbeafe">
|
|
|
73
|
+ <div ref="interceptItemsRef" class="chart-box" />
|
|
|
74
|
+ </WhiteCard>
|
|
|
75
|
+ <WhiteCard title="服务巡查" bgColor="#dbeafe">
|
|
|
76
|
+ <div ref="servicePatrolRef" class="chart-box" />
|
|
|
77
|
+ </WhiteCard>
|
|
|
78
|
+ </div>
|
|
|
79
|
+ <!-- 第六行 -->
|
|
|
80
|
+ <div class="charts-grid charts-grid-2">
|
|
|
81
|
+ <WhiteCard title="投诉涉及班组情况" bgColor="#fce4ec">
|
|
|
82
|
+ <div ref="complaintTeamRef" class="chart-box" />
|
|
|
83
|
+ </WhiteCard>
|
|
|
84
|
+ <WhiteCard title="不安全事件发生对比" bgColor="#dbeafe">
|
|
|
85
|
+ <div ref="unsafeCompareRef" class="chart-box" />
|
|
|
86
|
+ </WhiteCard>
|
|
|
87
|
+ </div>
|
|
|
88
|
+ <!-- 第七行 -->
|
|
|
89
|
+ <div class="charts-grid charts-grid-2">
|
|
|
90
|
+ <WhiteCard title="亚健康人数占比" bgColor="#fef3c7">
|
|
|
91
|
+ <div ref="subhealthPieRef" class="chart-box" />
|
|
|
92
|
+ </WhiteCard>
|
|
|
93
|
+ <WhiteCard title="各班组健康与亚健康比例" bgColor="#fef3c7">
|
|
|
94
|
+ <div ref="healthRatioRef" class="chart-box" />
|
|
|
95
|
+ </WhiteCard>
|
|
|
96
|
+ </div>
|
|
|
97
|
+ <!-- 第八行 -->
|
|
|
98
|
+ <div class="charts-grid charts-grid-1">
|
|
|
99
|
+ <WhiteCard title="旅检三部人员年龄分布表" bgColor="#dbeafe">
|
|
|
100
|
+ <div ref="ageDistRef" class="chart-box-wide" />
|
|
|
101
|
+ </WhiteCard>
|
|
|
102
|
+ </div>
|
|
|
103
|
+ </div>
|
|
|
104
|
+
|
|
|
105
|
+ <!-- 右侧排行榜 -->
|
|
|
106
|
+ <div class="charts-col-side">
|
|
|
107
|
+ <WhiteCard title="监察问题(总)" bgColor="#f0f4ff">
|
|
|
108
|
+ <div class="rank-list">
|
|
|
109
|
+ <div class="rank-avatar-row">
|
|
|
110
|
+ <div class="rank-avatar-item" v-for="(item, i) in superVisionTop3" :key="i">
|
|
|
111
|
+ <div class="rank-avatar" :style="{ background: item.color }">{{ item.name[0] }}</div>
|
|
|
112
|
+ <div class="rank-name">{{ item.name }}</div>
|
|
|
113
|
+ <div class="rank-num">{{ item.num }}</div>
|
|
|
114
|
+ </div>
|
|
|
115
|
+ </div>
|
|
|
116
|
+ <div class="rank-table">
|
|
|
117
|
+ <div class="rank-tr rank-th">
|
|
|
118
|
+ <span>排名</span><span>姓名</span><span>问题数</span>
|
|
|
119
|
+ </div>
|
|
|
120
|
+ <div class="rank-tr" v-for="(item, i) in superVisionList" :key="i">
|
|
|
121
|
+ <span>{{ i + 1 }}</span>
|
|
|
122
|
+ <span>{{ item.name }}</span>
|
|
|
123
|
+ <span>{{ item.num }}</span>
|
|
|
124
|
+ </div>
|
|
|
125
|
+ </div>
|
|
|
126
|
+ </div>
|
|
|
127
|
+ </WhiteCard>
|
|
|
128
|
+ <WhiteCard title="实时漏洞检情况(总)" bgColor="#f0fdf4">
|
|
|
129
|
+ <div class="rank-list">
|
|
|
130
|
+ <div class="rank-avatar-row">
|
|
|
131
|
+ <div class="rank-avatar-item" v-for="(item, i) in vulnTop3" :key="i">
|
|
|
132
|
+ <div class="rank-avatar" :style="{ background: item.color }">{{ item.name[0] }}</div>
|
|
|
133
|
+ <div class="rank-name">{{ item.name }}</div>
|
|
|
134
|
+ <div class="rank-num">{{ item.num }}</div>
|
|
|
135
|
+ </div>
|
|
|
136
|
+ </div>
|
|
|
137
|
+ <div class="rank-table">
|
|
|
138
|
+ <div class="rank-tr rank-th">
|
|
|
139
|
+ <span>排名</span><span>姓名</span><span>问题数</span>
|
|
|
140
|
+ </div>
|
|
|
141
|
+ <div class="rank-tr" v-for="(item, i) in vulnList" :key="i">
|
|
|
142
|
+ <span>{{ i + 1 }}</span>
|
|
|
143
|
+ <span>{{ item.name }}</span>
|
|
|
144
|
+ <span>{{ item.num }}</span>
|
|
|
145
|
+ </div>
|
|
|
146
|
+ </div>
|
|
|
147
|
+ </div>
|
|
|
148
|
+ </WhiteCard>
|
|
|
149
|
+ <WhiteCard title="航站楼加分" bgColor="#eff6ff">
|
|
|
150
|
+ <div class="rank-list">
|
|
|
151
|
+ <div class="rank-avatar-row">
|
|
|
152
|
+ <div class="rank-avatar-item" v-for="(item, i) in bonusTop3" :key="i">
|
|
|
153
|
+ <div class="rank-avatar" :style="{ background: item.color }">{{ item.name[0] }}</div>
|
|
|
154
|
+ <div class="rank-name">{{ item.name }}</div>
|
|
|
155
|
+ <div class="rank-num">{{ item.num }}</div>
|
|
|
156
|
+ </div>
|
|
|
157
|
+ </div>
|
|
|
158
|
+ <div class="rank-table">
|
|
|
159
|
+ <div class="rank-tr rank-th">
|
|
|
160
|
+ <span>排名</span><span>姓名</span><span>加分</span>
|
|
|
161
|
+ </div>
|
|
|
162
|
+ <div class="rank-tr" v-for="(item, i) in bonusList" :key="i">
|
|
|
163
|
+ <span>{{ i + 1 }}</span>
|
|
|
164
|
+ <span>{{ item.name }}</span>
|
|
|
165
|
+ <span>{{ item.num }}</span>
|
|
|
166
|
+ </div>
|
|
|
167
|
+ </div>
|
|
|
168
|
+ </div>
|
|
|
169
|
+ </WhiteCard>
|
|
|
170
|
+ <WhiteCard title="查获数量" bgColor="#f0f4ff">
|
|
|
171
|
+ <div class="rank-list">
|
|
|
172
|
+ <div class="rank-avatar-row">
|
|
|
173
|
+ <div class="rank-avatar-item" v-for="(item, i) in seizureTop3" :key="i">
|
|
|
174
|
+ <div class="rank-avatar" :style="{ background: item.color }">{{ item.name[0] }}</div>
|
|
|
175
|
+ <div class="rank-name">{{ item.name }}</div>
|
|
|
176
|
+ <div class="rank-num">{{ item.num }}</div>
|
|
|
177
|
+ </div>
|
|
|
178
|
+ </div>
|
|
|
179
|
+ <div class="rank-table">
|
|
|
180
|
+ <div class="rank-tr rank-th">
|
|
|
181
|
+ <span>排名</span><span>姓名</span><span>查获数</span>
|
|
|
182
|
+ </div>
|
|
|
183
|
+ <div class="rank-tr" v-for="(item, i) in seizureList" :key="i">
|
|
|
184
|
+ <span>{{ i + 1 }}</span>
|
|
|
185
|
+ <span>{{ item.name }}</span>
|
|
|
186
|
+ <span>{{ item.num }}</span>
|
|
|
187
|
+ </div>
|
|
|
188
|
+ </div>
|
|
|
189
|
+ </div>
|
|
|
190
|
+ </WhiteCard>
|
|
|
191
|
+ </div>
|
|
|
192
|
+ </div>
|
|
|
193
|
+ </div>
|
|
|
194
|
+
|
|
|
195
|
+</template>
|
|
|
196
|
+
|
|
|
197
|
+<script setup>
|
|
|
198
|
+import { ref, computed, onMounted } from 'vue'
|
|
|
199
|
+import { useECharts } from '@/hooks/useEcharts'
|
|
|
200
|
+import WhiteCard from '../components/whiteCard.vue'
|
|
|
201
|
+import Page from '../components/page.vue'
|
|
|
202
|
+import * as echarts from 'echarts'
|
|
|
203
|
+
|
|
|
204
|
+// ─── 顶部指标卡片 ───────────────────────────────
|
|
|
205
|
+const metricCards = ref([
|
|
|
206
|
+ { title: '监察问题数(本月)', value: '11', change: '57.69%', changeType: 'down', changeColor: '#ef4444', color: '#f59e0b', bg: '#dbeafe', sparkColor: '#3b82f6' },
|
|
|
207
|
+ { title: '实时质控数(本月)', value: '21', change: '56.25%', changeType: 'down', changeColor: '#ef4444', color: '#22c55e', bg: '#dcfce7', sparkColor: '#22c55e' },
|
|
|
208
|
+ { title: '服务巡查(本月)', value: '4', change: '0%', changeType: 'flat', changeColor: '#6b7280', color: '#3b82f6', bg: '#dbeafe', sparkColor: '#3b82f6' },
|
|
|
209
|
+ { title: '投诉情况(本月)', value: '1', change: '88.89%', changeType: 'down', changeColor: '#ef4444', color: '#ef4444', bg: '#fce4ec', sparkColor: '#ef4444' },
|
|
|
210
|
+ { title: '不安全事件发生次数(今年)', value: '3', change: '57.14%', changeType: 'down', changeColor: '#ef4444', color: '#ffffff', bg: '#6b7280', sparkColor: '#9ca3af' },
|
|
|
211
|
+])
|
|
|
212
|
+
|
|
|
213
|
+// ─── 图表 ref ────────────────────────────────────
|
|
|
214
|
+const supervisionLineRef = ref(null)
|
|
|
215
|
+const problemTypeRef = ref(null)
|
|
|
216
|
+const teamSupervisionRef = ref(null)
|
|
|
217
|
+const areaPieRef = ref(null)
|
|
|
218
|
+const teamRealtimeRef = ref(null)
|
|
|
219
|
+const realtimeLineRef = ref(null)
|
|
|
220
|
+const yearRingRef = ref(null)
|
|
|
221
|
+const difficultyRef = ref(null)
|
|
|
222
|
+const interceptItemsRef = ref(null)
|
|
|
223
|
+const servicePatrolRef = ref(null)
|
|
|
224
|
+const complaintTeamRef = ref(null)
|
|
|
225
|
+const unsafeCompareRef = ref(null)
|
|
|
226
|
+const subhealthPieRef = ref(null)
|
|
|
227
|
+const healthRatioRef = ref(null)
|
|
|
228
|
+const ageDistRef = ref(null)
|
|
|
229
|
+
|
|
|
230
|
+// ─── 图表配置(浅色主题)──────────────────────────
|
|
|
231
|
+
|
|
|
232
|
+const axisLabelColor = '#475569'
|
|
|
233
|
+const axisLineColor = '#cbd5e1'
|
|
|
234
|
+const splitLineColor = '#e2e8f0'
|
|
|
235
|
+const tooltipBg = 'rgba(255,255,255,0.95)'
|
|
|
236
|
+const tooltipBorder = '#cbd5e1'
|
|
|
237
|
+const tooltipText = '#1e293b'
|
|
|
238
|
+
|
|
|
239
|
+// 1. 监察问题统计-折线图
|
|
|
240
|
+const supervisionLineOpt = computed(() => ({
|
|
|
241
|
+ grid: { top: 20, bottom: 25, left: 40, right: 15 },
|
|
|
242
|
+ xAxis: { type: 'category', data: ['03:00', '05:00', '07:00', '09:00', '11:00', '13:00', '15:00', '17:00', '19:00', '20:00'], axisLabel: { color: axisLabelColor, fontSize: 11 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
243
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
244
|
+ series: [{ type: 'line', data: [3, 17, 11, 12, 9, 14, 15, 10, 7, 4], smooth: true, lineStyle: { color: '#3b82f6', width: 2 }, areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(59,130,246,0.2)' }, { offset: 1, color: 'rgba(59,130,246,0)' }] } }, symbol: 'circle', symbolSize: 6, itemStyle: { color: '#3b82f6' } }],
|
|
|
245
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
246
|
+}))
|
|
|
247
|
+
|
|
|
248
|
+// 2. 问题类型分布-条形图
|
|
|
249
|
+const problemTypeOpt = computed(() => ({
|
|
|
250
|
+ grid: { top: 15, bottom: 20, left: 110, right: 30 },
|
|
|
251
|
+ xAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
252
|
+ yAxis: { type: 'category', data: ['设备设施流程类', '岗位规范类', '岗位操作类'], axisLabel: { color: '#1e293b', fontSize: 12 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
253
|
+ series: [{ type: 'bar', data: [{ value: 2, itemStyle: { color: '#3b82f6' } }, { value: 75, itemStyle: { color: '#3b82f6' } }, { value: 101, itemStyle: { color: '#3b82f6' } }], barWidth: '50%', label: { show: true, position: 'right', color: '#1e293b', fontSize: 13 } }],
|
|
|
254
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
255
|
+}))
|
|
|
256
|
+
|
|
|
257
|
+// 3. 班组问题统计(监察)-柱状图
|
|
|
258
|
+const teamSupervisionOpt = computed(() => ({
|
|
|
259
|
+ grid: { top: 15, bottom: 25, left: 40, right: 15 },
|
|
|
260
|
+ xAxis: { type: 'category', data: ['安平班组', '安行班组', '木兰班组', '芮茜班组', '拓新班组', '屹动班组'], axisLabel: { color: axisLabelColor, fontSize: 11, rotate: 15 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
261
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
262
|
+ series: [{ type: 'bar', data: [{ value: 34, itemStyle: { color: '#3b82f6' } }, { value: 21, itemStyle: { color: '#3b82f6' } }, { value: 2, itemStyle: { color: '#3b82f6' } }, { value: 41, itemStyle: { color: '#3b82f6' } }, { value: 39, itemStyle: { color: '#3b82f6' } }, { value: 34, itemStyle: { color: '#3b82f6' } }], barWidth: '55%', label: { show: true, position: 'top', color: '#1e293b', fontSize: 11 } }],
|
|
|
263
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
264
|
+}))
|
|
|
265
|
+
|
|
|
266
|
+// 4. 区域问题占比-饼图
|
|
|
267
|
+const areaPieOpt = computed(() => ({
|
|
|
268
|
+ grid: { top: 10, bottom: 10, left: 0, right: '45%' },
|
|
|
269
|
+ series: [{
|
|
|
270
|
+ type: 'pie', radius: ['30%', '60%'], center: ['35%', '50%'],
|
|
|
271
|
+ data: [
|
|
|
272
|
+ { value: 128, name: 'T3国内出发', itemStyle: { color: '#a78bfa' } },
|
|
|
273
|
+ { value: 39, name: 'T3国际国内', itemStyle: { color: '#22c55e' } },
|
|
|
274
|
+ { value: 5, name: 'T3中心实时指控', itemStyle: { color: '#f59e0b' } }
|
|
|
275
|
+ ],
|
|
|
276
|
+ label: { show: true, color: '#475569', fontSize: 11, formatter: '{b}\n{c} ({d}%)' },
|
|
|
277
|
+ labelLine: { lineStyle: { color: '#cbd5e1' } },
|
|
|
278
|
+ emphasis: { itemStyle: { shadowBlur: 10, shadowColor: 'rgba(0,0,0,0.1)' } }
|
|
|
279
|
+ }],
|
|
|
280
|
+ tooltip: { trigger: 'item', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
281
|
+}))
|
|
|
282
|
+
|
|
|
283
|
+// 5. 班组问题统计(实时)-柱状图
|
|
|
284
|
+const teamRealtimeOpt = computed(() => ({
|
|
|
285
|
+ grid: { top: 15, bottom: 25, left: 40, right: 15 },
|
|
|
286
|
+ xAxis: { type: 'category', data: ['安平班组', '安行班组', '木兰班组', '芮茜班组', '拓新班组', '屹动班组'], axisLabel: { color: axisLabelColor, fontSize: 11, rotate: 15 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
287
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
288
|
+ series: [{ type: 'bar', data: [{ value: 60, itemStyle: { color: '#3b82f6' } }, { value: 44, itemStyle: { color: '#3b82f6' } }, { value: 21, itemStyle: { color: '#3b82f6' } }, { value: 65, itemStyle: { color: '#3b82f6' } }, { value: 56, itemStyle: { color: '#3b82f6' } }, { value: 75, itemStyle: { color: '#3b82f6' } }], barWidth: '55%', label: { show: true, position: 'top', color: '#1e293b', fontSize: 11 } }],
|
|
|
289
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
290
|
+}))
|
|
|
291
|
+
|
|
|
292
|
+// 6. 实时质控拦截情况-折线图
|
|
|
293
|
+const realtimeLineOpt = computed(() => ({
|
|
|
294
|
+ grid: { top: 20, bottom: 25, left: 40, right: 15 },
|
|
|
295
|
+ xAxis: { type: 'category', data: ['04:00', '06:00', '08:00', '10:00', '12:00', '14:00', '16:00', '18:00', '20:00', '22:00'], axisLabel: { color: axisLabelColor, fontSize: 11 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
296
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
297
|
+ series: [{ type: 'line', data: [8, 28, 31, 21, 26, 21, 11, 4, 1, 2], smooth: true, lineStyle: { color: '#3b82f6', width: 2 }, areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(59,130,246,0.15)' }, { offset: 1, color: 'rgba(59,130,246,0)' }] } }, symbol: 'circle', symbolSize: 6, itemStyle: { color: '#3b82f6' } }],
|
|
|
298
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
299
|
+}))
|
|
|
300
|
+
|
|
|
301
|
+// 7. 实时质控开机年轮分布
|
|
|
302
|
+const yearRingOpt = computed(() => ({
|
|
|
303
|
+ grid: { top: 15, bottom: 25, left: 40, right: 15 },
|
|
|
304
|
+ xAxis: { type: 'category', data: Array.from({ length: 42 }, (_, i) => i + 1), axisLabel: { color: axisLabelColor, fontSize: 10, interval: 4 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
305
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
306
|
+ series: [{ type: 'bar', data: Array.from({ length: 42 }, (_, i) => Math.floor(Math.random() * 40 + 10)), barWidth: '60%', itemStyle: { color: '#3b82f6', borderRadius: [3, 3, 0, 0] } }],
|
|
|
307
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
308
|
+}))
|
|
|
309
|
+
|
|
|
310
|
+// 8. 实时质控围难易度
|
|
|
311
|
+const difficultyOpt = computed(() => ({
|
|
|
312
|
+ grid: { top: 15, bottom: 20, left: 40, right: 15 },
|
|
|
313
|
+ xAxis: { type: 'category', data: ['0', '1', '2', '3', '4', '5'], axisLabel: { color: axisLabelColor, fontSize: 11 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
314
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
315
|
+ series: [{ type: 'bar', data: [2, 145, 70, 92, 16, 1], barWidth: '50%', itemStyle: { color: '#3b82f6', borderRadius: [5, 5, 0, 0] }, label: { show: true, position: 'top', color: '#1e293b', fontSize: 11 } }],
|
|
|
316
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
317
|
+}))
|
|
|
318
|
+
|
|
|
319
|
+// 9. 实时拦截物品汇总
|
|
|
320
|
+const interceptItemsOpt = computed(() => ({
|
|
|
321
|
+ grid: { top: 15, bottom: 40, left: 45, right: 15 },
|
|
|
322
|
+ xAxis: { type: 'category', data: ['打火机', '香烟', '刀具', '充电宝', '液体', '剪刀', '钥匙扣', '其他'], axisLabel: { color: axisLabelColor, fontSize: 10, rotate: 30 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
323
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
324
|
+ series: [{ type: 'bar', data: [136, 98, 45, 67, 23, 34, 12, 56], barWidth: '55%', itemStyle: { color: '#3b82f6', borderRadius: [5, 5, 0, 0] } }],
|
|
|
325
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
326
|
+}))
|
|
|
327
|
+
|
|
|
328
|
+// 10. 服务巡查-柱状图
|
|
|
329
|
+const servicePatrolOpt = computed(() => ({
|
|
|
330
|
+ grid: { top: 15, bottom: 25, left: 40, right: 15 },
|
|
|
331
|
+ xAxis: { type: 'category', data: ['安平班组', '安行班组', '木兰班组', '芮茜班组', '拓新班组', '屹动班组'], axisLabel: { color: axisLabelColor, fontSize: 11, rotate: 15 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
332
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
333
|
+ series: [{ type: 'bar', data: [3, 16, 7, 15, 14, 11], barWidth: '55%', itemStyle: { color: '#3b82f6', borderRadius: [5, 5, 0, 0] }, label: { show: true, position: 'top', color: '#1e293b', fontSize: 11 } }],
|
|
|
334
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
335
|
+}))
|
|
|
336
|
+
|
|
|
337
|
+// 11. 投诉涉及班组情况-条形图
|
|
|
338
|
+const complaintTeamOpt = computed(() => ({
|
|
|
339
|
+ grid: { top: 15, bottom: 20, left: 100, right: 30 },
|
|
|
340
|
+ xAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
341
|
+ yAxis: { type: 'category', data: ['屹动班组', '新训队', '拓新班组', '芮茜班组', '木兰班组', '空乘', '安行班组', '安平班组'], axisLabel: { color: '#1e293b', fontSize: 11 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
342
|
+ series: [{ type: 'bar', data: [50, 1, 30, 45, 19, 19, 22, 37], barWidth: '55%', itemStyle: { color: '#ef4444', borderRadius: [0, 5, 5, 0] }, label: { show: true, position: 'right', color: '#1e293b', fontSize: 11 } }],
|
|
|
343
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
344
|
+}))
|
|
|
345
|
+
|
|
|
346
|
+// 12. 不安全事件发生对比-柱状图
|
|
|
347
|
+const unsafeCompareOpt = computed(() => ({
|
|
|
348
|
+ grid: { top: 15, bottom: 25, left: 40, right: 15 },
|
|
|
349
|
+ xAxis: { type: 'category', data: ['安平班组', '安行班组', '木兰班组', '芮茜班组', '拓新班组', '屹动班组'], axisLabel: { color: axisLabelColor, fontSize: 11, rotate: 15 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
350
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
351
|
+ series: [{ type: 'bar', data: [3, 4, 4, 8, 3, 2], barWidth: '55%', itemStyle: { color: '#3b82f6', borderRadius: [5, 5, 0, 0] }, label: { show: true, position: 'top', color: '#1e293b', fontSize: 11 } }],
|
|
|
352
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
353
|
+}))
|
|
|
354
|
+
|
|
|
355
|
+// 13. 亚健康人数占比-环形图
|
|
|
356
|
+const subhealthPieOpt = computed(() => ({
|
|
|
357
|
+ tooltip: { trigger: 'item', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } },
|
|
|
358
|
+ series: [{
|
|
|
359
|
+ type: 'pie', radius: ['35%', '60%'], center: ['50%', '50%'],
|
|
|
360
|
+ data: [
|
|
|
361
|
+ { value: 25, name: '屹动班组', itemStyle: { color: '#06b6d4' } },
|
|
|
362
|
+ { value: 23, name: '安平班组', itemStyle: { color: '#22c55e' } },
|
|
|
363
|
+ { value: 28, name: '拓新班组', itemStyle: { color: '#f59e0b' } },
|
|
|
364
|
+ { value: 27, name: '芮茜班组', itemStyle: { color: '#ec4899' } },
|
|
|
365
|
+ { value: 13, name: '木兰班组', itemStyle: { color: '#a78bfa' } },
|
|
|
366
|
+ { value: 31, name: '其他', itemStyle: { color: '#f97316' } }
|
|
|
367
|
+ ],
|
|
|
368
|
+ label: { show: true, color: '#475569', fontSize: 11, formatter: '{b}: {c} ({d}%)' },
|
|
|
369
|
+ labelLine: { lineStyle: { color: '#cbd5e1' } },
|
|
|
370
|
+ emphasis: { itemStyle: { shadowBlur: 10, shadowColor: 'rgba(0,0,0,0.1)' } }
|
|
|
371
|
+ }]
|
|
|
372
|
+}))
|
|
|
373
|
+
|
|
|
374
|
+// 14. 各班组健康与亚健康比例-双柱图
|
|
|
375
|
+const healthRatioOpt = computed(() => ({
|
|
|
376
|
+ grid: { top: 20, bottom: 25, left: 45, right: 15 },
|
|
|
377
|
+ legend: { data: ['健康人员', '亚健康人员'], textStyle: { color: '#475569', fontSize: 11 }, top: 0 },
|
|
|
378
|
+ xAxis: { type: 'category', data: ['安平班组', '安行班组', '木兰班组', '芮茜班组', '拓新班组', '屹动班组'], axisLabel: { color: axisLabelColor, fontSize: 11, rotate: 15 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
379
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
380
|
+ series: [
|
|
|
381
|
+ { name: '健康人员', type: 'bar', data: [35, 20, 29, 26, 22, 27], barWidth: '30%', barGap: '10%', itemStyle: { color: '#3b82f6', borderRadius: [5, 5, 0, 0] } },
|
|
|
382
|
+ { name: '亚健康人员', type: 'bar', data: [23, 29, 13, 27, 28, 25], barWidth: '30%', itemStyle: { color: '#ef4444', borderRadius: [5, 5, 0, 0] } }
|
|
|
383
|
+ ],
|
|
|
384
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
385
|
+}))
|
|
|
386
|
+
|
|
|
387
|
+// 15. 年龄分布-柱状图
|
|
|
388
|
+const ageDistOpt = computed(() => {
|
|
|
389
|
+ const ages = Array.from({ length: 23 }, (_, i) => i + 23)
|
|
|
390
|
+ const data = [8, 12, 18, 24, 30, 36, 41, 36, 33, 28, 22, 18, 14, 10, 8, 6, 4, 3, 2, 2, 1, 1, 1]
|
|
|
391
|
+ return {
|
|
|
392
|
+ grid: { top: 15, bottom: 25, left: 40, right: 15 },
|
|
|
393
|
+ xAxis: { type: 'category', data: ages, axisLabel: { color: axisLabelColor, fontSize: 10, interval: 2 }, axisLine: { lineStyle: { color: axisLineColor } } },
|
|
|
394
|
+ yAxis: { type: 'value', axisLabel: { color: axisLabelColor, fontSize: 11 }, splitLine: { lineStyle: { color: splitLineColor } } },
|
|
|
395
|
+ series: [{ type: 'bar', data, barWidth: '60%', itemStyle: { color: '#3b82f6', borderRadius: [3, 3, 0, 0] } }],
|
|
|
396
|
+ tooltip: { trigger: 'axis', backgroundColor: tooltipBg, borderColor: tooltipBorder, textStyle: { color: tooltipText } }
|
|
|
397
|
+ }
|
|
|
398
|
+})
|
|
|
399
|
+
|
|
|
400
|
+// ─── 挂载图表 ─────────────────────────────────────
|
|
|
401
|
+useECharts(supervisionLineRef, supervisionLineOpt)
|
|
|
402
|
+useECharts(problemTypeRef, problemTypeOpt)
|
|
|
403
|
+useECharts(teamSupervisionRef, teamSupervisionOpt)
|
|
|
404
|
+useECharts(areaPieRef, areaPieOpt)
|
|
|
405
|
+useECharts(teamRealtimeRef, teamRealtimeOpt)
|
|
|
406
|
+useECharts(realtimeLineRef, realtimeLineOpt)
|
|
|
407
|
+useECharts(yearRingRef, yearRingOpt)
|
|
|
408
|
+useECharts(difficultyRef, difficultyOpt)
|
|
|
409
|
+useECharts(interceptItemsRef, interceptItemsOpt)
|
|
|
410
|
+useECharts(servicePatrolRef, servicePatrolOpt)
|
|
|
411
|
+useECharts(complaintTeamRef, complaintTeamOpt)
|
|
|
412
|
+useECharts(unsafeCompareRef, unsafeCompareOpt)
|
|
|
413
|
+useECharts(subhealthPieRef, subhealthPieOpt)
|
|
|
414
|
+useECharts(healthRatioRef, healthRatioOpt)
|
|
|
415
|
+useECharts(ageDistRef, ageDistOpt)
|
|
|
416
|
+
|
|
|
417
|
+// ─── 排行榜数据 ──────────────────────────────────
|
|
|
418
|
+const superVisionTop3 = [
|
|
|
419
|
+ { name: '徐皓迪', num: 7, color: '#3b82f6' },
|
|
|
420
|
+ { name: '张悦', num: 7, color: '#22c55e' },
|
|
|
421
|
+ { name: '匡林', num: 5, color: '#f59e0b' }
|
|
|
422
|
+]
|
|
|
423
|
+const superVisionList = [
|
|
|
424
|
+ { name: '周雨浓', num: 4 }, { name: '蒲越', num: 5 }, { name: '傅建', num: 6 },
|
|
|
425
|
+ { name: '李明', num: 4 }, { name: '王芳', num: 3 }, { name: '赵强', num: 4 },
|
|
|
426
|
+ { name: '刘洋', num: 3 }, { name: '陈静', num: 5 }, { name: '杨磊', num: 4 }, { name: '吴倩', num: 3 }
|
|
|
427
|
+]
|
|
|
428
|
+const vulnTop3 = [
|
|
|
429
|
+ { name: '安俊', num: 11, color: '#ec4899' },
|
|
|
430
|
+ { name: '黄鑫', num: 11, color: '#a78bfa' },
|
|
|
431
|
+ { name: '廖艺森', num: 9, color: '#f97316' }
|
|
|
432
|
+]
|
|
|
433
|
+const vulnList = [
|
|
|
434
|
+ { name: '李敏', num: 4 }, { name: '林', num: 8 }, { name: '宇', num: 8 },
|
|
|
435
|
+ { name: '张华', num: 6 }, { name: '王丽', num: 5 }, { name: '赵明', num: 7 },
|
|
|
436
|
+ { name: '陈红', num: 4 }, { name: '刘伟', num: 6 }, { name: '杨婷', num: 5 }, { name: '吴刚', num: 4 }
|
|
|
437
|
+]
|
|
|
438
|
+const bonusTop3 = [
|
|
|
439
|
+ { name: '文渊', num: 24.5, color: '#3b82f6' },
|
|
|
440
|
+ { name: '杨晨汐', num: 34.5, color: '#22c55e' },
|
|
|
441
|
+ { name: '何欧怡', num: 16, color: '#f59e0b' }
|
|
|
442
|
+]
|
|
|
443
|
+const bonusList = [
|
|
|
444
|
+ { name: '杨林', num: 4 }, { name: '马灿', num: 5 }, { name: '蒋灿', num: 6 },
|
|
|
445
|
+ { name: '谢涛', num: 3.5 }, { name: '韩雪', num: 4.5 }, { name: '唐亮', num: 5.5 },
|
|
|
446
|
+ { name: '曹琳', num: 3 }, { name: '邓超', num: 4 }, { name: '彭波', num: 6.5 }, { name: '冯娟', num: 3.5 }
|
|
|
447
|
+]
|
|
|
448
|
+const seizureTop3 = [
|
|
|
449
|
+ { name: '苗苗', num: 113, color: '#ec4899' },
|
|
|
450
|
+ { name: '黄真', num: 90, color: '#a78bfa' },
|
|
|
451
|
+ { name: '王磊', num: 78, color: '#f97316' }
|
|
|
452
|
+]
|
|
|
453
|
+const seizureList = [
|
|
|
454
|
+ { name: '李兆厚', num: 4 }, { name: '黄元宏', num: 5 }, { name: '何跃智', num: 6 },
|
|
|
455
|
+ { name: '周文', num: 7 }, { name: '吴斌', num: 5 }, { name: '郑丽', num: 8 },
|
|
|
456
|
+ { name: '孙强', num: 4 }, { name: '朱敏', num: 6 }, { name: '沈涛', num: 5 }, { name: '贺军', num: 7 }
|
|
|
457
|
+]
|
|
|
458
|
+
|
|
|
459
|
+// ─── 挂载顶部迷你折线图 ──────────────────────────
|
|
|
460
|
+onMounted(() => {
|
|
|
461
|
+ metricCards.value.forEach(m => {
|
|
|
462
|
+ if (m._sparkRef) {
|
|
|
463
|
+ const chart = echarts.init(m._sparkRef)
|
|
|
464
|
+ chart.setOption({
|
|
|
465
|
+ grid: { top: 0, bottom: 0, left: 0, right: 0 },
|
|
|
466
|
+ xAxis: { show: false, type: 'category', data: ['', '', '', '', '', '', '', '', '', ''] },
|
|
|
467
|
+ yAxis: { show: false },
|
|
|
468
|
+ series: [{ type: 'line', data: [3, 5, 2, 8, 4, 7, 3, 6, 4, 5], smooth: true, lineStyle: { color: m.sparkColor, width: 2 }, areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: m.sparkColor + '33' }, { offset: 1, color: m.sparkColor + '00' }] } }, symbol: 'none' }]
|
|
|
469
|
+ })
|
|
|
470
|
+ }
|
|
|
471
|
+ })
|
|
|
472
|
+})
|
|
|
473
|
+</script>
|
|
|
474
|
+
|
|
|
475
|
+<style lang="scss" scoped>
|
|
|
476
|
+.org-profile {
|
|
|
477
|
+ padding: 15px;
|
|
|
478
|
+ box-sizing: border-box;
|
|
|
479
|
+ min-height: calc(100vh - 90px);
|
|
|
480
|
+
|
|
|
481
|
+ // ─ 顶部指标卡片 ──
|
|
|
482
|
+ .metric-row {
|
|
|
483
|
+ display: flex;
|
|
|
484
|
+ gap: 12px;
|
|
|
485
|
+ margin-bottom: 15px;
|
|
|
486
|
+
|
|
|
487
|
+ .metric-card {
|
|
|
488
|
+ display: flex;
|
|
|
489
|
+ flex-direction: column;
|
|
|
490
|
+ justify-content: space-between;
|
|
|
491
|
+ flex: 1;
|
|
|
492
|
+ border-radius: 12px;
|
|
|
493
|
+ padding: 12px 16px;
|
|
|
494
|
+ min-height: 100px;
|
|
|
495
|
+
|
|
|
496
|
+ .metric-title {
|
|
|
497
|
+ font-size: 13px;
|
|
|
498
|
+ color: #475569;
|
|
|
499
|
+ font-weight: 500;
|
|
|
500
|
+ margin-bottom: 4px;
|
|
|
501
|
+ }
|
|
|
502
|
+
|
|
|
503
|
+ .metric-value {
|
|
|
504
|
+ font-size: 36px;
|
|
|
505
|
+ font-weight: bold;
|
|
|
506
|
+ line-height: 1.2;
|
|
|
507
|
+ }
|
|
|
508
|
+
|
|
|
509
|
+ .metric-change-row {
|
|
|
510
|
+ display: flex;
|
|
|
511
|
+ align-items: flex-end;
|
|
|
512
|
+ justify-content: space-between;
|
|
|
513
|
+ margin-top: auto;
|
|
|
514
|
+
|
|
|
515
|
+ .metric-change-info {
|
|
|
516
|
+ display: flex;
|
|
|
517
|
+ flex-direction: column;
|
|
|
518
|
+ gap: 2px;
|
|
|
519
|
+
|
|
|
520
|
+ .metric-change-label {
|
|
|
521
|
+ font-size: 12px;
|
|
|
522
|
+ color: #64748b;
|
|
|
523
|
+ }
|
|
|
524
|
+
|
|
|
525
|
+ .metric-change {
|
|
|
526
|
+ font-size: 13px;
|
|
|
527
|
+ display: inline-flex;
|
|
|
528
|
+ align-items: center;
|
|
|
529
|
+ gap: 4px;
|
|
|
530
|
+ font-weight: 500;
|
|
|
531
|
+
|
|
|
532
|
+ &::before {
|
|
|
533
|
+ content: '';
|
|
|
534
|
+ display: inline-block;
|
|
|
535
|
+ width: 0;
|
|
|
536
|
+ height: 0;
|
|
|
537
|
+ vertical-align: middle;
|
|
|
538
|
+ }
|
|
|
539
|
+
|
|
|
540
|
+ &.change-down::before {
|
|
|
541
|
+ border-left: 5px solid transparent;
|
|
|
542
|
+ border-right: 5px solid transparent;
|
|
|
543
|
+ border-top: 7px solid currentColor;
|
|
|
544
|
+ }
|
|
|
545
|
+
|
|
|
546
|
+ &.change-up::before {
|
|
|
547
|
+ border-left: 5px solid transparent;
|
|
|
548
|
+ border-right: 5px solid transparent;
|
|
|
549
|
+ border-bottom: 7px solid currentColor;
|
|
|
550
|
+ }
|
|
|
551
|
+
|
|
|
552
|
+ &.change-flat::before {
|
|
|
553
|
+ width: 10px;
|
|
|
554
|
+ height: 0;
|
|
|
555
|
+ border-top: 3px solid currentColor;
|
|
|
556
|
+ border-radius: 1px;
|
|
|
557
|
+ }
|
|
|
558
|
+ }
|
|
|
559
|
+ }
|
|
|
560
|
+
|
|
|
561
|
+ .metric-chart {
|
|
|
562
|
+ height: 30px;
|
|
|
563
|
+ width: 80px;
|
|
|
564
|
+ }
|
|
|
565
|
+ }
|
|
|
566
|
+ }
|
|
|
567
|
+
|
|
|
568
|
+ .metric-side-cards {
|
|
|
569
|
+ display: flex;
|
|
|
570
|
+ flex-direction: column;
|
|
|
571
|
+ gap: 8px;
|
|
|
572
|
+ width: 200px;
|
|
|
573
|
+ flex-shrink: 0;
|
|
|
574
|
+
|
|
|
575
|
+ .metric-card {
|
|
|
576
|
+ flex: 1;
|
|
|
577
|
+ min-height: 50px;
|
|
|
578
|
+ justify-content: center;
|
|
|
579
|
+
|
|
|
580
|
+ .metric-title {
|
|
|
581
|
+ font-size: 12px;
|
|
|
582
|
+ color: #fff;
|
|
|
583
|
+ margin-bottom: 2px;
|
|
|
584
|
+ }
|
|
|
585
|
+
|
|
|
586
|
+ .metric-value {
|
|
|
587
|
+ font-size: 24px;
|
|
|
588
|
+ }
|
|
|
589
|
+ }
|
|
|
590
|
+ }
|
|
|
591
|
+
|
|
|
592
|
+ .metric-warning-top {
|
|
|
593
|
+ background: linear-gradient(135deg, #f59e0b, #d97706) !important;
|
|
|
594
|
+ }
|
|
|
595
|
+
|
|
|
596
|
+ .metric-warning-bottom {
|
|
|
597
|
+ background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
|
|
|
598
|
+ }
|
|
|
599
|
+ }
|
|
|
600
|
+
|
|
|
601
|
+ // ── 图表区域 ──
|
|
|
602
|
+ .charts-row {
|
|
|
603
|
+ display: flex;
|
|
|
604
|
+ gap: 15px;
|
|
|
605
|
+
|
|
|
606
|
+ .charts-col-main {
|
|
|
607
|
+ flex: 1;
|
|
|
608
|
+ display: flex;
|
|
|
609
|
+ flex-direction: column;
|
|
|
610
|
+ gap: 12px;
|
|
|
611
|
+ min-width: 0;
|
|
|
612
|
+ }
|
|
|
613
|
+
|
|
|
614
|
+ .charts-grid {
|
|
|
615
|
+ display: grid;
|
|
|
616
|
+ gap: 12px;
|
|
|
617
|
+
|
|
|
618
|
+ &.charts-grid-2 {
|
|
|
619
|
+ grid-template-columns: 1fr 1fr;
|
|
|
620
|
+ }
|
|
|
621
|
+
|
|
|
622
|
+ &.charts-grid-1 {
|
|
|
623
|
+ grid-template-columns: 1fr;
|
|
|
624
|
+ }
|
|
|
625
|
+ }
|
|
|
626
|
+
|
|
|
627
|
+ .chart-box {
|
|
|
628
|
+ width: 100%;
|
|
|
629
|
+ height: 220px;
|
|
|
630
|
+ }
|
|
|
631
|
+
|
|
|
632
|
+ .chart-box-wide {
|
|
|
633
|
+ width: 100%;
|
|
|
634
|
+ height: 260px;
|
|
|
635
|
+ }
|
|
|
636
|
+
|
|
|
637
|
+ .charts-col-side {
|
|
|
638
|
+ width: 320px;
|
|
|
639
|
+ flex-shrink: 0;
|
|
|
640
|
+ display: flex;
|
|
|
641
|
+ flex-direction: column;
|
|
|
642
|
+ gap: 12px;
|
|
|
643
|
+ }
|
|
|
644
|
+ }
|
|
|
645
|
+
|
|
|
646
|
+ // ── 排行榜 ──
|
|
|
647
|
+ .rank-list {
|
|
|
648
|
+ .rank-avatar-row {
|
|
|
649
|
+ display: flex;
|
|
|
650
|
+ justify-content: center;
|
|
|
651
|
+ gap: 20px;
|
|
|
652
|
+ margin-bottom: 12px;
|
|
|
653
|
+
|
|
|
654
|
+ .rank-avatar-item {
|
|
|
655
|
+ display: flex;
|
|
|
656
|
+ flex-direction: column;
|
|
|
657
|
+ align-items: center;
|
|
|
658
|
+ gap: 6px;
|
|
|
659
|
+
|
|
|
660
|
+ .rank-avatar {
|
|
|
661
|
+ width: 44px;
|
|
|
662
|
+ height: 44px;
|
|
|
663
|
+ border-radius: 50%;
|
|
|
664
|
+ display: flex;
|
|
|
665
|
+ align-items: center;
|
|
|
666
|
+ justify-content: center;
|
|
|
667
|
+ color: #fff;
|
|
|
668
|
+ font-size: 16px;
|
|
|
669
|
+ font-weight: bold;
|
|
|
670
|
+ }
|
|
|
671
|
+
|
|
|
672
|
+ .rank-name {
|
|
|
673
|
+ font-size: 12px;
|
|
|
674
|
+ color: #475569;
|
|
|
675
|
+ }
|
|
|
676
|
+
|
|
|
677
|
+ .rank-num {
|
|
|
678
|
+ font-size: 18px;
|
|
|
679
|
+ color: '#1e293b';
|
|
|
680
|
+ font-weight: bold;
|
|
|
681
|
+ }
|
|
|
682
|
+ }
|
|
|
683
|
+ }
|
|
|
684
|
+
|
|
|
685
|
+ .rank-table {
|
|
|
686
|
+ .rank-tr {
|
|
|
687
|
+ display: flex;
|
|
|
688
|
+ padding: 5px 0;
|
|
|
689
|
+ font-size: 12px;
|
|
|
690
|
+ color: #64748b;
|
|
|
691
|
+ border-bottom: 1px solid #e2e8f0;
|
|
|
692
|
+
|
|
|
693
|
+ span {
|
|
|
694
|
+ flex: 1;
|
|
|
695
|
+ text-align: center;
|
|
|
696
|
+ }
|
|
|
697
|
+ }
|
|
|
698
|
+
|
|
|
699
|
+ .rank-th {
|
|
|
700
|
+ color: '#1e293b';
|
|
|
701
|
+ font-weight: bold;
|
|
|
702
|
+ border-bottom: 2px solid #cbd5e1;
|
|
|
703
|
+ }
|
|
|
704
|
+ }
|
|
|
705
|
+ }
|
|
|
706
|
+}
|
|
|
707
|
+</style>
|