From f5edbc080d696fbd55de84f6a906aeb2cde3b1b6 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期一, 03 三月 2025 22:57:00 +0800
Subject: [PATCH] 修改了对应bug

---
 ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue |  103 +++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 87 insertions(+), 16 deletions(-)

diff --git a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
index 887e067..510ebd1 100644
--- a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
+++ b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -83,7 +83,7 @@
             </el-cow>
             <el-cow >
               <el-form-item label="澶囨敞" prop="remark" label-width="45px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
-                <el-input v-model="formData.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" :disabled="dsb"></el-input>
+                <el-input v-model="formData.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" :disabled="dsb" type="textarea"></el-input>
               </el-form-item>
             </el-cow>
           </el-row>
@@ -178,7 +178,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">
@@ -257,6 +257,7 @@
       uploadFileList:[],
       uploadFileList1:[],
       fileListOther:[],
+      fileListOther1:[],
       dsb:true,
       btn:false,
       isShow:true,
@@ -345,10 +346,15 @@
         value: '鍙樻洿',
         label: '鍙樻洿',
       },
-        {
-          value: '娉ㄩ攢',
-          label: '娉ㄩ攢',
-        }],
+      {
+        value: '娉ㄩ攢',
+        label: '娉ㄩ攢',
+      },
+      {
+        value: '璐拱',
+        label: '璐拱',
+      },
+      ],
     }
   },
   computed: {},
@@ -375,6 +381,7 @@
     if (id) {
       this.loading = true;
       getSelfEconomyInfo({id}).then((response) => {
+        console.log(response.data,'123123123')
         this.formData = response.data;
 		if(this.formData.status==1)
 			this.formData.status = '鏄�'
@@ -388,12 +395,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()
@@ -412,11 +433,52 @@
       // this.getCateInfor()
 
     }
-    console.log(_this.fileList,'666')
-        console.log(_this.fileListOther,'888')
+
   },
   mounted() {},
   methods: {
+    getData(){
+      const id = this.$route.params && this.$route.params.id;
+      let _this = this
+      if (id) {
+        this.loading = true;
+        getSelfEconomyInfo({id}).then((response) => {
+          this.formData = response.data;
+      if(this.formData.status==1)
+      	this.formData.status = '鏄�'
+      else
+      	this.formData.status = '鍚�'
+          let paths = response.data.url.split(",");
+          for(let i = 0; i < paths.length; i++)
+          {
+            if(paths[i]!="") {
+
+                let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
+            	// alert(pth)
+                if (_this.fot.includes(pth) === true)
+            	{
+              console.log()
+            	  }
+                else {
+                  // alert(paths[i])
+            	 // alert()
+                  let nms = paths[i].split("\/")
+                  let nm = nms[nms.length - 1]
+            	  if(paths[i][0]=="/")
+                  _this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
+            		else
+            		_this.fileListOther1.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
+
+            	}
+              }
+          }
+          _this.fileListOther = _this.fileListOther1
+          this.loading = false;
+        });
+        // this.getCateInfor()
+
+      }
+    },
     /** 鏌ヨ绫诲埆淇℃伅 */
     // getCateInfor()
     // {
@@ -524,7 +586,10 @@
       	  updateSelfEconomy(this.formData).then(response => {
       		this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
       		// this.open = false;
-
+          if(this.formData.status==1)
+            this.formData.status = '鏄�'
+          else
+            this.formData.status = '鍚�'
       	  });
         }
     },
@@ -569,6 +634,10 @@
 						  		this.formData.status = 0
       	  updateSelfEconomy(this.formData).then(response => {
       		this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+          if(this.formData.status==1)
+            this.formData.status = '鏄�'
+          else
+            this.formData.status = '鍚�'
       	  });
         }
     },
@@ -619,7 +688,7 @@
  	   this.fileList.push({name:file.name,url:file.url,res:true})
      },
  	//鑷畾涔変笂浼犳柟娉�
- 	handleChange1(file, fileListOther1) {
+ 	handleChange1(file, fileListOther12) {
  	       //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍
 
  	     // this.uploadFileList.push(file.raw);
@@ -660,6 +729,8 @@
  		    updateSelfEconomy(_this.formData).then(response => {
  		      this.$modal.msgSuccess("鏂囨。涓婁紶鎴愬姛");
  		      // this.open = false;
+          this.getData()
+          this.fileListOther1=[]
           if(this.formData.status== 1)
           	this.formData.status = '鏄�'
           else

--
Gitblit v1.9.1