From 042798c6a7020174961c634788de2c5f572aa89e Mon Sep 17 00:00:00 2001 From: stt Date: Mon, 24 Nov 2025 10:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=8B=E5=8A=BF=E5=AF=B9=E6=AF=94=E8=81=94?= =?UTF-8?q?=E8=B0=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/harmonic-boot/cockpit/cockpit.ts | 9 + .../listOfMainMonitoringPoints/index.vue | 104 ---- .../cockpit/trendComparison/index.vue | 549 +++++++++++------- src/utils/tableStore.ts | 10 +- 4 files changed, 364 insertions(+), 308 deletions(-) diff --git a/src/api/harmonic-boot/cockpit/cockpit.ts b/src/api/harmonic-boot/cockpit/cockpit.ts index 908c83c..1e8d656 100644 --- a/src/api/harmonic-boot/cockpit/cockpit.ts +++ b/src/api/harmonic-boot/cockpit/cockpit.ts @@ -171,3 +171,12 @@ export function getReportUrl(data: any) { }) } +// 查询监测对象电网侧和负载侧监测点指标趋势对比数据 +export function sensitiveUserTrendData(data: any) { + return request({ + url: '/cs-device-boot/csGroup/sensitiveUserTrendData', + method: 'post', + params: data + }) +} + diff --git a/src/components/cockpit/listOfMainMonitoringPoints/index.vue b/src/components/cockpit/listOfMainMonitoringPoints/index.vue index 44d9b61..14451c5 100644 --- a/src/components/cockpit/listOfMainMonitoringPoints/index.vue +++ b/src/components/cockpit/listOfMainMonitoringPoints/index.vue @@ -131,110 +131,6 @@ const initLineList = async () => { const echartList = ref() -// const echartList = ref({ -// title: { -// text: '谐波电压总畸变率越限与功率负荷曲线拟合图' -// }, - -// xAxis: { -// type: 'time', -// axisLabel: { -// formatter: { -// day: '{MM}-{dd}', -// month: '{MM}', -// year: '{yyyy}' -// } -// } -// }, - -// yAxis: [{}, {}], -// grid: { -// left: '10px', -// right: '20px' -// }, -// options: { -// series: [ -// { -// // name: '暂降次数', -// type: 'bar', -// name: '有功功率', -// // data: [ -// // ['2025-10-16 07:00:00', 10], -// // ['2025-10-16 07:15:00', 10], -// // ['2025-10-16 07:30:00', 10], -// // ['2025-10-16 07:45:00', 10], -// // ['2025-10-16 08:00:00', 30], -// // ['2025-10-16 08:15:00', 50], -// // ['2025-10-16 08:30:00', 60], -// // ['2025-10-16 08:45:00', 70], -// // ['2025-10-16 09:00:00', 100], -// // ['2025-10-16 09:15:00', 120], -// // ['2025-10-16 09:30:00', 130], -// // ['2025-10-16 09:45:00', 140], -// // ['2025-10-16 10:00:00', 160], -// // ['2025-10-16 10:15:00', 160], -// // ['2025-10-16 10:30:00', 130], -// // ['2025-10-16 10:45:00', 120], -// // ['2025-10-16 11:00:00', 140], -// // ['2025-10-16 11:15:00', 80], -// // ['2025-10-16 11:30:00', 70], -// // ['2025-10-16 11:45:00', 90], -// // ['2025-10-16 12:00:00', 60], -// // ['2025-10-16 12:15:00', 60], -// // ['2025-10-16 12:30:00', 60], -// // ['2025-10-16 12:45:00', 60] -// // ], -// data:[], -// itemStyle: { -// normal: { -// //这里是颜色 -// color: function (params: any) { -// if (params.value[1] == 0 || params.value[1] == 3.14159) { -// return '#ccc' -// } else { -// return config.layout.elementUiPrimary[0] -// } -// } -// } -// }, -// yAxisIndex: 0 -// }, -// { -// name: '谐波总畸变率', -// type: 'line', -// showSymbol: false, -// smooth: true, -// data: [ -// ['2025-10-16 07:00:00', 0], -// ['2025-10-16 07:15:00', 0], -// ['2025-10-16 07:30:00', 0], -// ['2025-10-16 07:45:00', 0], -// ['2025-10-16 08:00:00', 0], -// ['2025-10-16 08:15:00', 0.1], -// ['2025-10-16 08:30:00', 0.1], -// ['2025-10-16 08:45:00', 0.1], -// ['2025-10-16 09:00:00', 1], -// ['2025-10-16 09:15:00', 1], -// ['2025-10-16 09:30:00', 1], -// ['2025-10-16 09:45:00', 1], -// ['2025-10-16 10:00:00', 0.8], -// ['2025-10-16 10:15:00', 0.8], -// ['2025-10-16 10:30:00', 0.8], -// ['2025-10-16 10:45:00', 0.8], -// ['2025-10-16 11:00:00', 0.8], -// ['2025-10-16 11:15:00', 0.1], -// ['2025-10-16 11:30:00', 0.1], -// ['2025-10-16 11:45:00', 0.1], -// ['2025-10-16 12:00:00', 0], -// ['2025-10-16 12:15:00', 0], -// ['2025-10-16 12:30:00', 0], -// ['2025-10-16 12:45:00', 0] -// ], -// yAxisIndex: 1 -// } -// ] -// } -// }) const headerHeight = ref(57) const selectChange = (showSelect: any, height: any, datePickerValue?: any) => { headerHeight.value = height diff --git a/src/components/cockpit/trendComparison/index.vue b/src/components/cockpit/trendComparison/index.vue index 76301ef..ef84769 100644 --- a/src/components/cockpit/trendComparison/index.vue +++ b/src/components/cockpit/trendComparison/index.vue @@ -1,77 +1,88 @@ diff --git a/src/utils/tableStore.ts b/src/utils/tableStore.ts index 60e7414..7ab340c 100644 --- a/src/utils/tableStore.ts +++ b/src/utils/tableStore.ts @@ -52,7 +52,7 @@ export default class TableStore { beforeSearchFun: null, height: '', publicHeight: 0, - filename: '', + filename: '' }) constructor(public options: TableStoreParams) { @@ -98,10 +98,14 @@ export default class TableStore { this.table.data = [] this.table.total = 0 } - this.table.copyData = filtration(this.table.data) + // 只有当 this.table.data 是数组时才执行 filtration 处理 + if (Array.isArray(this.table.data)) { + this.table.copyData = filtration(this.table.data) + } if (Array.isArray(res)) { this.table.data = res } + if (this.isWebPaging) { this.table.webPagingData = window.XEUtils.chunk(this.table.data, this.table.params.pageSize) this.table.data = this.table.webPagingData[this.table.params.pageNum - 1] @@ -109,7 +113,6 @@ export default class TableStore { this.table.loadCallback && this.table.loadCallback() this.table.loading = false - }) .catch(() => { this.table.loading = false @@ -145,7 +148,6 @@ export default class TableStore { 'selection-change', () => { this.table.selection = data as TableRow[] - } ], [