From 73a078c8411ac6807f0f6cbdb3663d3be716955f Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Wed, 4 Aug 2021 14:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E6=9D=83=E8=B0=83=E6=9F=A5=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/authenticRight/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/authenticRight/index.vue b/src/views/authenticRight/index.vue index 41a8914b..ee2b608d 100644 --- a/src/views/authenticRight/index.vue +++ b/src/views/authenticRight/index.vue @@ -490,6 +490,7 @@ import {Dialog} from "vant"; import {getInfo} from "@/api/login/index"; import {getNowFormatDate} from "../../utils/utils"; + import request from '@/utils/request' export default { name: "authenticRightApply", @@ -724,7 +725,8 @@ const data2 = new FormData(); data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'})); uploadFileBase(data2).then(res => { - this.xcdcform.fileUrl1=res.url + this.xcdcform.fileUrl1=res.fileName + console.log(res) }) } }, @@ -757,7 +759,7 @@ const data2 = new FormData(); data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'})); uploadFileBase(data2).then(res => { - this.xcdcform.fileUrl2=res.url + this.xcdcform.fileUrl2=res.fileName }) } }, @@ -1028,6 +1030,7 @@ getInvestigate(data.id).then(res => { if(res.data){ this.xcdcform = res.data + console.log(res.data) if(this.xcdcform.fileUrl1){ this.fileList1.push({ "url":this.xcdcform.fileUrl1 @@ -1129,7 +1132,8 @@ i++ } this.xcdcform["lackCount"] = i - console.log(this.xcdcform) + this.xcdcform.fileUrl1 = location.protocol+"//"+location.host+request.defaults.baseURL+ this.xcdcform.fileUrl1 + this.xcdcform.fileUrl2 = location.protocol+"//"+location.host+request.defaults.baseURL+ this.xcdcform.fileUrl2 if(this.xcdcform.id){ updateInvestigate(this.xcdcform).then(res => { this.showXCDC = false