From 6892e5f21311a8ea6aa6334180331269245bb18e Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期二, 14 三月 2023 10:27:36 +0800
Subject: [PATCH] 修改图片路径
---
src/views/operate/disposal/casepool/pool/createUser/ill/index.vue | 44 +++++++++++++++++++++++++++++++++++++++-----
1 files changed, 39 insertions(+), 5 deletions(-)
diff --git a/src/views/operate/disposal/casepool/pool/createUser/ill/index.vue b/src/views/operate/disposal/casepool/pool/createUser/ill/index.vue
index 141e9b3..24fbbdc 100644
--- a/src/views/operate/disposal/casepool/pool/createUser/ill/index.vue
+++ b/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({
--
Gitblit v1.8.0