|
|
@@ -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 |
|
|
|