feige
2024-03-23 e6db32e2d5ccf1aa018f138f088795036c879de3
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{