From 078488a842bc1bac925010081e2197211d3bc035 Mon Sep 17 00:00:00 2001 From: stt Date: Thu, 13 Nov 2025 08:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=B5=8B=E7=82=B9=E8=AF=A6=E6=83=85?= =?UTF-8?q?=20=E8=B6=8B=E5=8A=BF=E5=9B=BE=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/harmonic-boot/cockpit/cockpit.ts | 32 +- .../components/harmonicRatio‌.vue | 1089 +++++++++++------ .../components/overLimitDetails.vue | 30 +- .../components/harmonicRatio‌.vue | 449 +++++++ .../components/overLimitDetails.vue | 185 +++ .../cockpit/overLimitStatistics/index.vue | 44 +- 6 files changed, 1389 insertions(+), 440 deletions(-) create mode 100644 src/components/cockpit/overLimitStatistics/components/harmonicRatio‌.vue create mode 100644 src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue diff --git a/src/api/harmonic-boot/cockpit/cockpit.ts b/src/api/harmonic-boot/cockpit/cockpit.ts index 3b8c0b6..b376d2a 100644 --- a/src/api/harmonic-boot/cockpit/cockpit.ts +++ b/src/api/harmonic-boot/cockpit/cockpit.ts @@ -24,4 +24,34 @@ export function cslineList(data: any) { method: 'post', data: data }) -} \ No newline at end of file +} + +// 监测点详情 趋势图数据 +export function trendData(data: any) { + return request({ + url: '/cs-device-boot/csGroup/trendData', + method: 'post', + data: data + }) +} + +// 每日越限占比统计 +export function totalLimitStatisticsDetails(data: any) { + return request({ + url: '/harmonic-boot/totalLimitStatistics/details', + method: 'post', + data: data + }) +} + +// 总体指标越限统计列表 +export function totalLimitStatisticsList(data: any) { + return request({ + url: '/harmonic-boot/totalLimitStatistics/list', + method: 'post', + data: data + }) +} + + + diff --git a/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue b/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue index ab7c15a..375c9be 100644 --- a/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue +++ b/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue @@ -1,430 +1,709 @@ - - + diff --git a/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue b/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue index 3bdf5a0..74ecb38 100644 --- a/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue +++ b/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue @@ -23,7 +23,7 @@
- + + diff --git a/src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue b/src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue new file mode 100644 index 0000000..c899911 --- /dev/null +++ b/src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue @@ -0,0 +1,185 @@ + + + diff --git a/src/components/cockpit/overLimitStatistics/index.vue b/src/components/cockpit/overLimitStatistics/index.vue index f41aacb..9df1657 100644 --- a/src/components/cockpit/overLimitStatistics/index.vue +++ b/src/components/cockpit/overLimitStatistics/index.vue @@ -27,7 +27,7 @@ import Table from '@/components/table/index.vue' import TableHeader from '@/components/table/header/index.vue' import MyEchart from '@/components/echarts/MyEchart.vue' import { getTimeOfTheMonth } from '@/utils/formatTime' -import OverLimitDetails from '@/components/cockpit/listOfMainMonitoringPoints/components/overLimitDetails.vue' +import OverLimitDetails from '@/components/cockpit/overLimitStatistics/components/overLimitDetails.vue' import { useRoute } from 'vue-router' import { useTimeCacheStore } from '@/stores/timeCache' @@ -109,7 +109,7 @@ const echartList = ref({ }) const OverLimitDetailsRef = ref() const tableStore: any = new TableStore({ - url: '/user-boot/dept/deptTree', + url: '/harmonic-boot/totalLimitStatistics/list', method: 'POST', showPage: false, @@ -125,7 +125,7 @@ const tableStore: any = new TableStore({ }, { title: '名称', - field: 'name', + field: 'lineName', minWidth: '90' }, { @@ -133,47 +133,47 @@ const tableStore: any = new TableStore({ children: [ { title: '闪变', - field: 'type', + field: 'flicker', minWidth: '70', render: 'customTemplate', customTemplate: (row: any) => { - return `${row.type}` + return `${row.flicker}` } }, { title: '谐波电压', - field: 'type1', + field: 'uharm', minWidth: '80', render: 'customTemplate', customTemplate: (row: any) => { - return `${row.type1}` + return `${row.uharm}` } }, { title: '谐波电流', - field: 'type2', + field: 'iharm', minWidth: '80', render: 'customTemplate', customTemplate: (row: any) => { - return `${row.type2}` + return `${row.iharm}` } }, { title: '电压偏差', - field: 'type3', + field: 'voltageDev', minWidth: '80', render: 'customTemplate', customTemplate: (row: any) => { - return `${row.type3}` + return `${row.voltageDev}` } }, { title: '三相不平衡', - field: 'type4', + field: 'ubalance', minWidth: '90', render: 'customTemplate', customTemplate: (row: any) => { - return `${row.type4}` + return `${row.ubalance}` } } ] @@ -197,17 +197,6 @@ const tableStore: any = new TableStore({ tableStore.table.params.searchEndTime = endTime || prop.timeValue?.[1] || getTimeOfTheMonth(prop.timeKey)[1] }, loadCallback: () => { - tableStore.table.data = [ - { - name: '10kV1#电动机', - type: '0', - type1: '45', - type2: '22', - type3: '0', - type4: '70' - } - ] - tableStore.table.height = `calc(${prop.height} - 80px)` } }) @@ -220,8 +209,11 @@ provide('tableStore', tableStore) // 点击行 const cellClickEvent = ({ row, column }: any) => { if (column.field != 'name') { - console.log(row) - OverLimitDetailsRef.value.open(row) + OverLimitDetailsRef.value.open( + row, + tableStore.table.params.searchBeginTime || prop.timeValue?.[0], + tableStore.table.params.searchEndTime || prop.timeValue?.[1] + ) } }