看板页面的地图需要展示
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", "dicom-parser": "^1.8.9",
"dicomedit": "^0.1.0", "dicomedit": "^0.1.0",
"echarts": "^6.0.0", "echarts": "^6.0.0",
"echarts-map": "^3.0.1",
"element-ui": "^2.15.14", "element-ui": "^2.15.14",
"exceljs": "^4.4.0", "exceljs": "^4.4.0",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",

View File

@ -3,8 +3,9 @@
</template> </template>
<script> <script>
import * as echarts from 'echarts' 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' import { fontSize } from 'utils/fontsize'
echarts.registerMap('world', worldMap);
export default { export default {
props: { props: {
area: { type: String, default: '' }, area: { type: String, default: '' },
@ -76,68 +77,68 @@ export default {
} }
return res return res
} }
var series = [] var series = [];
;[['Shanghai', BJData]].forEach(function (item, i) { [['Shanghai', BJData]].forEach(function (item, i) {
series.push( series.push(
{ {
type: 'lines', type: 'lines',
zlevel: 1, zlevel: 1,
effect: { effect: {
show: true, show: true,
color: '#fff', color: '#fff',
period: 6, period: 6,
trailLength: 0.7, trailLength: 0.7,
symbolSize: fontSize(0.05) symbolSize: fontSize(0.05)
}, },
lineStyle: { lineStyle: {
normal: { normal: {
width: fontSize(0.03), width: fontSize(0.03),
color: '#9ae5fc', color: '#9ae5fc',
opacity: 0.02, opacity: 0.02,
curveness: -0.2 curveness: -0.2
} }
},
data: convertData(item[1])
}, },
{ data: convertData(item[1])
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 { type: 'effectScatter',
name: dataItem[0].name, coordinateSystem: 'geo',
value: geoCoordMap[dataItem[0].name] 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 = { var option = {
// backgroundColor: '#fff', // backgroundColor: '#fff',
title: { title: {