监测点详情 趋势图数据

This commit is contained in:
stt
2025-11-13 08:49:44 +08:00
parent 384ea90acd
commit 078488a842
6 changed files with 1389 additions and 440 deletions

View File

@@ -23,7 +23,7 @@
<Table ref="tableRef" @cell-click="cellClickEvent" isGroup :height="height"></Table>
</el-dialog>
<!-- 谐波电流谐波电压占有率 -->
<HarmonicRatio ref="harmonicRatioRef" @close="onHarmonicRatioClose" />
<HarmonicRatio ref="harmonicRatioRef" @close="onHarmonicRatioClose" :TrendList="TrendList" />
</div>
</template>
<script setup lang="ts">
@@ -41,6 +41,7 @@ const harmonicRatioRef: any = ref(null)
const options = ref()
const height = mainHeight(0, 2).height as any
const tableHeaderRef = ref()
const TrendList = ref([{lineType:1}])
const loop50 = (key: string) => {
let list: any[] = []
for (let i = 2; i < 26; i++) {
@@ -102,17 +103,29 @@ const tableStore: any = new TableStore({
{
title: '三相不平衡度越限(分钟)',
field: 'ubalanceOvertime',
width: '100'
width: '100',
render: 'customTemplate',
customTemplate: (row: any) => {
return `<span style='cursor: pointer;text-decoration: underline;'>${row.ubalanceOvertime}</span>`
}
},
{
title: '电压偏差越限(分钟)',
field: 'uaberranceOvertime',
width: '100'
width: '100',
render: 'customTemplate',
customTemplate: (row: any) => {
return `<span style='cursor: pointer;text-decoration: underline;'>${row.uaberranceOvertime}</span>`
}
},
{
title: '频率偏差越限(分钟)',
field: 'freqDevOvertime',
width: '100'
width: '100',
render: 'customTemplate',
customTemplate: (row: any) => {
return `<span style='cursor: pointer;text-decoration: underline;'>${row.freqDevOvertime}</span>`
}
}
],
beforeSearchFun: () => {
@@ -143,10 +156,11 @@ const open = async (row: any,searchBeginTime:any,searchEndTime:any) => {
const cellClickEvent = ({ row, column }: any) => {
if (column.field != 'name' && column.field != 'time') {
dialogVisible.value = false
if(column.title && column.title=='闪变越限(分钟)'){
column.title = '1次'
}
harmonicRatioRef.value.openDialog(row,column.title.replace(/次/g, ""))
// if(column.title && column.title=='闪变越限(分钟)'){
// column.title = '1次'
// }
// harmonicRatioRef.value.openDialog(row,column.title.replace(/次/g, ""))
harmonicRatioRef.value.openDialog(row,column.field,column.title.replace(/次/g, ""))
}
}