修改冀北现场问题
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</div>
|
||||
<div class="pie">
|
||||
<!-- <MyEChart style="height: 260px" :options="picEChart" /> -->
|
||||
<MyEChart style="height: 260px; width: 50%" :options="picEChart" />
|
||||
<MyEChart style="height: 260px; width: 50%" :options="picEChart" @echartClick="echartClick" />
|
||||
<el-table size="small" height="260px" style="width: 50%" :data="picList">
|
||||
<el-table-column prop="orgName" width="90px" align="center">
|
||||
<template #default="scope">
|
||||
@@ -75,10 +75,12 @@ const picList: any = ref([])
|
||||
const Voltage = dictData.getBasicData('Dev_Voltage_Stand')
|
||||
const tableData: any = ref([])
|
||||
const options = dictData.getBasicData('Statistical_Type', ['Report_Type', 'Power_Network', 'JB_Power_Flag'])
|
||||
console.log("🚀 ~ options:", options)
|
||||
const time = ref('1')
|
||||
const statisticalType = ref('Load_Type')
|
||||
const loadTypeArr = dictData.getBasicData('Interference_Source')
|
||||
|
||||
import { useRouter } from 'vue-router'
|
||||
const router = useRouter()
|
||||
const rowList: any = ref({})
|
||||
const trendEChart: any = ref()
|
||||
|
||||
@@ -236,6 +238,18 @@ const handleClose = () => {
|
||||
tableData.value = []
|
||||
dialogVisible.value = false
|
||||
}
|
||||
const echartClick = (params: any) => {
|
||||
console.log('🚀 ~ echartClick ~ params:', params.name.split('(')[0])
|
||||
router.push({
|
||||
name: 'Supervision/Terminaldetection',
|
||||
query: {
|
||||
type: 'lodType',
|
||||
name: params.name.split('(')[0],
|
||||
statisticalType:statisticalType.value,
|
||||
t: Date.now()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
defineExpose({ open })
|
||||
</script>
|
||||
|
||||
@@ -61,7 +61,7 @@ const open = (data: any) => {
|
||||
loading.value = true
|
||||
show.value = true
|
||||
setTimeout(() => {
|
||||
dataList.value = data
|
||||
dataList.value = data.sort((a, b) => b.vharmonicbootValue - a.vharmonicbootValue)
|
||||
loading.value = false
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user