From 0dab8829a661e27ee8b61ffe44fc9d82570741b8 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期日, 17 十一月 2024 11:26:05 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-ui/src/views/device/equipmentInfo.vue |   46 ++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 38 insertions(+), 8 deletions(-)

diff --git a/ruoyi-ui/src/views/device/equipmentInfo.vue b/ruoyi-ui/src/views/device/equipmentInfo.vue
index fcc3ff6..f2c606e 100644
--- a/ruoyi-ui/src/views/device/equipmentInfo.vue
+++ b/ruoyi-ui/src/views/device/equipmentInfo.vue
@@ -146,7 +146,7 @@
           ></video>
           <img v-else
                class="el-upload-list__item-thumbnail"
-               src="../../assets/401_images/401.gif"
+               src="../../assets/images/deviceLis.png"
                alt=""
                style="width: 147px; height: 147px"
                fit="cover">
@@ -318,7 +318,6 @@
       this.btn = false;
       this.isShow=false
     }
-
     let _this = this
     if (id) {
       this.loading = true;
@@ -337,12 +336,26 @@
               let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
           //	alert(pth)
               if (_this.fot.includes(pth) === true)
-          	{
-          		if(paths[i][0]=="/")
-                _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
-          	  else
-          	     _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
-          	  }
+          	// {
+          	// 	if(paths[i][0]=="/")
+           //      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
+          	//   else
+          	//      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
+          	//   }
+            {
+              if(paths[i].includes(process.env.VUE_APP_BASE_TRUE_API)){
+                if(paths[i][0]=="/")
+                      _this.fileList.push({name:paths[i],url: paths[i].substr(1),res:false})
+                else
+                   _this.fileList.push({name:paths[i],url: paths[i],res:false})
+              }else{
+                if(paths[i][0]=="/")
+                      _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
+                else
+                   _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
+              }
+
+              }
               else {
                 // alert(paths[i])
           	 // alert()
@@ -427,12 +440,29 @@
           if (this.formData.id != undefined) {
             updateEquipment(this.formData).then(response => {
               this.$modal.msgSuccess("淇敼鎴愬姛");
+			  console.log(this.$route)
+			   //  this.$tab.closePage({ path: "/familymodel/zfDevice" })
+			   
+			
+			    //this.$tab.closePage({ path: "/familymodel/zfDevice" })
+
+				
+			// 
+			// localtion.reload()
+			//alert(25)
+			//	window.location.url="https://localhost:80/familymodel/zfDevice"
               // this.open = false;
               if(this.formData.status==1)
                 this.formData.status = '鏄�'
               else
               this.formData.status = '鍚�'
               this.btn=false
+			  this.$router.replace({  title:"ZfDevice",path: "/familymodel/zfDevice"});
+			  // 鍦ㄤ笅涓�涓簨浠跺惊鐜腑鍒锋柊椤甸潰
+			  this.$nextTick(() => {
+			    window.location.reload();
+			  });
+			//this.$router.push("/familymodel/zfDevice");
             });
           } else {
             this.$modal.msgSuccess("淇敼澶辫触");

--
Gitblit v1.9.1