修改文件夹位置

This commit is contained in:
GGJ
2024-01-22 20:24:50 +08:00
parent 4f285a61e5
commit f2384c86cd
16 changed files with 777 additions and 20 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)
@@ -56,6 +56,7 @@ const GetEchar = async (name: string) => {
backgroundColor: 'rgba(0,0,0,0.35)',
...(props.options.tooltip || null)
},
legend: {
orient: 'vertical',
left: 26,
@@ -65,6 +66,7 @@ const GetEchar = async (name: string) => {
...(props.options.legend || null)
},
color: [
...(props.options.color || ''),
'#07CCCA ',
@@ -78,6 +80,7 @@ const GetEchar = async (name: string) => {
'#66FFCC',
'#B3B3B3'
],
geo: {
map: name,
zoom: 1.2,
@@ -144,7 +147,9 @@ const GetEchar = async (name: string) => {
},
...props.options.options
}
if (props.options.visualMap) {
option.visualMap = props.options.visualMap
}
myCharts.value.setOption(option)
window.addEventListener('resize', resizeHandler)
@@ -165,8 +170,6 @@ const MapReturn = (name: string) => {
let flag = true
for (let i = 0; i < area.length; i++) {
if (area[i].name == name) {
console.log(11111)
list = area[i]
flag = false
emit('getRegionByRegion', list)