maxiaoxiao 8 months ago
parent
commit
ff44048767

+ 1 - 1
src/views/LandConsolidation/components/xzlist.vue

@@ -21,7 +21,7 @@
       @currentChange="searchFun"
     >
       <template #mj="{ row }">
-        {{ Number(row.xzgdmj).toFixed(2) }}
+        {{ Number(row.tbmj_m).toFixed(2) }}
       </template>
       <template #action="{ row }">
         <span class="usable" @click="detail(row)">详情</span>

+ 1 - 0
src/views/farmlandProtection/config.js

@@ -23,6 +23,7 @@ export const zzForm = [
   ]
 ]
 export const legends = [
+  { id: "01", label: "耕地", index: 0 },
   { id: '0101', label: "水田", color: '#caf982', index: 1 },
   { id: '0102', label: "水浇地", color: '#80ffff', index: 2 },
   { id: '0103', label: "旱地", color: '#facd91', index: 3 }

+ 5 - 6
src/views/farmlandProtection/gdzl/index.vue

@@ -262,7 +262,7 @@ export default {
   created() {
     // this.getYear();
     // this.GetDate();
-    this.typeList = [{ id: "01", label: "耕地", index: 0 }, ...legends];
+    this.typeList = [...JSON.parse(JSON.stringify(legends))];
   },
   mounted() {},
   methods: {
@@ -289,7 +289,6 @@ export default {
       } else {
         if (nowtype.layerID) {
           this.nowlayer = this.nowyear + nowtype.layerID;
-          console.log(nowtype, "----nowtype");
         } else if (this.layers.length) {
           let yobj = this.yearList.find((y) => y.year == this.nowyear);
           if (yobj) this.goLayer(yobj, nowtype);
@@ -349,8 +348,8 @@ export default {
       });
     },
     showInfo(data, obj) {
-      let legends = store.state.addlegend;
-      if (legends && legends.length && legends[0].id == "gdbh") {
+      let alegends = store.state.addlegend;
+      if (alegends && alegends.length && alegends[0].id == "gdbh") {
         this.$emit("handleView", data, obj);
       }
     },
@@ -480,7 +479,6 @@ export default {
       viewer.flyTo(this.imagelayers[obj.year]);
     },
     sourcesshow(show) {
-      console.log(this.nowyear, show, "000");
       this.setImager({ year: this.nowlayer }, show);
     },
     reset() {
@@ -489,6 +487,8 @@ export default {
         Object.keys(this.imagelayers).forEach((key) => {
           viewer.imageryLayers.remove(this.imagelayers[key]);
         });
+        this.imagelayers = {};
+        this.typeList = [...JSON.parse(JSON.stringify(legends))];
       });
     },
     setEchart(data, id) {
@@ -502,7 +502,6 @@ export default {
       console.log(newValue, "---");
     },
     nowlayer(newValue, oldVal) {
-      console.log(newValue, oldVal, "-ssssss--");
       this.setImager({ year: oldVal }, false);
       this.setImager({ year: newValue }, true);
     },

+ 1 - 0
src/views/farmlandProtection/indexNew.vue

@@ -43,6 +43,7 @@
     <Details ref="detailModal"></Details>
     <Contrast
       ref="contrastModal"
+      ptaye="gdbh"
       v-show="iscontrast"
       @fly="fly"
       @close="contrastClose"