From 783b99e90a91540d7b05a777b838b183558d50d1 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 27 六月 2025 09:22:03 +0800
Subject: [PATCH] 测试完成

---
 src/views/knowledge/questionnaire/compilequer/index.vue |   39 ++++++++++++++++++++++-----------------
 1 files changed, 22 insertions(+), 17 deletions(-)

diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 5467535..a0b408c 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -691,7 +691,9 @@
                             <el-image
                               style="width: 100px; height: 100px"
                               :src="item.picturePath"
-                              :preview-src-list="[...item.picturePath]"
+                              :preview-src-list="
+                                item.picturePath ? [item.picturePath] : []
+                              "
                             >
                             </el-image>
                           </div>
@@ -1212,7 +1214,9 @@
                           <el-image
                             style="width: 100px; height: 100px"
                             :src="item.picturePath"
-                            :preview-src-list="[...item.picturePath]"
+                             :preview-src-list="
+                                item.picturePath ? [item.picturePath] : []
+                              "
                           >
                           </el-image>
                         </div>
@@ -1539,21 +1543,22 @@
       });
       this.tempDetpRelevanceslist = [];
       this.tempbelongWards = [];
-
-      depthospgetsonlist(this.queryParamsdept).then((res) => {
-        if (res.code == 200) {
-          let arr = res.rows;
-          arr.forEach((item) => {
-            if (item.deptType == 1) {
-              this.deptlist.push(item);
-              this.tempDetpRelevanceslist.push(item.deptCode);
-            } else if (item.deptType == 2) {
-              this.hosplist.push(item);
-              this.tempbelongWards.push(item.deptCode);
-            }
-          });
-        }
-      });
+      if (this.queryParamsdept.tempid) {
+        depthospgetsonlist(this.queryParamsdept).then((res) => {
+          if (res.code == 200) {
+            let arr = res.rows;
+            arr.forEach((item) => {
+              if (item.deptType == 1) {
+                this.deptlist.push(item);
+                this.tempDetpRelevanceslist.push(item.deptCode);
+              } else if (item.deptType == 2) {
+                this.hosplist.push(item);
+                this.tempbelongWards.push(item.deptCode);
+              }
+            });
+          }
+        });
+      }
     },
     // 鑾峰彇绉戝鏍�
     getDeptTree() {

--
Gitblit v1.9.3