Przeglądaj źródła

Merge branch 'fixbug' of ssh://172.16.23.188:9022/tian-group/skyeye-admin-fe into fixbug

zhudie 2 lat temu
rodzic
commit
19c3b4fbfe

+ 5 - 7
src/views/dashboard/home/components/AlgoDataPanel.vue

@@ -179,9 +179,9 @@
           fontSize: 20,
         },
       },
-      tooltip: {
-        trigger: 'item',
-      },
+      // tooltip: {
+      //   trigger: 'item',
+      // },
       grid: {
         left: '10px',
         right: '4%',
@@ -231,9 +231,9 @@
           emphasis: {
             label: {
               show: true,
-              fontSize: 20,
+              fontSize: 16,
               fontWeight: 'bold',
-              formatter: '{b}:   {c}',
+              formatter: '{b}:   {d}%',
             },
             itemStyle: {
               shadowBlur: 10,
@@ -302,8 +302,6 @@
     width: 1px;
     height: 40px;
     background: #e9e9e9;
-    /* margin-left: 29px;
-    margin-right: 27px; */
   }
 
   .el-divider--vertical {

+ 16 - 2
src/views/dashboard/home/components/Score.vue

@@ -8,8 +8,14 @@
         </el-radio-group>
       </div>
       <el-divider />
-      <div v-if="scoreInfoList.length > 0" class="score-show">
-        <VChart class="pic-show" :option="options" :style="{ height: updateChartHeight }" />
+      <div class="score-show">
+        <VChart
+          v-if="scoreInfoList.length > 0"
+          class="pic-show"
+          :option="options"
+          :style="{ height: updateChartHeight }"
+        />
+        <div v-else class="pic-none">暂无数据</div>
       </div>
     </div>
     <div class="score-divider" :style="{ height: updateLineHeight }"></div>
@@ -268,4 +274,12 @@
     color: rgba(0, 0, 0, 0.45);
     font-size: 10px;
   }
+
+  .pic-none {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    height: 100%;
+    font-size: 20px;
+  }
 </style>