From 0e27057384bfb081f29562668aeadc2722151898 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sun, 4 Feb 2024 15:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=8F=B0=E8=B4=A6=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/device/deviceAccounts/index.ts | 3 +- src/api/eam/upload/index.ts | 5 + .../Detail/src/DetailDeviceLedger.vue | 185 +++++++++--- src/components/UploadFile/src/UploadImg.vue | 2 +- src/components/UploadFile/src/UploadImgs.vue | 2 +- src/utils/dict.ts | 1 + src/utils/disposition/tabsList.ts | 7 +- .../deviceAccounts/deviceAccounts.data.ts | 35 ++- src/views/eam/device/deviceAccounts/index.vue | 270 +++++++++++++----- .../deviceMaintenanceMain.data.ts | 1 + 10 files changed, 385 insertions(+), 126 deletions(-) create mode 100644 src/api/eam/upload/index.ts diff --git a/src/api/eam/device/deviceAccounts/index.ts b/src/api/eam/device/deviceAccounts/index.ts index ed79b44..3c0ed6e 100644 --- a/src/api/eam/device/deviceAccounts/index.ts +++ b/src/api/eam/device/deviceAccounts/index.ts @@ -62,4 +62,5 @@ export const importTemplate = () => { // 查询设备台账列表 export const getDeviceAccountsNoPage = async (params) => { return await request.get({ url: `/eam/device-accounts/selectData`, params }) -} \ No newline at end of file +} + diff --git a/src/api/eam/upload/index.ts b/src/api/eam/upload/index.ts new file mode 100644 index 0000000..8bf3ee9 --- /dev/null +++ b/src/api/eam/upload/index.ts @@ -0,0 +1,5 @@ +import request from '@/config/axios' +// 上传图片 +export const uploadImage = async (data) => { + return await request.post({ url: `/eam/attachment-file/upload`, data }) +} \ No newline at end of file diff --git a/src/components/Detail/src/DetailDeviceLedger.vue b/src/components/Detail/src/DetailDeviceLedger.vue index 2a13d8a..d475014 100644 --- a/src/components/Detail/src/DetailDeviceLedger.vue +++ b/src/components/Detail/src/DetailDeviceLedger.vue @@ -40,15 +40,40 @@ :allSchemas="detailAllSchemas" /> - + /> --> +
+
+ 点击上传 +
+ + + + 点击上传 + + -