From 9d21a549243b4e2bf2730eb2ed753278f4bea71b Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 17 九月 2024 11:57:14 +0800
Subject: [PATCH] 工单图片在详情中展示

---
 src/views/system/check/result/index.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/system/check/result/index.vue b/src/views/system/check/result/index.vue
index 3428663..e90e9d4 100644
--- a/src/views/system/check/result/index.vue
+++ b/src/views/system/check/result/index.vue
@@ -188,10 +188,9 @@
   },
   mounted() {
     this.queryParams.examineTag = this.activeIndex
-    this.getList();
-    this.areaSelect();
     chart = echarts.init(this.$refs.barChart);
-    this.setChartOption(this.checkScoreList);
+    this.areaSelect()
+    // this.setChartOption(this.checkScoreList);
   },
   methods: {
     jumpDetail(index) {
@@ -353,10 +352,12 @@
     areaSelect() {
       areaSelect().then(res => {
         this.areaList = res.data;
+        this.getList();
       })
     },
     translateDeptId(deptId) {
       const department = this.areaList.find(dept => dept.id === deptId);
+      console.log(deptId,this.areaList)
       return department ? department.value : '鏈煡';
     },
 
@@ -413,7 +414,7 @@
       console.log(this.queryParams);
       listScore(this.queryParams).then(response => {
         this.checkScoreList = response.data;
-        console.log(this.checkScoreList);
+
         this.setChartOption(this.checkScoreList);
         this.loading = false;
       });

--
Gitblit v1.8.0