From 6a64086767785543c507d95295af18180f025160 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 17 Jun 2024 17:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E5=BA=9F=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=B8=8A=E4=BC=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/system/upload.js | 40 ++-- sgzb-ui/src/components/ImagePreview/index.vue | 2 - .../src/views/repairTest/repair/upload.vue | 184 +++++++++--------- 3 files changed, 114 insertions(+), 112 deletions(-) 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 @@