Commit 5dd292ab by liuguorong93

up

parent 1af574de
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<!-- 左下角信息 --> <!-- 左下角信息 -->
<div <div
class="infoClass" class="infoClass"
v-show="showBack && currentInfo && Object.keys(currentInfo).length" v-show="currentInfo && Object.keys(currentInfo).length"
> >
<div class="topClass"> <div class="topClass">
<span class="span01">{{currentInfo.name}}</span> <span class="span01">{{currentInfo.name}}</span>
...@@ -213,6 +213,7 @@ export default { ...@@ -213,6 +213,7 @@ export default {
res.data.rows && res.data.rows &&
res.data.rows.length res.data.rows.length
) { ) {
this.currentInfo = {};
let e = this.provinces[i].key; let e = this.provinces[i].key;
if (e === "china") { if (e === "china") {
this.showBack = false; this.showBack = false;
...@@ -233,10 +234,14 @@ export default { ...@@ -233,10 +234,14 @@ export default {
}); });
this.myChart.on("mouseover", async (param) => { this.myChart.on("mouseover", async (param) => {
if (levelFlag === "2" || levelFlag === "3") { if (levelFlag === "1" || levelFlag === "2" || levelFlag === "3") {
if (this.dataArr && this.dataArr.length) { if (this.dataArr && this.dataArr.length) {
this.dataArr.some((itemArr) => { this.dataArr.some((itemArr) => {
if (param.name.indexOf(itemArr.name) != -1) { if (
itemArr &&
itemArr.name &&
param.name.indexOf(itemArr.name) != -1
) {
this.currentInfo = itemArr; this.currentInfo = itemArr;
return true; 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