|
|
@@ -477,7 +477,7 @@ function initCharts() {
|
|
477
|
477
|
seizePieChartInstance = echarts.init(seizePieChart.value)
|
|
478
|
478
|
const seizureData = seizureCategoryData.value || []
|
|
479
|
479
|
seizePieChartInstance.setOption({
|
|
480
|
|
- tooltip: { trigger: 'item' },
|
|
|
480
|
+ tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' },
|
|
481
|
481
|
legend: { orient: 'vertical', right: 10, top: 'center' },
|
|
482
|
482
|
series: [{
|
|
483
|
483
|
name: '查获数据',
|
|
|
@@ -491,6 +491,9 @@ function initCharts() {
|
|
491
|
491
|
shadowOffsetX: 0,
|
|
492
|
492
|
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
493
|
493
|
}
|
|
|
494
|
+ },
|
|
|
495
|
+ label: {
|
|
|
496
|
+ formatter: '{b}: {c} ({d}%)'
|
|
494
|
497
|
}
|
|
495
|
498
|
}]
|
|
496
|
499
|
})
|
|
|
@@ -508,7 +511,12 @@ function initCharts() {
|
|
508
|
511
|
const item = brigadeData.find(d => d.shift === shift && d.brigade === brigade)
|
|
509
|
512
|
return item ? item.grandTotal : 0
|
|
510
|
513
|
}),
|
|
511
|
|
- type: 'bar'
|
|
|
514
|
+ type: 'bar',
|
|
|
515
|
+ label: {
|
|
|
516
|
+ show: true,
|
|
|
517
|
+ position: 'top',
|
|
|
518
|
+ formatter: '{c}'
|
|
|
519
|
+ }
|
|
512
|
520
|
}))
|
|
513
|
521
|
teamSeizeBarChartInstance.setOption({
|
|
514
|
522
|
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
|
|
|
@@ -534,7 +542,12 @@ function initCharts() {
|
|
534
|
542
|
const item = brigadeData.find(d => d.shift === shift && d.brigade === brigade)
|
|
535
|
543
|
return item ? item.t1Total : 0
|
|
536
|
544
|
}),
|
|
537
|
|
- type: 'bar'
|
|
|
545
|
+ type: 'bar',
|
|
|
546
|
+ label: {
|
|
|
547
|
+ show: true,
|
|
|
548
|
+ position: 'top',
|
|
|
549
|
+ formatter: '{c}'
|
|
|
550
|
+ }
|
|
538
|
551
|
}))
|
|
539
|
552
|
t1TeamBarChartInstance.setOption({
|
|
540
|
553
|
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
|
|
|
@@ -560,7 +573,12 @@ function initCharts() {
|
|
560
|
573
|
const item = brigadeData.find(d => d.shift === shift && d.brigade === brigade)
|
|
561
|
574
|
return item ? item.t2Total : 0
|
|
562
|
575
|
}),
|
|
563
|
|
- type: 'bar'
|
|
|
576
|
+ type: 'bar',
|
|
|
577
|
+ label: {
|
|
|
578
|
+ show: true,
|
|
|
579
|
+ position: 'top',
|
|
|
580
|
+ formatter: '{c}'
|
|
|
581
|
+ }
|
|
564
|
582
|
}))
|
|
565
|
583
|
t2TeamBarChartInstance.setOption({
|
|
566
|
584
|
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
|
|
|
@@ -590,7 +608,7 @@ function initCharts() {
|
|
590
|
608
|
].filter(item => item.value > 0)
|
|
591
|
609
|
|
|
592
|
610
|
powerBankPieChartInstance.setOption({
|
|
593
|
|
- tooltip: { trigger: 'item' },
|
|
|
611
|
+ tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' },
|
|
594
|
612
|
legend: { orient: 'vertical', right: 10, top: 'center' },
|
|
595
|
613
|
series: [{
|
|
596
|
614
|
name: '不合格充电宝',
|
|
|
@@ -604,6 +622,9 @@ function initCharts() {
|
|
604
|
622
|
shadowOffsetX: 0,
|
|
605
|
623
|
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
606
|
624
|
}
|
|
|
625
|
+ },
|
|
|
626
|
+ label: {
|
|
|
627
|
+ formatter: '{b}: {c} ({d}%)'
|
|
607
|
628
|
}
|
|
608
|
629
|
}]
|
|
609
|
630
|
})
|
|
|
@@ -620,7 +641,7 @@ function initCharts() {
|
|
620
|
641
|
].filter(item => item.value > 0)
|
|
621
|
642
|
|
|
622
|
643
|
waitingAreaPieChartInstance.setOption({
|
|
623
|
|
- tooltip: { trigger: 'item' },
|
|
|
644
|
+ tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' },
|
|
624
|
645
|
legend: { orient: 'vertical', right: 10, top: 'center' },
|
|
625
|
646
|
series: [{
|
|
626
|
647
|
name: '禁限带物品',
|
|
|
@@ -634,6 +655,9 @@ function initCharts() {
|
|
634
|
655
|
shadowOffsetX: 0,
|
|
635
|
656
|
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
636
|
657
|
}
|
|
|
658
|
+ },
|
|
|
659
|
+ label: {
|
|
|
660
|
+ formatter: '{b}: {c} ({d}%)'
|
|
637
|
661
|
}
|
|
638
|
662
|
}]
|
|
639
|
663
|
})
|