| | |
| | | // 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 => { |
| | |
| | | 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; |
| | |
| | | }) |
| | | 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("删除成功"); |
| | | }); |
| | |
| | | }) |
| | | 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) |
| | |
| | | updateSelfEconomy(_this.formData).then(response => { |
| | | _this.$modal.msgSuccess("图片上传成功"); |
| | | // this.open = false; |
| | | |
| | | if(_this.formData.status==1) |
| | | _this.formData.status = '是' |
| | | else |
| | | _this.formData.status = '否' |
| | | }); |
| | | // } |
| | | // else{ |