Commit 5dd292ab by liuguorong93

up

parent 1af574de
......@@ -20,7 +20,7 @@
<!-- 左下角信息 -->
<div
class="infoClass"
v-show="showBack && currentInfo && Object.keys(currentInfo).length"
v-show="currentInfo && Object.keys(currentInfo).length"
>
<div class="topClass">
<span class="span01">{{currentInfo.name}}</span>
......@@ -213,6 +213,7 @@ export default {
res.data.rows &&
res.data.rows.length
) {
this.currentInfo = {};
let e = this.provinces[i].key;
if (e === "china") {
this.showBack = false;
......@@ -233,10 +234,14 @@ export default {
});
this.myChart.on("mouseover", async (param) => {
if (levelFlag === "2" || levelFlag === "3") {
if (levelFlag === "1" || levelFlag === "2" || levelFlag === "3") {
if (this.dataArr && this.dataArr.length) {
this.dataArr.some((itemArr) => {
if (param.name.indexOf(itemArr.name) != -1) {
if (
itemArr &&
itemArr.name &&
param.name.indexOf(itemArr.name) != -1
) {
this.currentInfo = itemArr;
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment