From d75975f18f3d4e57eb7a94646b32c8a8b3f33ade Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期二, 12 三月 2024 21:54:59 +0800 Subject: [PATCH] 修改了bug --- ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue index 34d6110..eb9c5a8 100644 --- a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue +++ b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue @@ -296,7 +296,7 @@ trigger: 'blur' }], status: [{ - // required: true, + required: true, message: '璇疯緭鍏ユ槸鍚︽敞閿�', trigger: 'blur' }], @@ -380,6 +380,10 @@ 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++) { @@ -436,18 +440,28 @@ this.formData.url = ul+","+uls this.$refs['elForm'].validate(valid => { - - + if(this.formData.status=="1") + this.formData.status = 1 + else + this.formData.status = 0 + //alert(this.formData.status) if (valid) { if (this.formData.id != undefined) { updateSelfEconomy(this.formData).then(response => { this.$modal.msgSuccess("淇敼鎴愬姛"); // this.open = false; + if(this.formData.status==1) + this.formData.status = '鏄�' + else + this.formData.status = '鍚�' this.btn=false }); } else { this.$modal.msgSuccess("淇敼澶辫触"); - + if(this.formData.status==1) + this.formData.status = '鏄�' + else + this.formData.status = '鍚�' } } }) -- Gitblit v1.9.1