From 76cd3461b394d2d7f7cea3f55cfe987ec0e2264a Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Mon, 22 Jul 2024 13:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=A6=BB=E7=BA=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=A1=A8=E6=A0=BC=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cs-device-boot/EquipmentDelivery.ts | 9 +++ src/views/govern/device/control/index.vue | 1 + .../control/offLineDataImport/index.vue | 65 +++++++++++++++---- 3 files changed, 61 insertions(+), 14 deletions(-) diff --git a/src/api/cs-device-boot/EquipmentDelivery.ts b/src/api/cs-device-boot/EquipmentDelivery.ts index 51cf051..5a1e858 100644 --- a/src/api/cs-device-boot/EquipmentDelivery.ts +++ b/src/api/cs-device-boot/EquipmentDelivery.ts @@ -34,3 +34,12 @@ export function getRealTimeTableList() { }) } + +//离线数据导入 +export function uploadOffLineDataFile(data: any) { + return createAxios({ + url: '/cs-device-boot/portableOfflLog/importEquipment', + method: 'POST', + data + }) +} diff --git a/src/views/govern/device/control/index.vue b/src/views/govern/device/control/index.vue index 3827080..4839ded 100644 --- a/src/views/govern/device/control/index.vue +++ b/src/views/govern/device/control/index.vue @@ -514,6 +514,7 @@ const handleClick = async (tab?: any) => { //离线数据导入 const offLineDataImportRef = ref() const handleImport = () => { + //设备devId&监测点lineId带入组件 offLineDataImportRef.value && offLineDataImportRef.value.open() } queryByCode('Device_Type').then(res => { diff --git a/src/views/govern/device/control/offLineDataImport/index.vue b/src/views/govern/device/control/offLineDataImport/index.vue index 5e978ab..7f3d212 100644 --- a/src/views/govern/device/control/offLineDataImport/index.vue +++ b/src/views/govern/device/control/offLineDataImport/index.vue @@ -1,11 +1,15 @@