From 44684c99ed1f7d1323f3ad02e4e72a55b7ea5f97 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Wed, 31 Jul 2024 10:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=95=B0=E6=8D=AE-=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E8=B6=8B=E5=8A=BF=E9=A1=B5=E9=9D=A2=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cs-device-boot/EquipmentDelivery.ts | 52 +- src/views/govern/device/control/index.vue | 43 +- .../tabs/components/harmonicSpectrum.vue | 77 ++- .../control/tabs/components/realtrend.vue | 464 ++++++++++++------ .../tabs/components/waveFormAnalysis.vue | 187 ++++--- .../govern/device/control/tabs/event.vue | 38 +- .../govern/device/control/tabs/realtime.vue | 163 +++--- .../govern/device/control/tabs/trend.vue | 12 +- .../govern/reportCore/statistics/index.vue | 2 +- 9 files changed, 658 insertions(+), 380 deletions(-) diff --git a/src/api/cs-device-boot/EquipmentDelivery.ts b/src/api/cs-device-boot/EquipmentDelivery.ts index 463e7e5..4b585bc 100644 --- a/src/api/cs-device-boot/EquipmentDelivery.ts +++ b/src/api/cs-device-boot/EquipmentDelivery.ts @@ -25,24 +25,56 @@ export function getTabsDataByType(data: any) { }) } - //获取实时数据列表数据 export function getRealTimeTableList() { + return createAxios({ + url: '/cs-device-boot/csGroup/getGroupPortableStatistical', + method: 'GET' + }) +} + +//离线数据导入 +export function uploadOffLineDataFile(data: any) { + return createAxios({ + headers: { + 'Content-Type': 'multipart/form-data' + }, + url: '/cs-device-boot/portableOfflLog/importEquipment', + method: 'POST', + data + }) +} + +//查询实时数据中实时趋势中指标分组 +export function getDeviceTrendDataGroup() { + return createAxios({ + url: '/cs-device-boot/csGroup/getDeviceTrendDataGroup', + method: 'GET', + }) +} + +//根据指标分组查询实时数据中实时趋势 +export function getDeviceTrendData(query: any) { + return createAxios({ + url: '/cs-device-boot/csGroup/getDeviceTrendData', + method: 'GET', + params: query + }) +} + +//查询实时数据-谐波频谱-稳态指标 +export function getGroupPortableStatistical() { return createAxios({ url: '/cs-device-boot/csGroup/getGroupPortableStatistical', method: 'GET', }) } - -//离线数据导入 -export function uploadOffLineDataFile(data: any) { +//查询实时数据-谐波频谱 +export function getDeviceHarmonicSpectrumData(data: any) { return createAxios({ - headers: { - 'Content-Type': 'multipart/form-data', - }, - url: '/cs-device-boot/portableOfflLog/importEquipment', + url: '/cs-device-boot/csGroup/getDeviceHarmonicSpectrumData', method: 'POST', - data, + data:data }) -} +} \ No newline at end of file diff --git a/src/views/govern/device/control/index.vue b/src/views/govern/device/control/index.vue index b55aed1..0d9d124 100644 --- a/src/views/govern/device/control/index.vue +++ b/src/views/govern/device/control/index.vue @@ -207,9 +207,9 @@