修改污区图
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user