取值字段修改

This commit is contained in:
stt
2025-11-20 10:59:30 +08:00
parent 36e182a99a
commit da7cb2cb90
3 changed files with 20 additions and 19 deletions

View File

@@ -23,7 +23,7 @@
<Table ref="tableRef" @cell-click="cellClickEvent" isGroup :height="height"></Table> <Table ref="tableRef" @cell-click="cellClickEvent" isGroup :height="height"></Table>
</el-dialog> </el-dialog>
<!-- 谐波电流谐波电压占有率 --> <!-- 谐波电流谐波电压占有率 -->
<HarmonicRatio ref="harmonicRatioRef" @close="onHarmonicRatioClose" :TrendList="TrendList" /> <HarmonicRatio ref="harmonicRatioRef" v-if="dialogFlag" @close="onHarmonicRatioClose" />
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@@ -32,7 +32,7 @@ import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue' import TableHeader from '@/components/table/header/index.vue'
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import { mainHeight } from '@/utils/layout' import { mainHeight } from '@/utils/layout'
import HarmonicRatio from '@/components/cockpit/indicatorFittingChart/components/harmonicRatio.vue' import HarmonicRatio from '@/components/cockpit/gridSideStatistics/components/harmonicRatio.vue'
import { cslineList } from '@/api/harmonic-boot/cockpit/cockpit' import { cslineList } from '@/api/harmonic-boot/cockpit/cockpit'
const dialogVisible: any = ref(false) const dialogVisible: any = ref(false)
@@ -41,7 +41,7 @@ const harmonicRatioRef: any = ref(null)
const options = ref() const options = ref()
const height = mainHeight(0, 2).height as any const height = mainHeight(0, 2).height as any
const tableHeaderRef = ref() const tableHeaderRef = ref()
const TrendList = ref([{lineType:1}]) const dialogFlag = ref(false)
const loop50 = (key: string) => { const loop50 = (key: string) => {
let list: any[] = [] let list: any[] = []
for (let i = 2; i < 26; i++) { for (let i = 2; i < 26; i++) {
@@ -58,11 +58,11 @@ const loop50 = (key: string) => {
return list return list
} }
const tableStore: any = new TableStore({ const tableStore: any = new TableStore({
url: '/harmonic-boot/mainLine/statLimitRateDetails', url: '/harmonic-boot/totalLimitStatistics/details',
method: 'POST', method: 'POST',
publicHeight: 30, publicHeight: 30,
showPage: false, showPage: false,
exportName: '主要监测点列表', exportName: '每日越限占比统计',
column: [ column: [
{ {
field: 'index', field: 'index',
@@ -84,7 +84,7 @@ const tableStore: any = new TableStore({
width: '150' width: '150'
}, },
{ {
title: '闪变越限(分钟)', title: '闪变越限(%)',
field: 'flickerOvertime', field: 'flickerOvertime',
width: '80', width: '80',
render: 'customTemplate', render: 'customTemplate',
@@ -93,15 +93,15 @@ const tableStore: any = new TableStore({
} }
}, },
{ {
title: '谐波电压越限(分钟)', title: '谐波电压越限(%)',
children: loop50('uharm') children: loop50('uharm')
}, },
{ {
title: '谐波电流越限(分钟)', title: '谐波电流越限(%)',
children: loop50('iharm') children: loop50('iharm')
}, },
{ {
title: '三相不平衡度越限(分钟)', title: '三相不平衡度越限(%)',
field: 'ubalanceOvertime', field: 'ubalanceOvertime',
width: '100', width: '100',
render: 'customTemplate', render: 'customTemplate',
@@ -110,8 +110,8 @@ const tableStore: any = new TableStore({
} }
}, },
{ {
title: '电压偏差越限(分钟)', title: '电压偏差越限(%)',
field: 'uaberranceOvertime', field: 'voltageDevOvertime',
width: '100', width: '100',
render: 'customTemplate', render: 'customTemplate',
customTemplate: (row: any) => { customTemplate: (row: any) => {
@@ -119,7 +119,7 @@ const tableStore: any = new TableStore({
} }
}, },
{ {
title: '频率偏差越限(分钟)', title: '频率偏差越限(%)',
field: 'freqDevOvertime', field: 'freqDevOvertime',
width: '100', width: '100',
render: 'customTemplate', render: 'customTemplate',
@@ -155,17 +155,18 @@ const open = async (row: any,searchBeginTime:any,searchEndTime:any) => {
// 点击行 // 点击行
const cellClickEvent = ({ row, column }: any) => { const cellClickEvent = ({ row, column }: any) => {
if (column.field != 'name' && column.field != 'time') { if (column.field != 'name' && column.field != 'time') {
dialogFlag.value = true
dialogVisible.value = false dialogVisible.value = false
// if(column.title && column.title=='闪变越限(分钟)'){ nextTick(() => {
// column.title = '1次' harmonicRatioRef.value.openDialog(row,column.field,column.title.replace(/次/g, ""))
// } })
// harmonicRatioRef.value.openDialog(row,column.title.replace(/次/g, ""))
harmonicRatioRef.value.openDialog(row,column.field,column.title.replace(/次/g, ""))
} }
} }
// 谐波弹窗关闭时的回调 // 谐波弹窗关闭时的回调
const onHarmonicRatioClose = () => { const onHarmonicRatioClose = () => {
dialogFlag.value = false
// 重新打开指标越限详情弹窗 // 重新打开指标越限详情弹窗
nextTick(() => { nextTick(() => {
dialogVisible.value = true dialogVisible.value = true

View File

@@ -1,5 +1,5 @@
<template> <template>
<el-dialog draggable title="谐波电压/电流含有率" v-model="dialogVisible" append-to-body width="70%"> <el-dialog draggable title="趋势图" v-model="dialogVisible" append-to-body width="70%">
<!-- 总体指标占比详情谐波含有率 --> <!-- 总体指标占比详情谐波含有率 -->
<div> <div>
<TableHeader ref="tableHeaderRef" :showSearch="false" @selectChange="selectChange"> <TableHeader ref="tableHeaderRef" :showSearch="false" @selectChange="selectChange">

View File

@@ -111,7 +111,7 @@ const tableStore: any = new TableStore({
}, },
{ {
title: '电压偏差越限(%)', title: '电压偏差越限(%)',
field: 'uaberranceOvertime', field: 'voltageDevOvertime',
width: '100', width: '100',
render: 'customTemplate', render: 'customTemplate',
customTemplate: (row: any) => { customTemplate: (row: any) => {