Lin Qilong 1 mês atrás
pai
commit
3828370e23
1 arquivos alterados com 9 adições e 8 exclusões
  1. 9 8
      ruoyi-ui/src/views/monitor/service/index.vue

+ 9 - 8
ruoyi-ui/src/views/monitor/service/index.vue

@@ -88,7 +88,7 @@
             <el-tag type="danger" effect="dark" size="small">{{ alarmTableData.length }}</el-tag>
           </div>
         </template>
-        <el-table stripe :data="alarmTableData"  height="100%">
+        <el-table stripe :data="alarmTableData" height="100%">
           <el-table-column align="center" width="120" prop="tm" label="报警时间">
             <template #default="scope">
               {{ scope.row.alertTime ? scope.row.alertTime.substring(5, 16) : '' }}
@@ -324,8 +324,8 @@ function initChartTop2() {
         top: '90%',
         left: 'center',
         textStyle: {
-        fontSize: 12 // 提示框字体大小
-      }
+          fontSize: 12 // 提示框字体大小
+        }
       },
       series: [
         {
@@ -496,8 +496,8 @@ function initChartTop11() {
       legend: {
         selectedMode: false,
         textStyle: {
-        fontSize: 12 // 提示框字体大小
-      }
+          fontSize: 12 // 提示框字体大小
+        }
       },
       tooltip: {
         trigger: 'item'
@@ -514,7 +514,8 @@ function initChartTop11() {
         axisLabel: {
           interval: 0,
           fontSize: 14,
-          rotate: 10 // 设置标签旋转45度
+          rotate: 10, // 设置标签旋转45度
+          formatter: (params) => Math.round(params * 100) + '%'
         },
       },
       xAxis: {
@@ -710,14 +711,14 @@ function initVisitNumberChart(name, data) {
       type: 'value',
       boundaryGap: [0, 0.01],
       axisLabel: {
-          fontSize: 14, // x轴标签字体大小
+        fontSize: 14, // x轴标签字体大小
       },
     },
     yAxis: {
       type: 'category',
       data: yAxisData,
       axisLabel: {
-          fontSize: 14, // x轴标签字体大小
+        fontSize: 14, // x轴标签字体大小
       },
     },
     series: [