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" /> - + /> --> +
+
+ 点击上传 +
+ + + + 点击上传 + + -