完成 电能质量问题管理页面 修改 谐波普测管理页面

This commit is contained in:
GGJ
2024-04-10 20:33:20 +08:00
parent 926112d2a7
commit 071ee4d2b5
23 changed files with 1242 additions and 524 deletions

View File

@@ -10,7 +10,7 @@
import { onBeforeUnmount, ref, watch, onMounted, defineEmits } from 'vue'
import * as echarts from 'echarts4'
import { useDictData } from '@/stores/dictData'
const dictData = useDictData()
const dictData = useDictData()
const props = defineProps(['options'])
const myCharts = ref()
const showCircle = ref(false)
@@ -29,7 +29,8 @@ const GetEchar = async (name: string) => {
let chartDom = document.getElementById('chartMap')
myCharts.value?.dispose()
myCharts.value = echarts.init(chartDom)
name == '中国' ? (showCircle.value = false) : (showCircle.value = true)
name == dictData.state.area?.[0].name ? (showCircle.value = false) : (showCircle.value = true)
echarts.registerMap(name, await fetchConfig(name)) //注册可用的地图
let option = {
@@ -156,7 +157,8 @@ const GetEchar = async (name: string) => {
// 点击事件
myCharts.value.off('click')
myCharts.value.on('click', (e: any) => {
if (name == '中国' && e.componentIndex == 0) {
// if (name == dictData.state.area?.[0].name && e.componentIndex == 0) {
if (name == '中国' && e.componentIndex == 0) {
MapReturn(e.name)
// console.log('🚀 ~ file: MyEchartMap.vue:156 ~ myCharts.value.on ~ MapReturn(e.name):', MapReturn(e.name))

View File

@@ -31,7 +31,7 @@
ref='treeRef'
:props='defaultProps'
highlight-current
default-expand-all
:filter-node-method='filterNode'
node-key='id'
v-bind='$attrs'