odc.xiaohui
2023-03-14 6892e5f21311a8ea6aa6334180331269245bb18e
修改图片路径
1个文件已修改
44 ■■■■ 已修改文件
src/views/operate/disposal/casepool/pool/createUser/ill/index.vue 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/disposal/casepool/pool/createUser/ill/index.vue
@@ -439,17 +439,51 @@
            }
        },
        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({