|
@@ -73,7 +73,6 @@ export default {
|
|
|
list: ["卷帘对比", "分屏对比", "影像对比", "重置"],
|
|
|
active: 0,
|
|
|
dbdata: { id: "", fp: {} },
|
|
|
-
|
|
|
checkdata: [[], []],
|
|
|
imagelayers: {},
|
|
|
nolayer: "",
|
|
@@ -132,6 +131,10 @@ export default {
|
|
|
|
|
|
clickml() {},
|
|
|
async onClick(i) {
|
|
|
+ if (i == 3) {
|
|
|
+ this.reset();
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.active = i;
|
|
|
if (!this.layersData.length) {
|
|
|
await this.Getlayers();
|
|
@@ -166,16 +169,28 @@ export default {
|
|
|
this.$refs.aside.activeVal == 0;
|
|
|
this.$refs.aside.clickHandler();
|
|
|
} else {
|
|
|
- this.$refs.aside.clearTimer();
|
|
|
+ this.reset();
|
|
|
}
|
|
|
- if (this.active == 1 || this.active == -1) {
|
|
|
- this.nolayer = this.layersData[0].year;
|
|
|
- this.setImager(this.layersData[0], true);
|
|
|
+ if (this.active != 0) {
|
|
|
this.setImager({ year: "qian" }, false);
|
|
|
this.setImager({ year: "hou" }, false);
|
|
|
- // this.layersData.forEach((img) => {
|
|
|
- // this.setImager(img, false);
|
|
|
- // });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ reset() {
|
|
|
+ this.$emit("fly");
|
|
|
+ if (this.active == 1)
|
|
|
+ this.checkdata[1].forEach((mc, i) => {
|
|
|
+ if (this.checkdata[0].indexOf(mc) == -1) {
|
|
|
+ this.checkdata[0].push(mc);
|
|
|
+ this.clickcheck(i, mc, true);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ else if (this.active == 2) {
|
|
|
+ this.$refs.aside.activeVal == 1;
|
|
|
+ this.$refs.aside.clearTimer();
|
|
|
+ this.layersData.forEach((img) => {
|
|
|
+ this.setImager(img, false);
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
async Getlayers() {
|
|
@@ -221,7 +236,7 @@ export default {
|
|
|
this.checkdata = [[], []];
|
|
|
newVal.forEach((res, index) => {
|
|
|
this.checkdata[0].push(res.dlbmmc);
|
|
|
- // this.checkdata[1].push(res.dlbmmc);
|
|
|
+ this.checkdata[1].push(res.dlbmmc);
|
|
|
let adata = { isfly: true, fill_a: 0.8 };
|
|
|
if (res.qgeom)
|
|
|
loadGeoJSON(res.qgeom, res.dict_color, adata, (data) => {
|