From 2547159bbd781c8e1a41ecc939385396c85f9766 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期一, 09 六月 2025 23:35:59 +0800
Subject: [PATCH] 2025.6.9(功能编写中)

---
 src/views/inspection/problem/component/ProblemType.vue |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/views/inspection/problem/component/ProblemType.vue b/src/views/inspection/problem/component/ProblemType.vue
index f65f5aa..7b40def 100644
--- a/src/views/inspection/problem/component/ProblemType.vue
+++ b/src/views/inspection/problem/component/ProblemType.vue
@@ -1,13 +1,18 @@
 <template>
   <el-row justify="space-between">
-    <el-col :span="18">
-      <el-text v-if="mainProType">
+    <el-col :span="24">
+      <el-row v-if="mainProType" justify="space-between" class="p-h-16">
+        <el-statistic title="绐佸嚭闂" :value="mainProType.name" />
+        <el-statistic title="闂鏁�" :value="mainProType.count" />
+        <el-statistic title="鍗犳瘮" :value="mainProType.per" />
+      </el-row>
+      <!-- <el-text v-if="mainProType">
         绐佸嚭闂锛歿{ mainProType.name }}锛岄棶棰樻暟锛歿{ mainProType.count }}锛屽崰姣攞{ mainProType.per }}
-      </el-text>
+      </el-text> -->
     </el-col>
     <el-col :span="6">
       <el-row justify="end">
-        <OptionTime v-model="time"></OptionTime>
+        <!-- <OptionTime v-model="time"></OptionTime> -->
       </el-row>
     </el-col>
   </el-row>
@@ -63,6 +68,14 @@
       return res
     }
   },
+  watch: {
+    'areaStore.area': {
+      handler(nV, oV) {
+        this.fetchProblemsStatistic()
+      },
+      deep: true
+    }
+  },
   methods: {
     fetchProblemsStatistic() {
       const param = unref(this.areaStore.area)
@@ -93,7 +106,8 @@
   },
   mounted() {
     this.echart = echarts.init(this.$refs.echart)
-    this.fetchProblemsStatistic()
+    // this.area = this.areaStore.area
+    // this.fetchProblemsStatistic()
   }
 }
 </script>

--
Gitblit v1.9.3