|
@@ -47,9 +47,10 @@
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<pie
|
|
<pie
|
|
- :class="`echart${edata.length <= 6 ? '' : '_vertical'}`"
|
|
|
|
|
|
+ class="echart"
|
|
|
|
+ :style="`height: ${200 + edata.length * 10}px`"
|
|
unit="㎡"
|
|
unit="㎡"
|
|
- @echartClick="(name) => echartClick(name)"
|
|
|
|
|
|
+ @echartClick="(name) => echartClick(name, item.value)"
|
|
:ref="`echartRef`"
|
|
:ref="`echartRef`"
|
|
></pie>
|
|
></pie>
|
|
</div>
|
|
</div>
|
|
@@ -117,8 +118,6 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
download() {},
|
|
download() {},
|
|
resultDeatils(val, mxbsm) {
|
|
resultDeatils(val, mxbsm) {
|
|
- // viewer.entities.removeAll();
|
|
|
|
- viewer.dataSources.removeAll();
|
|
|
|
let obj = {
|
|
let obj = {
|
|
bsm: this.fxjgObj.bsm,
|
|
bsm: this.fxjgObj.bsm,
|
|
mxbsm: mxbsm,
|
|
mxbsm: mxbsm,
|
|
@@ -131,6 +130,7 @@ export default {
|
|
QueryGdbhJg({ bsm: this.fxjgObj.bsm }).then((res) => {
|
|
QueryGdbhJg({ bsm: this.fxjgObj.bsm }).then((res) => {
|
|
let data = [];
|
|
let data = [];
|
|
if (res.statuscode == 200) {
|
|
if (res.statuscode == 200) {
|
|
|
|
+ console.log(res, ":resresres");
|
|
if (res.data.sandiao.mx_data.length) {
|
|
if (res.data.sandiao.mx_data.length) {
|
|
res.data.sandiao.mx_data.forEach((el) => {
|
|
res.data.sandiao.mx_data.forEach((el) => {
|
|
data.push({
|
|
data.push({
|
|
@@ -156,17 +156,20 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- echartClick(name) {
|
|
|
|
- this.edata.forEach((res) => {
|
|
|
|
- const keys = Object.keys(res);
|
|
|
|
- for (const key of keys) {
|
|
|
|
- let value = res[key];
|
|
|
|
- if (value == name) {
|
|
|
|
- this.loadGeoJSON(parse(res.geom), res.itemStyle.color, "all");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ echartClick(name, { iseyes }) {
|
|
|
|
+ console.log(name, ":name");
|
|
|
|
+ // this.reset();
|
|
|
|
|
|
- })
|
|
|
|
|
|
+ // this.tableData.forEach((res) => {
|
|
|
|
+ // const keys = Object.keys(res);
|
|
|
|
+ // for (const key of keys) {
|
|
|
|
+ // let value = res[key];
|
|
|
|
+ // if (value == name) {
|
|
|
|
+ // this.addPolygon(res.空间信息.split(";")[1], "all", "#ff0000", true);
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
drawWktPloygon(item, itemColor, id) {
|
|
drawWktPloygon(item, itemColor, id) {
|
|
// console.log(geometry, "geometry");
|
|
// console.log(geometry, "geometry");
|
|
@@ -183,7 +186,6 @@ export default {
|
|
},
|
|
},
|
|
// 加载GeoJSON数据
|
|
// 加载GeoJSON数据
|
|
loadGeoJSON(geojson, yanse, id, height, name) {
|
|
loadGeoJSON(geojson, yanse, id, height, name) {
|
|
- viewer.dataSources.removeAll()
|
|
|
|
let _this = this;
|
|
let _this = this;
|
|
let fcolor =
|
|
let fcolor =
|
|
id && id != "all"
|
|
id && id != "all"
|
|
@@ -222,14 +224,11 @@ export default {
|
|
if (id) {
|
|
if (id) {
|
|
dataSources[id] = data;
|
|
dataSources[id] = data;
|
|
}
|
|
}
|
|
|
|
+ if (id == "all") _this.isshowAll = true;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
- beforeDestroy() {
|
|
|
|
- viewer.entities.removeAll();
|
|
|
|
- viewer.dataSources.removeAll();
|
|
|
|
- },
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -245,11 +244,12 @@ export default {
|
|
// width: 19rem;
|
|
// width: 19rem;
|
|
// height: 350px;
|
|
// height: 350px;
|
|
width: 387px !important;
|
|
width: 387px !important;
|
|
- height: 200px !important;
|
|
|
|
|
|
+ height: 200px;
|
|
|
|
+ min-height: 200px;
|
|
}
|
|
}
|
|
.echart_vertical {
|
|
.echart_vertical {
|
|
width: 387px !important;
|
|
width: 387px !important;
|
|
- height: 370px !important;
|
|
|
|
|
|
+ height: 400px !important;
|
|
}
|
|
}
|
|
|
|
|
|
.downloadDiv {
|
|
.downloadDiv {
|