|
|
@@ -4,35 +4,41 @@
|
|
4
|
4
|
<InfoCard title="当天开航每小时各区过检人数组合图">
|
|
5
|
5
|
<div ref="hourlyPassChartRef" class="hourly-pass-chart"></div>
|
|
6
|
6
|
</InfoCard>
|
|
7
|
|
- </div>
|
|
|
7
|
+ <div class="info-panel">
|
|
|
8
|
+
|
|
|
9
|
+ <div class="panel-body">
|
|
|
10
|
+ <div class="datetime-row">
|
|
|
11
|
+ <span class="info-date">{{ currentDate }}</span>
|
|
8
|
12
|
|
|
9
|
|
- <div class="content-row">
|
|
10
|
|
- <InfoCard title="每日各时段查获物品趋势图">
|
|
11
|
|
- <div ref="dailyTrendChartRef" class="daily-trend-chart"></div>
|
|
12
|
|
- </InfoCard>
|
|
13
|
|
- <InfoCard title="各区每日查获物品数量对比">
|
|
14
|
|
- <div ref="areaCompareChartRef" class="area-compare-chart"></div>
|
|
15
|
|
- </InfoCard>
|
|
16
|
|
- </div>
|
|
|
13
|
+ </div>
|
|
|
14
|
+ <div class="date-row">
|
|
|
15
|
+ <span class="info-weekday">{{ currentWeekday }}</span>
|
|
|
16
|
+ <span class="time-row">{{ currentTime }}</span>
|
|
|
17
|
+ </div>
|
|
17
|
18
|
|
|
18
|
|
- <div class="content-row">
|
|
19
|
|
- <InfoCard title="各区当日查获物品分布">
|
|
20
|
|
- <div class="area-distribution">
|
|
21
|
|
- <div class="dist-item" v-for="(item, index) in areaDistData" :key="index">
|
|
22
|
|
- <div :ref="el => areaDistChartRefs[index] = el" class="dist-chart"></div>
|
|
23
|
|
- <div class="dist-label">{{ item.name }}</div>
|
|
|
19
|
+
|
|
|
20
|
+ <div class="duty-item">
|
|
|
21
|
+ <span class="duty-label">值班领导:</span>
|
|
|
22
|
+ <span class="duty-value">{{ dutyLeader }}</span>
|
|
|
23
|
+ </div>
|
|
|
24
|
+ <div class="duty-item">
|
|
|
25
|
+ <span class="duty-label">安全板块:</span>
|
|
|
26
|
+ <span class="duty-value">{{ safetySection }}</span>
|
|
|
27
|
+ </div>
|
|
|
28
|
+ <div class="duty-item">
|
|
|
29
|
+ <span class="duty-label">服务板块:</span>
|
|
|
30
|
+ <span class="duty-value">{{ serviceSection }}</span>
|
|
|
31
|
+ </div>
|
|
|
32
|
+ <div class="duty-item">
|
|
|
33
|
+ <span class="duty-label">运行板块:</span>
|
|
|
34
|
+ <span class="duty-value">{{ operationSection }}</span>
|
|
|
35
|
+ </div>
|
|
|
36
|
+ <div class="duty-item">
|
|
|
37
|
+ <span class="duty-label">备勤值班:</span>
|
|
|
38
|
+ <span class="duty-value">{{ standbyDuty }}</span>
|
|
24
|
39
|
</div>
|
|
25
|
40
|
</div>
|
|
26
|
|
- </InfoCard>
|
|
27
|
|
- </div>
|
|
28
|
|
-
|
|
29
|
|
- <div class="content-row">
|
|
30
|
|
- <InfoCard title="近一周各区查获总数趋势">
|
|
31
|
|
- <div ref="weeklyTrendChartRef" class="weekly-trend-chart"></div>
|
|
32
|
|
- </InfoCard>
|
|
33
|
|
- <InfoCard title="当月各类型物品查获对比">
|
|
34
|
|
- <div ref="monthlyTypeChartRef" class="monthly-type-chart"></div>
|
|
35
|
|
- </InfoCard>
|
|
|
41
|
+ </div>
|
|
36
|
42
|
</div>
|
|
37
|
43
|
|
|
38
|
44
|
<div class="content-row">
|
|
|
@@ -65,11 +71,7 @@
|
|
65
|
71
|
</InfoCard>
|
|
66
|
72
|
</div>
|
|
67
|
73
|
|
|
68
|
|
- <div class="content-row">
|
|
69
|
|
- <InfoCard title="每日查获数量(总表)">
|
|
70
|
|
- <div ref="dailySeizedBarRef" class="daily-bar-chart"></div>
|
|
71
|
|
- </InfoCard>
|
|
72
|
|
- </div>
|
|
|
74
|
+
|
|
73
|
75
|
|
|
74
|
76
|
<div class="content-row">
|
|
75
|
77
|
<InfoCard title="查获工作区域分布">
|
|
|
@@ -112,30 +114,50 @@ const props = defineProps({
|
|
112
|
114
|
queryParams: {
|
|
113
|
115
|
type: Object,
|
|
114
|
116
|
default: () => ({})
|
|
|
117
|
+ },
|
|
|
118
|
+ dutyLeader: {
|
|
|
119
|
+ type: String,
|
|
|
120
|
+ default: '张某某'
|
|
|
121
|
+ },
|
|
|
122
|
+ safetySection: {
|
|
|
123
|
+ type: String,
|
|
|
124
|
+ default: '李某某'
|
|
|
125
|
+ },
|
|
|
126
|
+ serviceSection: {
|
|
|
127
|
+ type: String,
|
|
|
128
|
+ default: '王某某'
|
|
|
129
|
+ },
|
|
|
130
|
+ operationSection: {
|
|
|
131
|
+ type: String,
|
|
|
132
|
+ default: '赵某某'
|
|
|
133
|
+ },
|
|
|
134
|
+ standbyDuty: {
|
|
|
135
|
+ type: String,
|
|
|
136
|
+ default: '刘某某'
|
|
115
|
137
|
}
|
|
116
|
138
|
})
|
|
117
|
139
|
|
|
118
|
|
-const areaDistData = ref([
|
|
119
|
|
- { name: 'T3国内出发(4层)' },
|
|
120
|
|
- { name: 'T3(8层出发)' },
|
|
121
|
|
- { name: 'T3国际出发' },
|
|
122
|
|
- { name: 'T3国际转国内' },
|
|
123
|
|
- { name: '旅检A区' }
|
|
124
|
|
-])
|
|
125
|
|
-
|
|
126
|
|
-const areaDistChartRefs = ref([])
|
|
127
|
|
-const areaDistCharts = ref([])
|
|
|
140
|
+const currentDate = ref('')
|
|
|
141
|
+const currentWeekday = ref('')
|
|
|
142
|
+const currentTime = ref('')
|
|
|
143
|
+const weekdays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
|
|
|
144
|
+let dateTimer = null
|
|
|
145
|
+
|
|
|
146
|
+const updateDateTime = () => {
|
|
|
147
|
+ const now = new Date()
|
|
|
148
|
+ const year = now.getFullYear()
|
|
|
149
|
+ const month = String(now.getMonth() + 1).padStart(2, '0')
|
|
|
150
|
+ const day = String(now.getDate()).padStart(2, '0')
|
|
|
151
|
+ currentDate.value = `${year}年${month}月${day}日`
|
|
|
152
|
+ currentWeekday.value = weekdays[now.getDay()]
|
|
|
153
|
+ const hours = String(now.getHours()).padStart(2, '0')
|
|
|
154
|
+ const minutes = String(now.getMinutes()).padStart(2, '0')
|
|
|
155
|
+ const seconds = String(now.getSeconds()).padStart(2, '0')
|
|
|
156
|
+ currentTime.value = `${hours}:${minutes}:${seconds}`
|
|
|
157
|
+}
|
|
128
|
158
|
|
|
129
|
159
|
const hourlyPassChartRef = ref(null)
|
|
130
|
160
|
let hourlyPassChart = null
|
|
131
|
|
-const dailyTrendChartRef = ref(null)
|
|
132
|
|
-let dailyTrendChart = null
|
|
133
|
|
-const areaCompareChartRef = ref(null)
|
|
134
|
|
-let areaCompareChart = null
|
|
135
|
|
-const weeklyTrendChartRef = ref(null)
|
|
136
|
|
-let weeklyTrendChart = null
|
|
137
|
|
-const monthlyTypeChartRef = ref(null)
|
|
138
|
|
-let monthlyTypeChart = null
|
|
139
|
161
|
const seizedSmallChartRef = ref(null)
|
|
140
|
162
|
let seizedSmallChart = null
|
|
141
|
163
|
const seizedChartRef = ref(null)
|
|
|
@@ -144,8 +166,7 @@ const dailySeizedLineRef = ref(null)
|
|
144
|
166
|
let dailySeizedLine = null
|
|
145
|
167
|
const dailySeizedAreaRef = ref(null)
|
|
146
|
168
|
let dailySeizedArea = null
|
|
147
|
|
-const dailySeizedBarRef = ref(null)
|
|
148
|
|
-let dailySeizedBar = null
|
|
|
169
|
+
|
|
149
|
170
|
const workAreaDistChartRef = ref(null)
|
|
150
|
171
|
let workAreaDistChart = null
|
|
151
|
172
|
const unsafeItemDistChartRef = ref(null)
|
|
|
@@ -164,12 +185,12 @@ let securityTestAreaChart = null
|
|
164
|
185
|
const initHourlyPassChart = () => {
|
|
165
|
186
|
if (!hourlyPassChartRef.value) return
|
|
166
|
187
|
hourlyPassChart = echarts.init(hourlyPassChartRef.value)
|
|
167
|
|
- const hours = Array.from({length: 24}, (_, i) => `${i.toString().padStart(2, '0')}:00`)
|
|
|
188
|
+ const hours = Array.from({ length: 24 }, (_, i) => `${i.toString().padStart(2, '0')}:00`)
|
|
168
|
189
|
const data1 = [450, 420, 380, 390, 410, 430, 460, 480, 520, 560, 600, 620, 650, 680, 700, 680, 650, 620, 580, 540, 500, 480, 450, 420]
|
|
169
|
190
|
const data2 = [320, 310, 290, 300, 310, 330, 350, 370, 400, 430, 460, 480, 500, 520, 530, 510, 490, 470, 440, 410, 380, 360, 340, 320]
|
|
170
|
191
|
const data3 = [250, 240, 220, 230, 240, 260, 280, 300, 330, 360, 390, 410, 430, 450, 460, 440, 420, 400, 370, 340, 310, 290, 270, 250]
|
|
171
|
192
|
const lineData = [5.2, 4.8, 4.5, 4.7, 5.0, 5.3, 5.6, 5.8, 6.2, 6.5, 6.8, 7.0, 7.2, 7.5, 7.3, 7.1, 6.8, 6.5, 6.2, 5.8, 5.5, 5.2, 5.0, 4.8]
|
|
172
|
|
-
|
|
|
193
|
+
|
|
173
|
194
|
const option = {
|
|
174
|
195
|
tooltip: {
|
|
175
|
196
|
trigger: 'axis',
|
|
|
@@ -273,291 +294,6 @@ const initHourlyPassChart = () => {
|
|
273
|
294
|
hourlyPassChart.setOption(option)
|
|
274
|
295
|
}
|
|
275
|
296
|
|
|
276
|
|
-const initDailyTrendChart = () => {
|
|
277
|
|
- if (!dailyTrendChartRef.value) return
|
|
278
|
|
- dailyTrendChart = echarts.init(dailyTrendChartRef.value)
|
|
279
|
|
- const option = {
|
|
280
|
|
- tooltip: {
|
|
281
|
|
- trigger: 'axis',
|
|
282
|
|
- backgroundColor: 'rgba(13,80,122,0.95)',
|
|
283
|
|
- borderColor: '#70CFE7',
|
|
284
|
|
- textStyle: { color: '#fff' }
|
|
285
|
|
- },
|
|
286
|
|
- legend: {
|
|
287
|
|
- data: ['打火机', '管制刀具', '其他违禁品'],
|
|
288
|
|
- textStyle: { color: '#a0c4ff' },
|
|
289
|
|
- top: 0
|
|
290
|
|
- },
|
|
291
|
|
- grid: {
|
|
292
|
|
- left: '3%',
|
|
293
|
|
- right: '4%',
|
|
294
|
|
- bottom: '3%',
|
|
295
|
|
- containLabel: true
|
|
296
|
|
- },
|
|
297
|
|
- xAxis: {
|
|
298
|
|
- type: 'category',
|
|
299
|
|
- data: ['00:00', '04:00', '08:00', '12:00', '16:00', '20:00', '24:00'],
|
|
300
|
|
- axisLabel: { color: '#a0c4ff' },
|
|
301
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } }
|
|
302
|
|
- },
|
|
303
|
|
- yAxis: {
|
|
304
|
|
- type: 'value',
|
|
305
|
|
- axisLabel: { color: '#a0c4ff' },
|
|
306
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } },
|
|
307
|
|
- splitLine: { lineStyle: { color: 'rgba(15,70,250,0.2)' } }
|
|
308
|
|
- },
|
|
309
|
|
- series: [
|
|
310
|
|
- {
|
|
311
|
|
- name: '打火机',
|
|
312
|
|
- type: 'line',
|
|
313
|
|
- smooth: true,
|
|
314
|
|
- data: [12, 8, 25, 45, 50, 35, 20],
|
|
315
|
|
- itemStyle: { color: '#ff9f43' },
|
|
316
|
|
- areaStyle: {
|
|
317
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
318
|
|
- { offset: 0, color: 'rgba(255,159,67,0.3)' },
|
|
319
|
|
- { offset: 1, color: 'rgba(255,159,67,0.05)' }
|
|
320
|
|
- ])
|
|
321
|
|
- }
|
|
322
|
|
- },
|
|
323
|
|
- {
|
|
324
|
|
- name: '管制刀具',
|
|
325
|
|
- type: 'line',
|
|
326
|
|
- smooth: true,
|
|
327
|
|
- data: [5, 3, 15, 25, 28, 18, 10],
|
|
328
|
|
- itemStyle: { color: '#ff6b6b' },
|
|
329
|
|
- areaStyle: {
|
|
330
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
331
|
|
- { offset: 0, color: 'rgba(255,107,107,0.3)' },
|
|
332
|
|
- { offset: 1, color: 'rgba(255,107,107,0.05)' }
|
|
333
|
|
- ])
|
|
334
|
|
- }
|
|
335
|
|
- },
|
|
336
|
|
- {
|
|
337
|
|
- name: '其他违禁品',
|
|
338
|
|
- type: 'line',
|
|
339
|
|
- smooth: true,
|
|
340
|
|
- data: [20, 15, 40, 60, 70, 45, 30],
|
|
341
|
|
- itemStyle: { color: '#4da6ff' },
|
|
342
|
|
- areaStyle: {
|
|
343
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
344
|
|
- { offset: 0, color: 'rgba(77,166,255,0.3)' },
|
|
345
|
|
- { offset: 1, color: 'rgba(77,166,255,0.05)' }
|
|
346
|
|
- ])
|
|
347
|
|
- }
|
|
348
|
|
- }
|
|
349
|
|
- ]
|
|
350
|
|
- }
|
|
351
|
|
- dailyTrendChart.setOption(option)
|
|
352
|
|
-}
|
|
353
|
|
-
|
|
354
|
|
-const initAreaCompareChart = () => {
|
|
355
|
|
- if (!areaCompareChartRef.value) return
|
|
356
|
|
- areaCompareChart = echarts.init(areaCompareChartRef.value)
|
|
357
|
|
- const option = {
|
|
358
|
|
- tooltip: {
|
|
359
|
|
- trigger: 'axis',
|
|
360
|
|
- backgroundColor: 'rgba(13,80,122,0.95)',
|
|
361
|
|
- borderColor: '#70CFE7',
|
|
362
|
|
- textStyle: { color: '#fff' }
|
|
363
|
|
- },
|
|
364
|
|
- legend: {
|
|
365
|
|
- data: ['T3国内出发(4层)', 'T3(8层出发)', 'T3国际出发', 'T3国际转国内', '旅检A区'],
|
|
366
|
|
- textStyle: { color: '#a0c4ff' },
|
|
367
|
|
- top: 0
|
|
368
|
|
- },
|
|
369
|
|
- grid: {
|
|
370
|
|
- left: '3%',
|
|
371
|
|
- right: '4%',
|
|
372
|
|
- bottom: '15%',
|
|
373
|
|
- containLabel: true
|
|
374
|
|
- },
|
|
375
|
|
- xAxis: {
|
|
376
|
|
- type: 'category',
|
|
377
|
|
- data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
|
|
378
|
|
- axisLabel: { color: '#a0c4ff' },
|
|
379
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } }
|
|
380
|
|
- },
|
|
381
|
|
- yAxis: {
|
|
382
|
|
- type: 'value',
|
|
383
|
|
- axisLabel: { color: '#a0c4ff' },
|
|
384
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } },
|
|
385
|
|
- splitLine: { lineStyle: { color: 'rgba(15,70,250,0.2)' } }
|
|
386
|
|
- },
|
|
387
|
|
- series: [
|
|
388
|
|
- {
|
|
389
|
|
- name: 'T3国内出发(4层)',
|
|
390
|
|
- type: 'bar',
|
|
391
|
|
- data: [120, 132, 140, 125, 150, 160, 145],
|
|
392
|
|
- itemStyle: { color: '#4da6ff' },
|
|
393
|
|
- barWidth: '15%'
|
|
394
|
|
- },
|
|
395
|
|
- {
|
|
396
|
|
- name: 'T3(8层出发)',
|
|
397
|
|
- type: 'bar',
|
|
398
|
|
- data: [90, 100, 110, 95, 120, 130, 115],
|
|
399
|
|
- itemStyle: { color: '#7eff7e' },
|
|
400
|
|
- barWidth: '15%'
|
|
401
|
|
- },
|
|
402
|
|
- {
|
|
403
|
|
- name: 'T3国际出发',
|
|
404
|
|
- type: 'bar',
|
|
405
|
|
- data: [70, 80, 85, 75, 90, 100, 88],
|
|
406
|
|
- itemStyle: { color: '#bd03fb' },
|
|
407
|
|
- barWidth: '15%'
|
|
408
|
|
- },
|
|
409
|
|
- {
|
|
410
|
|
- name: 'T3国际转国内',
|
|
411
|
|
- type: 'bar',
|
|
412
|
|
- data: [45, 55, 60, 50, 65, 70, 62],
|
|
413
|
|
- itemStyle: { color: '#ff9f43' },
|
|
414
|
|
- barWidth: '15%'
|
|
415
|
|
- },
|
|
416
|
|
- {
|
|
417
|
|
- name: '旅检A区',
|
|
418
|
|
- type: 'bar',
|
|
419
|
|
- data: [55, 65, 70, 60, 75, 80, 72],
|
|
420
|
|
- itemStyle: { color: '#ffd93d' },
|
|
421
|
|
- barWidth: '15%'
|
|
422
|
|
- }
|
|
423
|
|
- ]
|
|
424
|
|
- }
|
|
425
|
|
- areaCompareChart.setOption(option)
|
|
426
|
|
-}
|
|
427
|
|
-
|
|
428
|
|
-const initAreaDistCharts = () => {
|
|
429
|
|
- const colors = [
|
|
430
|
|
- ['#4da6ff', '#0f46fa'],
|
|
431
|
|
- ['#7eff7e', '#2ecc71'],
|
|
432
|
|
- ['#bd03fb', '#8a06e8'],
|
|
433
|
|
- ['#ff9f43', '#ee5a24'],
|
|
434
|
|
- ['#ffd93d', '#ff9f43']
|
|
435
|
|
- ]
|
|
436
|
|
- areaDistData.value.forEach((item, index) => {
|
|
437
|
|
- if (!areaDistChartRefs.value[index]) return
|
|
438
|
|
- const chart = echarts.init(areaDistChartRefs.value[index])
|
|
439
|
|
- areaDistCharts.value.push(chart)
|
|
440
|
|
- const option = {
|
|
441
|
|
- series: [{
|
|
442
|
|
- type: 'pie',
|
|
443
|
|
- radius: ['40%', '70%'],
|
|
444
|
|
- data: [
|
|
445
|
|
- { value: 40, name: '打火机', itemStyle: { color: colors[index][0] } },
|
|
446
|
|
- { value: 30, name: '管制刀具', itemStyle: { color: colors[index][1] } },
|
|
447
|
|
- { value: 30, name: '其他违禁品', itemStyle: { color: '#a0c4ff' } }
|
|
448
|
|
- ],
|
|
449
|
|
- label: { show: true, color: '#fff', fontSize: 10 },
|
|
450
|
|
- labelLine: { show: true }
|
|
451
|
|
- }]
|
|
452
|
|
- }
|
|
453
|
|
- chart.setOption(option)
|
|
454
|
|
- })
|
|
455
|
|
-}
|
|
456
|
|
-
|
|
457
|
|
-const initWeeklyTrendChart = () => {
|
|
458
|
|
- if (!weeklyTrendChartRef.value) return
|
|
459
|
|
- weeklyTrendChart = echarts.init(weeklyTrendChartRef.value)
|
|
460
|
|
- const option = {
|
|
461
|
|
- tooltip: {
|
|
462
|
|
- trigger: 'axis',
|
|
463
|
|
- backgroundColor: 'rgba(13,80,122,0.95)',
|
|
464
|
|
- borderColor: '#70CFE7',
|
|
465
|
|
- textStyle: { color: '#fff' }
|
|
466
|
|
- },
|
|
467
|
|
- legend: {
|
|
468
|
|
- data: ['T3国内出发(4层)', 'T3(8层出发)', 'T3国际出发'],
|
|
469
|
|
- textStyle: { color: '#a0c4ff' },
|
|
470
|
|
- top: 0
|
|
471
|
|
- },
|
|
472
|
|
- grid: {
|
|
473
|
|
- left: '3%',
|
|
474
|
|
- right: '4%',
|
|
475
|
|
- bottom: '15%',
|
|
476
|
|
- containLabel: true
|
|
477
|
|
- },
|
|
478
|
|
- xAxis: {
|
|
479
|
|
- type: 'category',
|
|
480
|
|
- data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
|
|
481
|
|
- axisLabel: { color: '#a0c4ff' },
|
|
482
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } }
|
|
483
|
|
- },
|
|
484
|
|
- yAxis: {
|
|
485
|
|
- type: 'value',
|
|
486
|
|
- axisLabel: { color: '#a0c4ff' },
|
|
487
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } },
|
|
488
|
|
- splitLine: { lineStyle: { color: 'rgba(15,70,250,0.2)' } }
|
|
489
|
|
- },
|
|
490
|
|
- series: [
|
|
491
|
|
- {
|
|
492
|
|
- name: 'T3国内出发(4层)',
|
|
493
|
|
- type: 'line',
|
|
494
|
|
- smooth: true,
|
|
495
|
|
- data: [450, 480, 500, 420, 520, 580, 550],
|
|
496
|
|
- itemStyle: { color: '#4da6ff' },
|
|
497
|
|
- areaStyle: {
|
|
498
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
499
|
|
- { offset: 0, color: 'rgba(77,166,255,0.3)' },
|
|
500
|
|
- { offset: 1, color: 'rgba(77,166,255,0.05)' }
|
|
501
|
|
- ])
|
|
502
|
|
- }
|
|
503
|
|
- },
|
|
504
|
|
- {
|
|
505
|
|
- name: 'T3(8层出发)',
|
|
506
|
|
- type: 'line',
|
|
507
|
|
- smooth: true,
|
|
508
|
|
- data: [350, 380, 400, 320, 420, 480, 450],
|
|
509
|
|
- itemStyle: { color: '#7eff7e' },
|
|
510
|
|
- areaStyle: {
|
|
511
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
512
|
|
- { offset: 0, color: 'rgba(126,255,126,0.3)' },
|
|
513
|
|
- { offset: 1, color: 'rgba(126,255,126,0.05)' }
|
|
514
|
|
- ])
|
|
515
|
|
- }
|
|
516
|
|
- },
|
|
517
|
|
- {
|
|
518
|
|
- name: 'T3国际出发',
|
|
519
|
|
- type: 'line',
|
|
520
|
|
- smooth: true,
|
|
521
|
|
- data: [280, 300, 320, 260, 340, 380, 360],
|
|
522
|
|
- itemStyle: { color: '#bd03fb' },
|
|
523
|
|
- areaStyle: {
|
|
524
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
525
|
|
- { offset: 0, color: 'rgba(189,3,251,0.3)' },
|
|
526
|
|
- { offset: 1, color: 'rgba(189,3,251,0.05)' }
|
|
527
|
|
- ])
|
|
528
|
|
- }
|
|
529
|
|
- }
|
|
530
|
|
- ]
|
|
531
|
|
- }
|
|
532
|
|
- weeklyTrendChart.setOption(option)
|
|
533
|
|
-}
|
|
534
|
|
-
|
|
535
|
|
-const initMonthlyTypeChart = () => {
|
|
536
|
|
- if (!monthlyTypeChartRef.value) return
|
|
537
|
|
- monthlyTypeChart = echarts.init(monthlyTypeChartRef.value)
|
|
538
|
|
- const option = {
|
|
539
|
|
- tooltip: {
|
|
540
|
|
- trigger: 'item',
|
|
541
|
|
- backgroundColor: 'rgba(13,80,122,0.95)',
|
|
542
|
|
- borderColor: '#70CFE7',
|
|
543
|
|
- textStyle: { color: '#fff' }
|
|
544
|
|
- },
|
|
545
|
|
- series: [{
|
|
546
|
|
- type: 'pie',
|
|
547
|
|
- radius: ['40%', '70%'],
|
|
548
|
|
- data: [
|
|
549
|
|
- { value: 35, name: '打火机', itemStyle: { color: '#ff9f43' } },
|
|
550
|
|
- { value: 25, name: '管制刀具', itemStyle: { color: '#ff6b6b' } },
|
|
551
|
|
- { value: 20, name: '易燃易爆', itemStyle: { color: '#ffd93d' } },
|
|
552
|
|
- { value: 20, name: '其他', itemStyle: { color: '#a0c4ff' } }
|
|
553
|
|
- ],
|
|
554
|
|
- label: { show: true, color: '#fff', fontSize: 11 },
|
|
555
|
|
- labelLine: { show: true }
|
|
556
|
|
- }]
|
|
557
|
|
- }
|
|
558
|
|
- monthlyTypeChart.setOption(option)
|
|
559
|
|
-}
|
|
560
|
|
-
|
|
561
|
297
|
const initSeizedSmallChart = () => {
|
|
562
|
298
|
if (!seizedSmallChartRef.value) return
|
|
563
|
299
|
seizedSmallChart = echarts.init(seizedSmallChartRef.value)
|
|
|
@@ -741,58 +477,7 @@ const initDailySeizedArea = () => {
|
|
741
|
477
|
dailySeizedArea.setOption(option)
|
|
742
|
478
|
}
|
|
743
|
479
|
|
|
744
|
|
-const initDailySeizedBar = () => {
|
|
745
|
|
- if (!dailySeizedBarRef.value) return
|
|
746
|
|
- dailySeizedBar = echarts.init(dailySeizedBarRef.value)
|
|
747
|
|
- const option = {
|
|
748
|
|
- tooltip: {
|
|
749
|
|
- trigger: 'axis',
|
|
750
|
|
- backgroundColor: 'rgba(13,80,122,0.95)',
|
|
751
|
|
- borderColor: '#70CFE7',
|
|
752
|
|
- textStyle: { color: '#fff' }
|
|
753
|
|
- },
|
|
754
|
|
- legend: {
|
|
755
|
|
- data: ['查获数量'],
|
|
756
|
|
- textStyle: { color: '#a0c4ff' },
|
|
757
|
|
- top: 0
|
|
758
|
|
- },
|
|
759
|
|
- grid: {
|
|
760
|
|
- left: '3%',
|
|
761
|
|
- right: '4%',
|
|
762
|
|
- bottom: '15%',
|
|
763
|
|
- containLabel: true
|
|
764
|
|
- },
|
|
765
|
|
- xAxis: {
|
|
766
|
|
- type: 'category',
|
|
767
|
|
- data: ['T3国内出发(4层)', 'T3(8层出发)', 'T3国际出发', 'T3国际转国内', '旅检A区', 'T3要客服务区东', 'T3要客服务区西', 'T1要客服务区东', 'T2要客服务区东', '旅检B区', '重检C区'],
|
|
768
|
|
- axisLabel: {
|
|
769
|
|
- color: '#a0c4ff',
|
|
770
|
|
- rotate: 30,
|
|
771
|
|
- fontSize: 10
|
|
772
|
|
- },
|
|
773
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } }
|
|
774
|
|
- },
|
|
775
|
|
- yAxis: {
|
|
776
|
|
- type: 'value',
|
|
777
|
|
- axisLabel: { color: '#a0c4ff' },
|
|
778
|
|
- axisLine: { lineStyle: { color: 'rgba(15,70,250,0.3)' } },
|
|
779
|
|
- splitLine: { lineStyle: { color: 'rgba(15,70,250,0.2)' } }
|
|
780
|
|
- },
|
|
781
|
|
- series: [{
|
|
782
|
|
- name: '查获数量',
|
|
783
|
|
- type: 'bar',
|
|
784
|
|
- data: [172, 200, 182, 82, 79, 149, 169, 92, 163, 144, 180],
|
|
785
|
|
- itemStyle: {
|
|
786
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
787
|
|
- { offset: 0, color: '#bd03fb' },
|
|
788
|
|
- { offset: 1, color: '#0f46fa' }
|
|
789
|
|
- ])
|
|
790
|
|
- },
|
|
791
|
|
- barWidth: '40%'
|
|
792
|
|
- }]
|
|
793
|
|
- }
|
|
794
|
|
- dailySeizedBar.setOption(option)
|
|
795
|
|
-}
|
|
|
480
|
+
|
|
796
|
481
|
|
|
797
|
482
|
const initWorkAreaDistChart = () => {
|
|
798
|
483
|
if (!workAreaDistChartRef.value) return
|
|
|
@@ -818,7 +503,7 @@ const initWorkAreaDistChart = () => {
|
|
818
|
503
|
xAxis: {
|
|
819
|
504
|
type: 'category',
|
|
820
|
505
|
data: ['T3国内出发(4层)', 'T3(8层出发)', 'T3国际出发', 'T3国际转国内', '旅检A区', 'T3要客服务区东', 'T3要客服务区西', 'T1要客服务区东', 'T2要客服务区东', '旅检B区', '重检C区'],
|
|
821
|
|
- axisLabel: {
|
|
|
506
|
+ axisLabel: {
|
|
822
|
507
|
color: '#a0c4ff',
|
|
823
|
508
|
rotate: 30,
|
|
824
|
509
|
fontSize: 10
|
|
|
@@ -914,7 +599,7 @@ const initUnsafePostDistChart = () => {
|
|
914
|
599
|
xAxis: {
|
|
915
|
600
|
type: 'category',
|
|
916
|
601
|
data: ['境外/非通道', '值机柜台', '验证/通道', '人身检查', 'X光/行李/开检', '开箱/货检'],
|
|
917
|
|
- axisLabel: {
|
|
|
602
|
+ axisLabel: {
|
|
918
|
603
|
color: '#a0c4ff',
|
|
919
|
604
|
rotate: 30,
|
|
920
|
605
|
fontSize: 10
|
|
|
@@ -1005,7 +690,7 @@ const initSecurityTestAreaChart = () => {
|
|
1005
|
690
|
xAxis: {
|
|
1006
|
691
|
type: 'category',
|
|
1007
|
692
|
data: ['T3国内出发(4层)', 'T3(8层出发)', 'T3国际出发', 'T3国际转国内', 'T1要客服务区西', 'T1要客服务区东'],
|
|
1008
|
|
- axisLabel: {
|
|
|
693
|
+ axisLabel: {
|
|
1009
|
694
|
color: '#a0c4ff',
|
|
1010
|
695
|
rotate: 30,
|
|
1011
|
696
|
fontSize: 10
|
|
|
@@ -1036,15 +721,11 @@ const initSecurityTestAreaChart = () => {
|
|
1036
|
721
|
|
|
1037
|
722
|
const handleResize = () => {
|
|
1038
|
723
|
if (hourlyPassChart) hourlyPassChart.resize()
|
|
1039
|
|
- if (dailyTrendChart) dailyTrendChart.resize()
|
|
1040
|
|
- if (areaCompareChart) areaCompareChart.resize()
|
|
1041
|
|
- if (weeklyTrendChart) weeklyTrendChart.resize()
|
|
1042
|
|
- if (monthlyTypeChart) monthlyTypeChart.resize()
|
|
1043
|
724
|
if (seizedSmallChart) seizedSmallChart.resize()
|
|
1044
|
725
|
if (seizedChart) seizedChart.resize()
|
|
1045
|
726
|
if (dailySeizedLine) dailySeizedLine.resize()
|
|
1046
|
727
|
if (dailySeizedArea) dailySeizedArea.resize()
|
|
1047
|
|
- if (dailySeizedBar) dailySeizedBar.resize()
|
|
|
728
|
+
|
|
1048
|
729
|
if (workAreaDistChart) workAreaDistChart.resize()
|
|
1049
|
730
|
if (unsafeItemDistChart) unsafeItemDistChart.resize()
|
|
1050
|
731
|
if (unsafeTypeDistChart) unsafeTypeDistChart.resize()
|
|
|
@@ -1052,23 +733,19 @@ const handleResize = () => {
|
|
1052
|
733
|
if (securityTestItemChart) securityTestItemChart.resize()
|
|
1053
|
734
|
if (securityTestPassChart) securityTestPassChart.resize()
|
|
1054
|
735
|
if (securityTestAreaChart) securityTestAreaChart.resize()
|
|
1055
|
|
- areaDistCharts.value.forEach(chart => chart && chart.resize())
|
|
1056
|
736
|
}
|
|
1057
|
737
|
|
|
1058
|
738
|
onMounted(() => {
|
|
|
739
|
+ updateDateTime()
|
|
|
740
|
+ dateTimer = setInterval(updateDateTime, 1000)
|
|
1059
|
741
|
nextTick(() => {
|
|
1060
|
742
|
setTimeout(() => {
|
|
1061
|
743
|
initHourlyPassChart()
|
|
1062
|
|
- initDailyTrendChart()
|
|
1063
|
|
- initAreaCompareChart()
|
|
1064
|
|
- initAreaDistCharts()
|
|
1065
|
|
- initWeeklyTrendChart()
|
|
1066
|
|
- initMonthlyTypeChart()
|
|
1067
|
744
|
initSeizedSmallChart()
|
|
1068
|
745
|
initSeizedChart()
|
|
1069
|
746
|
initDailySeizedLine()
|
|
1070
|
747
|
initDailySeizedArea()
|
|
1071
|
|
- initDailySeizedBar()
|
|
|
748
|
+
|
|
1072
|
749
|
initWorkAreaDistChart()
|
|
1073
|
750
|
initUnsafeItemDistChart()
|
|
1074
|
751
|
initUnsafeTypeDistChart()
|
|
|
@@ -1082,17 +759,14 @@ onMounted(() => {
|
|
1082
|
759
|
})
|
|
1083
|
760
|
|
|
1084
|
761
|
onUnmounted(() => {
|
|
|
762
|
+ clearInterval(dateTimer)
|
|
1085
|
763
|
window.removeEventListener('resize', handleResize)
|
|
1086
|
764
|
if (hourlyPassChart) hourlyPassChart.dispose()
|
|
1087
|
|
- if (dailyTrendChart) dailyTrendChart.dispose()
|
|
1088
|
|
- if (areaCompareChart) areaCompareChart.dispose()
|
|
1089
|
|
- if (weeklyTrendChart) weeklyTrendChart.dispose()
|
|
1090
|
|
- if (monthlyTypeChart) monthlyTypeChart.dispose()
|
|
1091
|
765
|
if (seizedSmallChart) seizedSmallChart.dispose()
|
|
1092
|
766
|
if (seizedChart) seizedChart.dispose()
|
|
1093
|
767
|
if (dailySeizedLine) dailySeizedLine.dispose()
|
|
1094
|
768
|
if (dailySeizedArea) dailySeizedArea.dispose()
|
|
1095
|
|
- if (dailySeizedBar) dailySeizedBar.dispose()
|
|
|
769
|
+
|
|
1096
|
770
|
if (workAreaDistChart) workAreaDistChart.dispose()
|
|
1097
|
771
|
if (unsafeItemDistChart) unsafeItemDistChart.dispose()
|
|
1098
|
772
|
if (unsafeTypeDistChart) unsafeTypeDistChart.dispose()
|
|
|
@@ -1100,7 +774,6 @@ onUnmounted(() => {
|
|
1100
|
774
|
if (securityTestItemChart) securityTestItemChart.dispose()
|
|
1101
|
775
|
if (securityTestPassChart) securityTestPassChart.dispose()
|
|
1102
|
776
|
if (securityTestAreaChart) securityTestAreaChart.dispose()
|
|
1103
|
|
- areaDistCharts.value.forEach(chart => chart && chart.dispose())
|
|
1104
|
777
|
})
|
|
1105
|
778
|
</script>
|
|
1106
|
779
|
|
|
|
@@ -1111,49 +784,17 @@ onUnmounted(() => {
|
|
1111
|
784
|
gap: 20px;
|
|
1112
|
785
|
|
|
1113
|
786
|
.content-row {
|
|
|
787
|
+ padding: 0 20px;
|
|
1114
|
788
|
display: flex;
|
|
1115
|
789
|
gap: 20px;
|
|
1116
|
|
-
|
|
1117
|
|
- > .info-card {
|
|
1118
|
|
- flex: 1;
|
|
1119
|
|
- min-width: 0;
|
|
1120
|
|
- }
|
|
1121
|
|
- }
|
|
1122
|
|
-
|
|
1123
|
|
- .hourly-pass-chart,
|
|
1124
|
|
- .daily-trend-chart,
|
|
1125
|
|
- .area-compare-chart {
|
|
1126
|
|
- width: 100%;
|
|
1127
|
|
- height: 350px;
|
|
1128
|
|
- }
|
|
1129
|
790
|
|
|
1130
|
|
- .area-distribution {
|
|
1131
|
|
- display: flex;
|
|
1132
|
|
- gap: 20px;
|
|
1133
|
|
- justify-content: space-around;
|
|
1134
|
|
- flex-wrap: wrap;
|
|
1135
|
|
-
|
|
1136
|
|
- .dist-item {
|
|
|
791
|
+ >.info-card {
|
|
1137
|
792
|
flex: 1;
|
|
1138
|
|
- min-width: 150px;
|
|
1139
|
|
- text-align: center;
|
|
1140
|
|
-
|
|
1141
|
|
- .dist-chart {
|
|
1142
|
|
- width: 100%;
|
|
1143
|
|
- height: 200px;
|
|
1144
|
|
- }
|
|
1145
|
|
-
|
|
1146
|
|
- .dist-label {
|
|
1147
|
|
- color: #a0c4ff;
|
|
1148
|
|
- font-size: 12px;
|
|
1149
|
|
- margin-top: 10px;
|
|
1150
|
|
- text-align: center;
|
|
1151
|
|
- }
|
|
|
793
|
+ min-width: 0;
|
|
1152
|
794
|
}
|
|
1153
|
795
|
}
|
|
1154
|
796
|
|
|
1155
|
|
- .weekly-trend-chart,
|
|
1156
|
|
- .monthly-type-chart {
|
|
|
797
|
+ .hourly-pass-chart {
|
|
1157
|
798
|
width: 100%;
|
|
1158
|
799
|
height: 350px;
|
|
1159
|
800
|
}
|
|
|
@@ -1221,7 +862,7 @@ onUnmounted(() => {
|
|
1221
|
862
|
height: 350px;
|
|
1222
|
863
|
}
|
|
1223
|
864
|
|
|
1224
|
|
- .daily-bar-chart,
|
|
|
865
|
+
|
|
1225
|
866
|
.work-area-dist-chart {
|
|
1226
|
867
|
width: 100%;
|
|
1227
|
868
|
height: 400px;
|
|
|
@@ -1236,5 +877,87 @@ onUnmounted(() => {
|
|
1236
|
877
|
width: 100%;
|
|
1237
|
878
|
height: 350px;
|
|
1238
|
879
|
}
|
|
|
880
|
+
|
|
|
881
|
+ .info-panel {
|
|
|
882
|
+ width: 300px;
|
|
|
883
|
+ min-width: 300px;
|
|
|
884
|
+ background: linear-gradient(135deg, rgba(15, 70, 250, 0.15), rgba(189, 3, 251, 0.15));
|
|
|
885
|
+ border: 1px solid rgba(15, 70, 250, 0.3);
|
|
|
886
|
+ border-radius: 20px;
|
|
|
887
|
+ display: flex;
|
|
|
888
|
+ flex-direction: column;
|
|
|
889
|
+ overflow: hidden;
|
|
|
890
|
+
|
|
|
891
|
+
|
|
|
892
|
+ .panel-body {
|
|
|
893
|
+ padding: 15px 20px;
|
|
|
894
|
+ flex: 1;
|
|
|
895
|
+ display: flex;
|
|
|
896
|
+ flex-direction: column;
|
|
|
897
|
+ gap: 10px;
|
|
|
898
|
+ justify-content: space-between;
|
|
|
899
|
+ }
|
|
|
900
|
+
|
|
|
901
|
+ .datetime-row {
|
|
|
902
|
+ display: flex;
|
|
|
903
|
+ align-items: baseline;
|
|
|
904
|
+ gap: 12px;
|
|
|
905
|
+
|
|
|
906
|
+ .info-date {
|
|
|
907
|
+ font-size: 22px;
|
|
|
908
|
+ font-weight: bold;
|
|
|
909
|
+ color: #fff;
|
|
|
910
|
+ letter-spacing: 2px;
|
|
|
911
|
+ }
|
|
|
912
|
+ }
|
|
|
913
|
+
|
|
|
914
|
+ .date-row {
|
|
|
915
|
+ display: flex;
|
|
|
916
|
+ align-items: center;
|
|
|
917
|
+ .info-date {
|
|
|
918
|
+ font-size: 22px;
|
|
|
919
|
+ font-weight: bold;
|
|
|
920
|
+ color: #fff;
|
|
|
921
|
+ letter-spacing: 2px;
|
|
|
922
|
+ }
|
|
|
923
|
+
|
|
|
924
|
+ .info-weekday {
|
|
|
925
|
+ font-size: 16px;
|
|
|
926
|
+ color: #a0c4ff;
|
|
|
927
|
+ }
|
|
|
928
|
+ }
|
|
|
929
|
+
|
|
|
930
|
+ .time-row {
|
|
|
931
|
+ font-size: 36px;
|
|
|
932
|
+ font-weight: bold;
|
|
|
933
|
+ color: #00f5ff;
|
|
|
934
|
+ letter-spacing: 4px;
|
|
|
935
|
+ text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
|
|
|
936
|
+ }
|
|
|
937
|
+
|
|
|
938
|
+ .divider {
|
|
|
939
|
+ height: 1px;
|
|
|
940
|
+ background: linear-gradient(90deg, transparent, rgba(15, 70, 250, 0.5), rgba(189, 3, 251, 0.5), transparent);
|
|
|
941
|
+ margin: 4px 0;
|
|
|
942
|
+ }
|
|
|
943
|
+
|
|
|
944
|
+ .duty-item {
|
|
|
945
|
+ display: flex;
|
|
|
946
|
+ align-items: center;
|
|
|
947
|
+ line-height: 28px;
|
|
|
948
|
+
|
|
|
949
|
+ .duty-label {
|
|
|
950
|
+ font-size: 16px;
|
|
|
951
|
+ color: #a0c4ff;
|
|
|
952
|
+ white-space: nowrap;
|
|
|
953
|
+ }
|
|
|
954
|
+
|
|
|
955
|
+ .duty-value {
|
|
|
956
|
+ font-size: 16px;
|
|
|
957
|
+ color: #fff;
|
|
|
958
|
+ margin-left: 4px;
|
|
|
959
|
+ }
|
|
|
960
|
+ }
|
|
|
961
|
+ }
|
|
1239
|
962
|
}
|
|
1240
|
963
|
</style>
|