From 20577811449ae79e28fc787d551692619152d92a Mon Sep 17 00:00:00 2001 From: bjang03 Date: Mon, 13 May 2024 09:40:29 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/upload.ts | 11 ----------- src/components/search/index.vue | 2 +- src/pages/deviceReport/addForm.vue | 25 ++++++++++++------------- 3 files changed, 13 insertions(+), 25 deletions(-) delete mode 100644 src/api/upload.ts diff --git a/src/api/upload.ts b/src/api/upload.ts deleted file mode 100644 index b56ba91..0000000 --- a/src/api/upload.ts +++ /dev/null @@ -1,11 +0,0 @@ -import upload from '@/api/uploadHttp' -// import request from '@/utils/request' -// 上传 -export function uploadFile(data) { - return upload({ - url: '/infra/file/upload', - method: 'post', - filePath:data.filePath, - name: data.name - }) -} \ No newline at end of file diff --git a/src/components/search/index.vue b/src/components/search/index.vue index c9239e9..e10fe47 100644 --- a/src/components/search/index.vue +++ b/src/components/search/index.vue @@ -16,7 +16,7 @@ - + 筛选 diff --git a/src/pages/deviceReport/addForm.vue b/src/pages/deviceReport/addForm.vue index 14e3205..cb3c2eb 100644 --- a/src/pages/deviceReport/addForm.vue +++ b/src/pages/deviceReport/addForm.vue @@ -73,7 +73,6 @@ import * as deviceApi from "@/api/device.js" import * as moldApi from "@/api/mold.js" import * as dictApi from "@/api/dict.js" - import * as uploadApi from "@/api/upload.js" import * as deptApi from "@/api/dept.js" const { proxy } = getCurrentInstance() const loading = ref(false) @@ -278,18 +277,18 @@ success: (res) => { let filePath = res.tempFilePaths[0] proxy.$modal.loading() - uploadApi.uploadFile({ - filePath: filePath, - name: 'file', - formData: { - 'user': 'test' - }, - }).then(ret => { - proxy.$modal.closeLoading() - imgList.value.push(ret.data) - }).catch((err) => { - proxy.$modal.closeLoading() - }); + // uploadApi.uploadFile({ + // filePath: filePath, + // name: 'file', + // formData: { + // 'user': 'test' + // }, + // }).then(ret => { + // proxy.$modal.closeLoading() + // imgList.value.push(ret.data) + // }).catch((err) => { + // proxy.$modal.closeLoading() + // }); }, }); }