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() + // }); }, }); }