|
@@ -23,7 +23,7 @@
|
|
|
class="sm-tool-btn sm-btn"
|
|
|
title="目录"
|
|
|
@click="$set(layers, i, !layers[i])"
|
|
|
- v-show="active == 1"
|
|
|
+ v-show="ptaye == 'gdbh' || active == 1"
|
|
|
>
|
|
|
<span class="iconfont icontuceng"></span>
|
|
|
</li>
|
|
@@ -32,11 +32,11 @@
|
|
|
<el-checkbox-group v-model="checkdata[0]" v-if="dbdata.fp.length > 1">
|
|
|
<el-checkbox
|
|
|
v-for="mli in dbdata.fp"
|
|
|
- :key="mli.dlbmmc"
|
|
|
- :label="mli.dlbmmc"
|
|
|
- @change="(c) => clickcheck(i, mli.dlbmmc, c)"
|
|
|
+ :key="mli[fpname]"
|
|
|
+ :label="mli[fpname]"
|
|
|
+ @change="(c) => clickcheck(i, mli[fpname], c)"
|
|
|
>
|
|
|
- {{ mli.dlbmmc }}
|
|
|
+ {{ mli[fpname] }}
|
|
|
<span
|
|
|
:style="`background: ${mli.dict_color}`"
|
|
|
class="lcolor"
|
|
@@ -44,7 +44,9 @@
|
|
|
</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
|
- <div class="sm-toolTitle">{{ `整治${!i ? "前" : "后"}地类图斑` }}</div>
|
|
|
+ <div v-if="ptaye != 'gdbh'" lass="sm-toolTitle">
|
|
|
+ {{ `整治${!i ? "前" : "后"}地类图斑` }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<AsideBottom
|
|
|
ref="aside"
|
|
@@ -67,9 +69,9 @@ import { QueryOne, QueryList } from "@/api/cockpitNew";
|
|
|
let geoSources = {};
|
|
|
export default {
|
|
|
props: {
|
|
|
- ptaye:{
|
|
|
+ ptaye: {
|
|
|
type: String,
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -81,6 +83,7 @@ export default {
|
|
|
imagelayers: {},
|
|
|
nolayer: "",
|
|
|
layersData: [],
|
|
|
+ fpname: "dlbmmc",
|
|
|
};
|
|
|
},
|
|
|
components: { AsideBottom },
|
|
@@ -100,7 +103,13 @@ export default {
|
|
|
},
|
|
|
show(data) {
|
|
|
console.log(data);
|
|
|
+ this.fpname = this.$props.ptaye == "gdbh" ? "year" : "dlbmmc";
|
|
|
this.dbdata = { ...this.dbdata, ...data };
|
|
|
+ if (this.$props.ptaye == "gdbh") {
|
|
|
+ this.layersData = data.fp;
|
|
|
+ this.$refs.aside.setdata(this.layersData);
|
|
|
+ }
|
|
|
+ this.active = 0;
|
|
|
this.onClick(0);
|
|
|
},
|
|
|
async GetServer() {
|
|
@@ -135,7 +144,51 @@ export default {
|
|
|
},
|
|
|
|
|
|
clickml() {},
|
|
|
- async onClick(i) {
|
|
|
+ onClick(i) {
|
|
|
+ if (this.$props.ptaye == "gdbh") {
|
|
|
+ this.onGdbhClick(i);
|
|
|
+ } else {
|
|
|
+ this.onTdzzClick(i);
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ async onGdbhClick(i) {
|
|
|
+ if (i == 3) {
|
|
|
+ this.reset();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.active = i;
|
|
|
+
|
|
|
+ if (i == 0) {
|
|
|
+ // store.setaddNode([
|
|
|
+ // { id: "ttzz", url: this.dbdata.zzq, label: "土地整治对比" },
|
|
|
+ // ]);
|
|
|
+ this.setImager({ url: this.dbdata.zzq, year: "qian", top: true }, true);
|
|
|
+ this.setImager(
|
|
|
+ { url: this.dbdata.zzh, year: "hou", top: true },
|
|
|
+ true,
|
|
|
+ (layer) => {
|
|
|
+ useRoller(true, "lrRoller", "leftRoller", "", false);
|
|
|
+ setImageryRoller(layer);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ hideImageryRoller(this.imagelayers["hou"]);
|
|
|
+ useRoller(false);
|
|
|
+ }
|
|
|
+ // this.multiView();
|
|
|
+ // if (i == 2) {
|
|
|
+ // this.$refs.aside.activeVal == 0;
|
|
|
+ // this.$refs.aside.clickHandler();
|
|
|
+ // } else {
|
|
|
+ // this.reset();
|
|
|
+ // }
|
|
|
+ // if (this.active != 0) {
|
|
|
+ // this.setImager({ year: "qian" }, false);
|
|
|
+ // this.setImager({ year: "hou" }, false);
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ async onTdzzClick(i) {
|
|
|
if (i == 3) {
|
|
|
this.reset();
|
|
|
return;
|