From e6db32e2d5ccf1aa018f138f088795036c879de3 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期六, 23 三月 2024 23:14:29 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
index 31ce44e..b15a352 100644
--- a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
+++ b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -445,7 +445,7 @@
 		// else
 		// this.formData.status = 0
 
-		alert(this.formData.status)
+	///	alert(this.formData.status)
         if (valid) {
           if (this.formData.id != undefined) {
             updateSelfEconomy(this.formData).then(response => {
@@ -518,6 +518,10 @@
         this.formData.url = ul+","+uls;
       //  alert(this.formData.url)
         if(res==true){
+			if(this.formData.status=='鏄�')
+						  		this.formData.status = 1
+						  		else
+						  		this.formData.status = 0
       	  updateSelfEconomy(this.formData).then(response => {
       		this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
       		// this.open = false;
@@ -560,6 +564,10 @@
         })
         this.formData.url = ul+","+uls;
         if(res==true){
+			if(this.formData.status=='鏄�')
+						  		this.formData.status = 1
+						  		else
+						  		this.formData.status = 0
       	  updateSelfEconomy(this.formData).then(response => {
       		this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
       	  });
@@ -668,7 +676,10 @@
  		})
  		let _this = this
 
-
+	  if(this.formData.status=='鏄�')
+			  		this.formData.status = 1
+			  		else
+			  		this.formData.status = 0
          uploadPic(formData).then(response => {
  			// console.log(response.originalFilenames)
  			// console.log(response.urls)
@@ -695,7 +706,10 @@
            updateSelfEconomy(_this.formData).then(response => {
              _this.$modal.msgSuccess("鍥剧墖涓婁紶鎴愬姛");
              // this.open = false;
-
+	  if(_this.formData.status==1)
+			  		_this.formData.status = '鏄�'
+			  		else
+			  		_this.formData.status = '鍚�'
            });
          // }
          // else{

--
Gitblit v1.9.1