Explorar o código

style: 优化代码格式与控制台日志

yusheng hai 6 meses
pai
achega
0cefba279e
Modificáronse 1 ficheiros con 10 adicións e 3 borrados
  1. 10 3
      src/views/home/index.vue

+ 10 - 3
src/views/home/index.vue

@@ -18,6 +18,7 @@
                   @change="dateTypeChange"
                   clearable
                   placeholder=" "
+                  :popper-append-to-body="false"
                 >
                   <el-option label="全部区域" :value="''" />
                   <el-option
@@ -1391,11 +1392,17 @@
           statisticsCycle: this.statisticsCycle
         }).then((res) => {
           this.warningStats = [
-            { label: '用电预警(件)', value: res.warningStat?.electricityWarningCount },
-            { label: '用水预警(件)', value: res.warningStat?.waterWarningCount },
+            {
+              label: '用电预警(件)',
+              value: res.warningStat?.electricityWarningCount
+            },
+            {
+              label: '用水预警(件)',
+              value: res.warningStat?.waterWarningCount
+            },
             { label: '用气预警(件)', value: res.warningStat?.gasWarningCount }
           ];
-          console.log(res,'this.warningStats')
+          console.log(res, 'this.warningStats');
           let dataArr = [];
           let dataKey = [
             'warningLevel',