修改污区图

This commit is contained in:
GGJ
2025-04-29 14:31:25 +08:00
parent 4aac705a72
commit 1018de896e
3 changed files with 108 additions and 45 deletions

View File

@@ -16,7 +16,7 @@
<template #default="scope">
<span v-if="scope.row.data == 3.14159" type="primary" size="small">暂无数据</span>
<span v-else type="primary" size="small">
{{ scope.row.data }}
{{ parseFloat(scope.row.data.toFixed(2)) }}
</span>
</template>
</vxe-column>
@@ -77,13 +77,14 @@ const title = ref('')
const key = ref(0)
const statisticalName = ref('')
const open = (row: any, flag: boolean, params: any) => {
console.log("🚀 ~ open ~ row:", row)
voltageLevelFlag.value = flag
loading.value = true
title.value = row.name + '详情'
statisticalName.value = params.statisticalType.name + '(%)'
tableData.value = []
if (flag) {
getLineInfoById({ ...params, deptIndex: row.pid, id: row.id }).then((res: any) => {
getLineInfoById({ ...params, deptIndex: row.pid, id: row.id ,powerFlag: row.powerFlag }).then((res: any) => {
tableData.value = res.data
loading.value = false
}).catch(() => {