Files
admin-sjzx/src/views/pqs/qualityInspeection/panorama/components/city/statistics.vue

45 lines
1.7 KiB
Vue
Raw Normal View History

2024-04-29 16:37:07 +08:00
<template>
<!-- 综合评估详情 -->
2024-05-16 14:56:04 +08:00
<el-dialog draggable title="指标合格率统计" v-model="dialogVisible" width="1400px">
2024-04-29 16:37:07 +08:00
<div>
<vxe-table v-bind="defaultAttribute" ref="vxeRef" height="600px" :data="tableData">
<vxe-column field="substationName" title="变电站名称" />
<vxe-column field="lineName" title="监测点名称" />
<vxe-colgroup title="各指标合格率">
<vxe-column field="freqDev" title=" 频率偏差" :formatter="formatter" />
<vxe-column field="plt" title="闪变" :formatter="formatter" />
<vxe-column field="ubalance" title="三相电压不平衡度" :formatter="formatter" />
<vxe-column field="vdev" title="电压偏差" :formatter="formatter" />
<vxe-column field="vthd" title="电压总谐波畸变率" :formatter="formatter" />
</vxe-colgroup>
</vxe-table>
</div>
</el-dialog>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import MyEChart from '@/components/echarts/MyEchart.vue'
import { defaultAttribute } from '@/components/table/defaultAttribute'
import { qualifiedDetail } from '@/api/device-boot/panorama'
const dialogVisible: any = ref(false)
const tableData: any = ref([])
const open = async (row: any) => {
qualifiedDetail(row).then(res => {
tableData.value = res.data
})
dialogVisible.value = true
}
const formatter = (row: any) => {
if (row.cellValue == 3.14159) {
return '/'
} else {
return row.cellValue
}
}
defineExpose({ open })
</script>
<style lang="scss" scoped></style>