|
@@ -103,12 +103,15 @@ export default {
|
|
|
|
|
|
this.addSetTime(this.getData, 10 * 1000);
|
|
this.addSetTime(this.getData, 10 * 1000);
|
|
},
|
|
},
|
|
|
|
+ transformAreaName(name) {
|
|
|
|
+ return name.replace("省", "").replace("市", "");
|
|
|
|
+ },
|
|
getInviMapOption(dataList) {
|
|
getInviMapOption(dataList) {
|
|
// if (!dataList.length) return;
|
|
// if (!dataList.length) return;
|
|
|
|
|
|
let countData = dataList.map((item) => {
|
|
let countData = dataList.map((item) => {
|
|
return {
|
|
return {
|
|
- name: item.province,
|
|
|
|
|
|
+ name: this.transformAreaName(item.province),
|
|
...item,
|
|
...item,
|
|
itemStyle: {
|
|
itemStyle: {
|
|
areaColor: "rgba(45, 153, 255, 0.5)",
|
|
areaColor: "rgba(45, 153, 255, 0.5)",
|
|
@@ -141,7 +144,7 @@ export default {
|
|
},
|
|
},
|
|
backgroundColor: "rgba(63,67,87,0.9)",
|
|
backgroundColor: "rgba(63,67,87,0.9)",
|
|
padding: 10,
|
|
padding: 10,
|
|
- triggerOn: "click",
|
|
|
|
|
|
+ // triggerOn: "click",
|
|
textStyle: {
|
|
textStyle: {
|
|
fontSize: 12,
|
|
fontSize: 12,
|
|
color: "#E1E6EF",
|
|
color: "#E1E6EF",
|