wangmengwei 3 жил өмнө
parent
commit
e7dca430d1

+ 16 - 14
ruoyi-ui/src/views/management/nstruction/index.vue

@@ -1209,24 +1209,26 @@ export default {
         this.loading = false;
       });
     },
-    
-    
+
+
     //设备安装接口
     getListther() {
       this.loading = true;
       listConfigserve(this.queryParamsstallation).then((response) => {
-        this.configListher = response.rows;
-        this.configListher.filter((route) => {
-          if (route.photo !== null) {
-            let poku = [];
-            poku = route.photo.split(",");
-            route.photo = route.photo.split(",");
-            route.phototwo = route.photo[0];
-            this.dialogImagename = route.phototwo
-            console.log(route.phototwo);
-            console.log(route.photo);
-          }
-        });
+        if(response.rows.constructionCode !== null){
+          this.configListher = response.rows;
+          this.configListher.filter((route) => {
+            if (route.photo !== null) {
+              let poku = [];
+              poku = route.photo.split(",");
+              route.photo = route.photo.split(",");
+              route.phototwo = route.photo[0];
+              this.dialogImagename = route.phototwo
+              console.log(route.phototwo);
+              console.log(route.photo);
+            }
+          });
+        }
         this.totalth = response.total;
         this.loading = false;
       });