diff --git a/sgzb-ui/src/api/system/upload.js b/sgzb-ui/src/api/system/upload.js index 4560e702..c010fc84 100644 --- a/sgzb-ui/src/api/system/upload.js +++ b/sgzb-ui/src/api/system/upload.js @@ -1,27 +1,27 @@ import request from '@/utils/request' //资源图片上传 -export function imgUpLoad(param){ - const formData = new FormData() - formData.append('file', param.file) - formData.append('fileType', param.type) - return request({ - url: '/system/sys/file/upload', - method: 'post', - data: formData, - header:'multipart/form-data' - }) - } +export function imgUpLoad(param) { + const formData = new FormData() + formData.append('file', param.file) + formData.append('fileType', param.type) + return request({ + url: '/system/sys/file/upload', + method: 'post', + data: formData, + header: 'multipart/form-data' + }) +} //资源文件上传 -export function fileUpLoad(param){ - const formData = new FormData() - formData.append('file', param.file) - return request({ - url: '/system/sys/file/upload', - method: 'post', - data: formData, - }) - } +export function fileUpLoad(param) { + const formData = new FormData() + formData.append('file', param.file) + return request({ + url: '/system/sys/file/upload', + method: 'post', + data: formData, + }) +} diff --git a/sgzb-ui/src/components/ImagePreview/index.vue b/sgzb-ui/src/components/ImagePreview/index.vue index a4909058..b7bc543b 100644 --- a/sgzb-ui/src/components/ImagePreview/index.vue +++ b/sgzb-ui/src/components/ImagePreview/index.vue @@ -34,8 +34,6 @@ export default { return } let real_src = this.src.split(',')[0] - - console.log(this.src, '图片地址--') return real_src }, realSrcList() { diff --git a/sgzb-ui/src/views/repairTest/repair/upload.vue b/sgzb-ui/src/views/repairTest/repair/upload.vue index 9789ef9a..b097245f 100644 --- a/sgzb-ui/src/views/repairTest/repair/upload.vue +++ b/sgzb-ui/src/views/repairTest/repair/upload.vue @@ -1,106 +1,110 @@