| | |
| | | } |
| | | }, |
| | | handleSuccess(res, file, filelist) { |
| | | console.log(res) |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | |
| | | // const baseUrl = 'http://140.143.152.226:8410/'; |
| | | // this.ill.positive = baseUrl + res.data.url1; |
| | | this.ill.positive = res.data |
| | | // this.ill.positive = res.data |
| | | // let oll =this.ill.positive |
| | | let that=this |
| | | this.$axios({ |
| | | url:'sccg/API/img?fileUrl='+res.data, |
| | | method:"get", |
| | | responseType: 'blob' |
| | | }).then(res=>{ |
| | | |
| | | const blob = new Blob([res]) |
| | | var reader = new window.FileReader(); |
| | | reader.readAsDataURL(blob); |
| | | reader.onloadend = function () { |
| | | |
| | | that.ill.positive= reader.result |
| | | } |
| | | |
| | | }) |
| | | |
| | | }, |
| | | handleSuccess2(res, file, filelist) { |
| | | const baseUrl = 'http://140.143.152.226:8410/'; |
| | | // const baseUrl = 'http://140.143.152.226:8410/'; |
| | | // this.ill.negative = baseUrl + res.data.url1; |
| | | this.ill.negative = res.data |
| | | // this.ill.negative = res.data |
| | | let that=this |
| | | this.$axios({ |
| | | url:'sccg/API/img?fileUrl='+res.data, |
| | | method:"get", |
| | | responseType: 'blob' |
| | | }).then(res=>{ |
| | | |
| | | const blob = new Blob([res]) |
| | | var reader = new window.FileReader(); |
| | | reader.readAsDataURL(blob); |
| | | reader.onloadend = function () { |
| | | console.log(reader.result) |
| | | that.ill.negative= reader.result |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | |
| | | // 查询社区 |
| | | getCommityList() { |
| | | this.$axios({ |