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 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 指标对比分析
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name.includes('次数') ? item.name : item.name + '谐波次数' }}
+
+
+
+
+
+
+
+
+ 查询
+
+ 缺失数据
+
+
+
+
+
+
+
+
-
-
+
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]
+ )
}
}