|
@@ -5,7 +5,7 @@
|
|
|
v-if="litem.scxstyle == 0"
|
|
|
:class="`echart${litem.dataList.length <= 6 ? '' : '_vertical'}`"
|
|
|
unit="亩"
|
|
|
- @echartClick="(name, iseyes) => echartClick(name, iseyes)"
|
|
|
+ @echartClick="echartClick"
|
|
|
:ref="`echartRef`"
|
|
|
></pie>
|
|
|
<div v-else-if="litem.scxstyle == 1">
|
|
@@ -55,10 +55,11 @@ export default {
|
|
|
this.$refs.echartRef.setOptions({ data, type });
|
|
|
});
|
|
|
},
|
|
|
- echartClick(name, iseyes) {
|
|
|
- if (this.piseyes) {
|
|
|
+ echartClick(name, { iseyes }) {
|
|
|
+ let iszoom = iseyes == undefined;//红色高亮,不受眼睛控制
|
|
|
+ if (this.piseyes || iszoom) {
|
|
|
let click = this.litem.dataList.filter((c) => c.name == name);
|
|
|
- if (click.length > 0) this.mapview({ ...click[0], iseyes });
|
|
|
+ if (click.length > 0) this.mapview({ ...click[0], iseyes, iszoom });
|
|
|
}
|
|
|
},
|
|
|
mapviewClick(ldata) {
|