yz3456
2024-03-30 38e3523c6883eb3eaaf58995a9ad6db888ee4c43
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("删除成功");
           });
@@ -641,6 +649,11 @@
       console.log(this.uploadFileList1)
       let _this = this
    if(this.formData.status=='是')
               this.formData.status = 1
               else
               this.formData.status = 0
       this.uploading = true;
       uploadPic(formData).then(response => {
       _this.uploadFileList1 = []
@@ -648,9 +661,14 @@
           updateSelfEconomy(_this.formData).then(response => {
             this.$modal.msgSuccess("文档上传成功");
             // this.open = false;
          if(this.formData.status=='是')
             this.formData.status = 1
          else
             this.formData.status = 0
           });
         })
          this.uploading = false;
    },
    picUpload()
    {
@@ -668,7 +686,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,14 +716,19 @@
           updateSelfEconomy(_this.formData).then(response => {
             _this.$modal.msgSuccess("图片上传成功");
             // this.open = false;
     if(_this.formData.status==1)
                 _this.formData.status = '是'
                 else
                 _this.formData.status = '否'
           });
         // }
         // else{
         //   _this.fileListOther.push({name:response.data.fileName, url:response.data.url})
         // }
       });
       this.uploading = false;
    },
      requestUpload(params)
     {