看板页面的地图需要展示
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2026-05-09 14:33:15 +08:00
parent 27a9ccd3c2
commit e6a15e35f6
2 changed files with 62 additions and 60 deletions

View File

@ -39,6 +39,7 @@
"dicom-parser": "^1.8.9",
"dicomedit": "^0.1.0",
"echarts": "^6.0.0",
"echarts-map": "^3.0.1",
"element-ui": "^2.15.14",
"exceljs": "^4.4.0",
"file-saver": "^2.0.5",

View File

@ -3,8 +3,9 @@
</template>
<script>
import * as echarts from 'echarts'
// import 'modules/echarts/map/js/world.js'
import worldMap from 'echarts-map/json/world.json';
import { fontSize } from 'utils/fontsize'
echarts.registerMap('world', worldMap);
export default {
props: {
area: { type: String, default: '' },
@ -76,68 +77,68 @@ export default {
}
return res
}
var series = []
;[['Shanghai', BJData]].forEach(function (item, i) {
series.push(
{
type: 'lines',
zlevel: 1,
effect: {
show: true,
color: '#fff',
period: 6,
trailLength: 0.7,
symbolSize: fontSize(0.05)
},
lineStyle: {
normal: {
width: fontSize(0.03),
color: '#9ae5fc',
opacity: 0.02,
curveness: -0.2
}
},
data: convertData(item[1])
var series = [];
[['Shanghai', BJData]].forEach(function (item, i) {
series.push(
{
type: 'lines',
zlevel: 1,
effect: {
show: true,
color: '#fff',
period: 6,
trailLength: 0.7,
symbolSize: fontSize(0.05)
},
lineStyle: {
normal: {
width: fontSize(0.03),
color: '#9ae5fc',
opacity: 0.02,
curveness: -0.2
}
},
{
type: 'effectScatter',
coordinateSystem: 'geo',
zlevel: 3,
rippleEffect: {
//
period: 5, //
brushType: 'fill', // stroke, fill
scale: 5 //
},
label: {
normal: {
show: true,
color: '#fce630',
position: 'right', //
offset: [10, 0], //
fontSize: fontSize(0.16),
formatter: '{b}' //
},
emphasis: {
show: true
}
},
symbol: 'circle',
symbolSize: function (val) {
return fontSize(0.08) //
},
data: convertData(item[1])
},
data: item[1].map(function (dataItem) {
return {
name: dataItem[0].name,
value: geoCoordMap[dataItem[0].name]
}
})
}
)
})
{
type: 'effectScatter',
coordinateSystem: 'geo',
zlevel: 3,
rippleEffect: {
//
period: 5, //
brushType: 'fill', // stroke, fill
scale: 5 //
},
label: {
normal: {
show: true,
color: '#fce630',
position: 'right', //
offset: [10, 0], //
fontSize: fontSize(0.16),
formatter: '{b}' //
},
emphasis: {
show: true
}
},
symbol: 'circle',
symbolSize: function (val) {
return fontSize(0.08) //
},
data: item[1].map(function (dataItem) {
return {
name: dataItem[0].name,
value: geoCoordMap[dataItem[0].name]
}
})
}
)
})
var option = {
// backgroundColor: '#fff',
title: {