修改 有用功率趋势分析页面

This commit is contained in:
GGJ
2025-04-09 10:41:56 +08:00
parent 3d5c73b268
commit 57360ea3a7
7 changed files with 99 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
<template>
<el-dialog v-model="dialogVisible" :title="title" width="1200" draggable>
<vxe-table v-bind="defaultAttribute" ref="vxeRef" height="500px" :data="tableData">
<vxe-table v-bind="defaultAttribute" ref="vxeRef" height="500px" :data="tableData" v-loading="loading">
<vxe-colgroup field="anotherName" title="指标" width="180" />
<!-- <vxe-colgroup field="unit" title="单位" /> -->
<vxe-colgroup title="最小值">
@@ -240,11 +240,12 @@ import { getTargetByTime } from '@/api/harmonic-boot/pollution'
const dialogVisible = ref(false)
const title = ref('')
const anotherName = ref('')
const loading = ref(false)
const tableData: any = ref([])
const open = (row: any) => {
title.value = row.title + ' - ' + row.row.time + ' - 越限详情'
anotherName.value = row.title
console.log('🚀 ~ detailClick ~ row:', row)
loading.value = true
getTargetByTime({
field: row.field,
lineId: row.lineId,
@@ -254,6 +255,7 @@ const open = (row: any) => {
code: row.key == '2' ? '' : row.key == '3' ? '' : row.key == '4' ? '' : row.key //row.key
}).then((res: any) => {
tableData.value = res.data
loading.value = false
})
dialogVisible.value = true
}