From 8756117a473facf0bf64c9e28f821b52e46cce85 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 08 七月 2024 17:38:18 +0800
Subject: [PATCH] 完善问题整改跟踪模块

---
 src/views/visualization/SupervisionVisual.vue |   38 +++++++++++++++++++++++---------------
 1 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/src/views/visualization/SupervisionVisual.vue b/src/views/visualization/SupervisionVisual.vue
index d362111..c14bbdd 100644
--- a/src/views/visualization/SupervisionVisual.vue
+++ b/src/views/visualization/SupervisionVisual.vue
@@ -10,6 +10,9 @@
 
 <script>
 import { inject } from 'vue'
+import { useAreaStore } from '@/stores/area.js'
+import { mapStores } from 'pinia'
+
 import taskApi from '@/api/fysp/taskApi.js'
 import marks from '@/utils/map/marks.js'
 import scene_1 from '@/assets/icon/scene_1.png'
@@ -33,23 +36,28 @@
     }
   },
   computed: {
-    area() {
-      return {
-        provincecode: this.locations.pCode,
-        provincename: this.locations.pName,
-        citycode: this.locations.cCode,
-        cityname: this.locations.cName,
-        districtcode: this.locations.dCode,
-        districtname: this.locations.dName,
-        starttime: this.$fm.formatYMDH(this.time),
-        scensetypeid: this.sceneType.value
-      }
-    }
+    ...mapStores(useAreaStore)
+    // area() {
+    //   return {
+    //     provincecode: this.locations.pCode,
+    //     provincename: this.locations.pName,
+    //     citycode: this.locations.cCode,
+    //     cityname: this.locations.cName,
+    //     districtcode: this.locations.dCode,
+    //     districtname: this.locations.dName,
+    //     starttime: this.$fm.formatYMDH(this.time),
+    //     scensetypeid: this.sceneType.value
+    //   }
+    // }
   },
   methods: {
     // 鏌ヨ
-    fetchSubtaskSummaryArea() {
-      return taskApi.fetchSubtaskSummaryArea(this.area).then((res) => {
+    fetchTaskProgress() {
+      this.areaStore.setLocation(this.locations)
+      this.areaStore.setTimeOneDay(this.time)
+      this.areaStore.setSceneType(this.sceneType.value)
+
+      return taskApi.fetchTaskProgress(this.areaStore.area).then((res) => {
         let list = []
         res.data.forEach((e) => {
           list = list.concat(e.subTaskSummary)
@@ -62,7 +70,7 @@
     }
   },
   mounted() {
-    this.fetchSubtaskSummaryArea()
+    // this.fetchTaskProgress()
   }
 }
 </script>

--
Gitblit v1.9.3