监测点详情 趋势图数据
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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, ""))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user