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 @@