yanghao 4 дней назад
Родитель
Сommit
2d83d70af9
1 измененных файлов с 13 добавлено и 5 удалено
  1. 13 5
      src/views/pms/qhse/kanban/index.vue

+ 13 - 5
src/views/pms/qhse/kanban/index.vue

@@ -118,9 +118,9 @@ const summaryCards: SummaryCard[] = [
 ]
 ]
 
 
 const hazardBars: MetricBar[] = [
 const hazardBars: MetricBar[] = [
-  { label: '已整改 628', value: 100, color: '#43c7ca' },
-  { label: '未整改 29', value: 61, color: '#ff981f' },
-  { label: '超期 2', value: 38, color: '#ff4c49' }
+  { label: '已整改', value: 628, color: '#43c7ca' },
+  { label: '未整改', value: 29, color: '#ff981f' },
+  { label: '超期', value: 2, color: '#ff4c49' }
 ]
 ]
 
 
 const incidentStats = [
 const incidentStats = [
@@ -314,13 +314,21 @@ function getHazardChartOption(): echarts.EChartsOption {
           }
           }
         })),
         })),
         barWidth: 70,
         barWidth: 70,
-        showBackground: true,
+
         backgroundStyle: {
         backgroundStyle: {
           color: 'rgba(31, 91, 184, 0.06)',
           color: 'rgba(31, 91, 184, 0.06)',
           borderRadius: 0
           borderRadius: 0
         },
         },
         label: {
         label: {
-          show: false
+          show: true,
+          position: 'top',
+          color: '#3c5f96',
+          fontSize: 16,
+          fontWeight: 700,
+          fontFamily: FONT_FAMILY,
+          formatter(params: any) {
+            return `${params.value}`
+          }
         },
         },
         emphasis: {
         emphasis: {
           itemStyle: {
           itemStyle: {