Explorar o código

分屏对比图例

maxiaoxiao hai 5 meses
pai
achega
639ff8bb57
Modificáronse 1 ficheiros con 16 adicións e 2 borrados
  1. 16 2
      src/views/LandConsolidation/components/contrast.vue

+ 16 - 2
src/views/LandConsolidation/components/contrast.vue

@@ -36,6 +36,10 @@
             @change="(c) => clickcheck(i, mli.dlbmmc, c)"
           >
             {{ mli.dlbmmc }}
+            <span
+              :style="`background: ${mli.dict_color}`"
+              class="lcolor"
+            ></span>
           </el-checkbox>
         </el-checkbox-group>
       </div>
@@ -128,8 +132,8 @@ export default {
           setImageryRoller(layer);
         });
       } else {
-        // hideImageryRoller(this.imagelayers[this.nolayer]);
-        // useRoller(false);
+        hideImageryRoller(this.imagelayers[this.nolayer]);
+        useRoller(false);
       }
       this.multiView();
       if (i == 2) {
@@ -142,6 +146,10 @@ export default {
         //   this.setImager(img, false);
         // });
       }
+      if (this.active == 1 || this.active == -1) {
+        this.nolayer = this.layersData[0].year;
+        this.setImager(this.layersData[0], true);
+      }
     },
     async Getlayers() {
       let res = await QueryList({
@@ -280,6 +288,12 @@ export default {
       display: block;
       color: #fff;
     }
+    .lcolor {
+      display: inline-block;
+      width: 14px;
+      height: 14px;
+      margin-left: 5px;
+    }
   }
   .sm-toolTitle {
     top: 10px;