|
@@ -117,7 +117,6 @@ export default {
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
download() {
|
|
download() {
|
|
- console.log(this.resultData.xmxx,'this.$props.fxjgObj');
|
|
|
|
window.open(
|
|
window.open(
|
|
window.axiosURI +
|
|
window.axiosURI +
|
|
"/analyse/fzss/DownloadReport?filePath=" +
|
|
"/analyse/fzss/DownloadReport?filePath=" +
|
|
@@ -152,12 +151,10 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.echartRef.setOptions({ data, type }, 1);
|
|
this.$refs.echartRef.setOptions({ data, type }, 1);
|
|
});
|
|
});
|
|
-
|
|
|
|
- // this.$refs.echartRef.res
|
|
|
|
this.resultData = res.data;
|
|
this.resultData = res.data;
|
|
-
|
|
|
|
- // this.drawWktPloygon(res.data.xmxx.geom, "#ff0000", "all"); //res.data.bsm
|
|
|
|
- this.loadGeoJSON(parse(res.data.xmxx.geom), "#ff0000", "all");
|
|
|
|
|
|
+ if (res.data.xmxx.geom) {
|
|
|
|
+ this.loadGeoJSON(parse(res.data.xmxx.geom), "#ff0000", "all");
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message);
|
|
this.$message.error(res.message);
|
|
}
|
|
}
|
|
@@ -172,8 +169,7 @@ export default {
|
|
this.loadGeoJSON(parse(res.geom), res.itemStyle.color, "all");
|
|
this.loadGeoJSON(parse(res.geom), res.itemStyle.color, "all");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
drawWktPloygon(item, itemColor, id) {
|
|
drawWktPloygon(item, itemColor, id) {
|
|
// console.log(geometry, "geometry");
|
|
// console.log(geometry, "geometry");
|
|
@@ -190,7 +186,7 @@ export default {
|
|
},
|
|
},
|
|
// 加载GeoJSON数据
|
|
// 加载GeoJSON数据
|
|
loadGeoJSON(geojson, yanse, id, height, name) {
|
|
loadGeoJSON(geojson, yanse, id, height, name) {
|
|
- viewer.dataSources.removeAll()
|
|
|
|
|
|
+ viewer.dataSources.removeAll();
|
|
let _this = this;
|
|
let _this = this;
|
|
let fcolor =
|
|
let fcolor =
|
|
id && id != "all"
|
|
id && id != "all"
|
|
@@ -247,11 +243,11 @@ export default {
|
|
overflow-x: hidden;
|
|
overflow-x: hidden;
|
|
padding-right: 10px;
|
|
padding-right: 10px;
|
|
line-height: 40px;
|
|
line-height: 40px;
|
|
-.echartCon{
|
|
|
|
- height: 350px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- overflow-y: auto;
|
|
|
|
-}
|
|
|
|
|
|
+ .echartCon {
|
|
|
|
+ height: 350px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ overflow-y: auto;
|
|
|
|
+ }
|
|
.echart {
|
|
.echart {
|
|
// width: 19rem;
|
|
// width: 19rem;
|
|
// height: 350px;
|
|
// height: 350px;
|