|
@@ -1,12 +1,12 @@
|
|
<template>
|
|
<template>
|
|
- <div class="map">
|
|
|
|
|
|
+ <div class="h-full">
|
|
<div class="flex align-middle">
|
|
<div class="flex align-middle">
|
|
<el-date-picker v-model="year" type="year" placeholder="选择年">
|
|
<el-date-picker v-model="year" type="year" placeholder="选择年">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
<el-button type="primary" style="margin-left: 4px">导出</el-button>
|
|
<el-button type="primary" style="margin-left: 4px">导出</el-button>
|
|
<el-button @click="back" type="text">返回></el-button>
|
|
<el-button @click="back" type="text">返回></el-button>
|
|
</div>
|
|
</div>
|
|
- <div id="hy-map" style="width: 100%; height: 550px"></div>
|
|
|
|
|
|
+ <div id="hy-map" style="width: 100%; height: 80%"></div>
|
|
<div class="item-container">
|
|
<div class="item-container">
|
|
<div class="item" v-for="(ite, i) in itemData" :key="i">
|
|
<div class="item" v-for="(ite, i) in itemData" :key="i">
|
|
<div class="val">121</div>
|
|
<div class="val">121</div>
|
|
@@ -82,76 +82,76 @@ export default {
|
|
// color: ["#A5DCF4", "#006edd"],
|
|
// color: ["#A5DCF4", "#006edd"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- geo: [
|
|
|
|
- {
|
|
|
|
- map: "js",
|
|
|
|
- roam: false, //是否允许缩放
|
|
|
|
- zoom: 1.1, //默认显示级别
|
|
|
|
- scaleLimit: {
|
|
|
|
- min: 0,
|
|
|
|
- max: 3,
|
|
|
|
- }, //缩放级别
|
|
|
|
- itemStyle: {
|
|
|
|
- normal: {
|
|
|
|
- areaColor: "transparent",
|
|
|
|
- borderColor: "#3fdaff",
|
|
|
|
- borderWidth: 2,
|
|
|
|
- shadowColor: "rgba(63, 218, 255, 0.5)",
|
|
|
|
- shadowBlur: 30,
|
|
|
|
- },
|
|
|
|
- emphasis: {
|
|
|
|
- areaColor: "#2B91B7",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- tooltip: {
|
|
|
|
- show: false,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ // geo: [
|
|
|
|
+ // {
|
|
|
|
+ // map: "js",
|
|
|
|
+ // roam: false, //是否允许缩放
|
|
|
|
+ // zoom: 1.1, //默认显示级别
|
|
|
|
+ // scaleLimit: {
|
|
|
|
+ // min: 0,
|
|
|
|
+ // max: 3,
|
|
|
|
+ // }, //缩放级别
|
|
|
|
+ // itemStyle: {
|
|
|
|
+ // normal: {
|
|
|
|
+ // areaColor: "transparent",
|
|
|
|
+ // borderColor: "#3fdaff",
|
|
|
|
+ // borderWidth: 2,
|
|
|
|
+ // shadowColor: "rgba(63, 218, 255, 0.5)",
|
|
|
|
+ // shadowBlur: 30,
|
|
|
|
+ // },
|
|
|
|
+ // emphasis: {
|
|
|
|
+ // areaColor: "#2B91B7",
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
+ // tooltip: {
|
|
|
|
+ // show: false,
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
series: [
|
|
series: [
|
|
- {
|
|
|
|
- type: "effectScatter",
|
|
|
|
- coordinateSystem: "geo",
|
|
|
|
- z: 5,
|
|
|
|
- data: [],
|
|
|
|
- symbolSize: 14,
|
|
|
|
- label: {
|
|
|
|
- normal: {
|
|
|
|
- show: true,
|
|
|
|
- formatter: function (params) {
|
|
|
|
- return (
|
|
|
|
- "{fline|地点:" +
|
|
|
|
- params.data.city +
|
|
|
|
- "}\n{tline|" +
|
|
|
|
- (params.data.info || "发生xx集件") +
|
|
|
|
- "}"
|
|
|
|
- );
|
|
|
|
- },
|
|
|
|
- position: "top",
|
|
|
|
- backgroundColor: "rgba(233,63,66,.9)",
|
|
|
|
- padding: [0, 0],
|
|
|
|
- borderRadius: 3,
|
|
|
|
- lineHeight: 32,
|
|
|
|
- color: "#ffffff",
|
|
|
|
- rich: {
|
|
|
|
- fline: {
|
|
|
|
- padding: [0, 10, 10, 10],
|
|
|
|
- color: "#ffffff",
|
|
|
|
- },
|
|
|
|
- tline: {
|
|
|
|
- padding: [10, 10, 0, 10],
|
|
|
|
- color: "#ffffff",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- emphasis: {
|
|
|
|
- show: true,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- itemStyle: {
|
|
|
|
- color: "#e93f42",
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // type: "effectScatter",
|
|
|
|
+ // coordinateSystem: "geo",
|
|
|
|
+ // z: 5,
|
|
|
|
+ // data: [],
|
|
|
|
+ // symbolSize: 14,
|
|
|
|
+ // label: {
|
|
|
|
+ // normal: {
|
|
|
|
+ // show: true,
|
|
|
|
+ // formatter: function (params) {
|
|
|
|
+ // return (
|
|
|
|
+ // "{fline|地点:" +
|
|
|
|
+ // params.data.city +
|
|
|
|
+ // "}\n{tline|" +
|
|
|
|
+ // (params.data.info || "发生xx集件") +
|
|
|
|
+ // "}"
|
|
|
|
+ // );
|
|
|
|
+ // },
|
|
|
|
+ // position: "top",
|
|
|
|
+ // backgroundColor: "rgba(233,63,66,.9)",
|
|
|
|
+ // padding: [0, 0],
|
|
|
|
+ // borderRadius: 3,
|
|
|
|
+ // lineHeight: 32,
|
|
|
|
+ // color: "#ffffff",
|
|
|
|
+ // rich: {
|
|
|
|
+ // fline: {
|
|
|
|
+ // padding: [0, 10, 10, 10],
|
|
|
|
+ // color: "#ffffff",
|
|
|
|
+ // },
|
|
|
|
+ // tline: {
|
|
|
|
+ // padding: [10, 10, 0, 10],
|
|
|
|
+ // color: "#ffffff",
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
+ // emphasis: {
|
|
|
|
+ // show: true,
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
+ // itemStyle: {
|
|
|
|
+ // color: "#fff",
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
|
|
//地图
|
|
//地图
|
|
{
|
|
{
|
|
@@ -167,6 +167,12 @@ export default {
|
|
show: false,
|
|
show: false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ select: {
|
|
|
|
+ itemStyle: {
|
|
|
|
+ // color: "#fff", // 设置地图点击后的颜色
|
|
|
|
+ areaColor: "#304156",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
borderColor: "#2980b9",
|
|
borderColor: "#2980b9",
|