From fcb9ad20cfb4f1d691f76f575e3bcf09729be7c9 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期三, 13 十二月 2023 16:51:16 +0800
Subject: [PATCH] 最新

---
 src/components/map/viewer1.vue |  144 +++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 119 insertions(+), 25 deletions(-)

diff --git a/src/components/map/viewer1.vue b/src/components/map/viewer1.vue
index 93f7d55..52090a8 100644
--- a/src/components/map/viewer1.vue
+++ b/src/components/map/viewer1.vue
@@ -2,7 +2,7 @@
   <div>
     <div id="sdkContainer1" style="height: 100%"></div>
     <div class="listBox" v-show="!isLand">
-      <ul>
+      <ul id="viewer1_lsyx">
         <li
           v-for="(item, index) in arr"
           :key="index"
@@ -94,10 +94,10 @@
               :model="queryForm"
               :inline="true"
             >
-              <el-form-item label="鏌ヨ鍐呭" prop="name">
+              <el-form-item label="鏌ヨ鏉′欢" prop="name">
                 <el-input
                   v-model="queryForm.content"
-                  placeholder="璇疯緭鍏ユ煡璇㈠唴瀹�"
+                  placeholder="璇疯緭鍏ヨ鏌ヨ鐨勪紒涓氬悕绉�"
                 />
               </el-form-item>
               <el-form-item>
@@ -121,32 +121,28 @@
             <el-table-column
               property="浼佷笟鍚嶇О"
               label="浼佷笟鍚嶇О"
-              min-width="240"
+              min-width="220"
             ></el-table-column>
             <el-table-column
               property="浼佷笟绫诲瀷"
               label="浼佷笟绫诲瀷"
-              min-width="240"
+              min-width="220"
             ></el-table-column>
             <el-table-column
               property="鎴愮珛鏃堕棿"
               label="鎴愮珛鏃堕棿"
-              width="120"
+              min-width="90"
             ></el-table-column>
             <!-- <el-table-column
               property="鎵�灞炶涓�"
               label="鎵�灞炶涓�"
             ></el-table-column> -->
-            <el-table-column
-              property="娉曚汉"
-              label="娉曚汉"
-              width="80"
-            ></el-table-column>
+            <el-table-column property="娉曚汉" label="娉曚汉"></el-table-column>
             <!-- <el-table-column
               property="娉ㄥ唽鍦板潃"
               label="娉ㄥ唽鍦板潃"
             ></el-table-column> -->
-            <el-table-column label="鎿嶄綔" width="80">
+            <el-table-column label="鎿嶄綔" width="60">
               <template slot-scope="scope">
                 <el-button
                   @click="handleClick(scope.row)"
@@ -198,7 +194,7 @@
   activeLi,
   nLayer,
   TDLayer,
-  LWLayer;
+  LWLayer1;
 export default {
   name: "viewer1",
   components: { layerTreeTwoScreenRight },
@@ -279,6 +275,7 @@
         if (line1) {
           sgworld1.Creator.DeleteObject(line1);
         }
+        this.initLSYX();
       } else {
         this.destroyImageLayer();
         if (!TDLayer) {
@@ -313,6 +310,7 @@
         {
           StaticFileBaseUrl: "../../static/CimSDK/",
           // StaticFileBaseUrl: "../../../SW/static/CimSDK/",
+          // StaticFileBaseUrl: "../../../YZXNCS/static/CimSDK/",
         },
         {},
         null,
@@ -330,6 +328,8 @@
           );
           if (this.isLand) {
             this.loadTDGLLayer();
+          } else {
+            this.initLSYX();
           }
           var p = {
             destination: sgworld.Navigate.getPosition(),
@@ -370,6 +370,11 @@
     });
   },
   methods: {
+    initLSYX() {
+      let ul = document.getElementById("viewer1_lsyx");
+      let lis = ul.getElementsByTagName("li");
+      lis[9].click();
+    },
     setImageComparison(isStart) {
       this.isImage = isStart;
       if (!this.isImage) {
@@ -385,9 +390,9 @@
         Viewer1.imageryLayers.remove(nLayer, true);
         nLayer = null;
       }
-      if (LWLayer) {
-        Viewer1.imageryLayers.remove(LWLayer, true);
-        LWLayer = null;
+      if (LWLayer1) {
+        Viewer1.imageryLayers.remove(LWLayer1);
+        LWLayer1 = undefined;
       }
     },
     changeLeftMap(event, item, index) {
@@ -406,11 +411,15 @@
         nLayer = null;
       }
       nLayer = this.loadBJ54ImageLayer(year);
-      if (!LWLayer) {
-        LWLayer = this.loadBJ54LWLayer();
+
+      if (!LWLayer1 || Viewer1.imageryLayers.indexOf(LWLayer1) < 0) {
+        if (LWLayer1) {
+          LWLayer1.destroy();
+        }
+        LWLayer1 = this.loadBJ54LWLayer1();
       }
     },
-    loadBJ54LWLayer() {
+    loadBJ54LWLayer1() {
       let url = "http://172.26.64.84/service/ImageEngine/picdis/abc";
       //let url = option.url;
       //let year = option.year;
@@ -478,6 +487,7 @@
         brightness: 1.0,
       });
       Viewer1.imageryLayers.add(imageLayer, 2);
+
       return imageLayer;
     },
     loadTDGLLayer() {
@@ -519,8 +529,6 @@
           } else {
             p = sgworld1.Navigate.getMousePosition(event);
           }
-          // alert(JSON.stringify(p))
-          // console.log(p);
           if (p) {
             if (line) {
               sgworld.Creator.DeleteObject(line);
@@ -1280,7 +1288,7 @@
 
 .aboutDialog >>> .el-dialog__title {
   color: #fff;
-  font-size: 1.1rem;
+  font-size: 18px;
 }
 
 .aboutDialog >>> .el-dialog__headerbtn .el-dialog__close {
@@ -1296,12 +1304,14 @@
 }
 
 .aboutDialog >>> .el-form-item {
+  margin-top: 5px;
   margin-bottom: 10px;
 }
 
 .el-form >>> .el-form-item__label {
   color: #fff;
   margin-left: 10px;
+  font-size: 16px;
 }
 
 .aboutDialog .el-dialog-div {
@@ -1317,6 +1327,7 @@
   height: 80% !important;
   overflow: auto;
 }
+
 .el-table /deep/ .el-button--text {
   /* color: #fff; */
   font-size: 14px;
@@ -1380,18 +1391,18 @@
 .el-pagination >>> .btn-prev {
   background: transparent;
   color: #fff;
-  font-size: 1rem;
+  font-size: 14px;
 }
 
 .el-pagination >>> .el-pager li {
   line-height: 27px;
   background-color: transparent;
-  font-size: 1rem;
+  font-size: 14px;
 }
 
 .el-pagination >>> .el-pager li.btn-quicknext,
 .el-pagination >>> .el-pager li.btn-quickprev {
-  font-size: 1rem;
+  font-size: 14px;
   line-height: 28px;
   color: #fff;
 }
@@ -1418,12 +1429,95 @@
 
 /* 灞忓箷鍒嗚鲸鐜囨斁澶т负 125 */
 @media (-webkit-min-device-pixel-ratio: 1.25) {
+  .tdInfo_close {
+    position: absolute;
+    right: 10px;
+    top: 8px;
+    border-radius: 3px;
+    width: 20px;
+    height: 20px;
+    background-color: rgba(0, 0, 0, 0.2);
+    cursor: pointer;
+    text-align: center;
+    line-height: 19px;
+    font-size: 20px;
+  }
+
+  .tdInfo .title li {
+    margin-left: 25px;
+    line-height: 25px;
+    font-size: 15px;
+    font-weight: bold;
+    background: linear-gradient(0deg, #9cd2ff 0%, #ffffff 100%);
+    -webkit-background-clip: text;
+    -webkit-text-fill-color: transparent;
+  }
+
+  .content1,
+  .content2,
+  .content3 {
+    /* width: 100%; */
+    box-sizing: border-box;
+    /* margin-left: 42px; */
+    min-width: 220px;
+    max-width: 280px;
+    margin: 0 25px;
+    display: flex;
+    padding: 10px 0;
+  }
+
+  .content1 li,
+  .content2 li,
+  .content3 li {
+    font-size: 13px;
+  }
+
+  .tdInfo a {
+    font-size: 16px;
+  }
   .listBox li {
     font-size: 12px;
   }
+  .aboutDialog >>> .el-dialog__title {
+    color: #fff;
+    font-size: 14px;
+  }
   .el-table {
     font-size: 12px;
   }
+  .el-table /deep/ .el-button--text {
+    font-size: 12px;
+  }
+  .el-form >>> .el-form-item__label {
+    font-size: 13px;
+  }
+  .el-pagination >>> .el-pager li {
+    font-size: 13px;
+  }
+  .el-pagination >>> .el-pagination__total,
+  .el-pagination >>> .btn-next,
+  .el-pagination >>> .btn-prev {
+    font-size: 12px;
+  }
+  .el-pagination >>> .el-pager li.btn-quicknext,
+  .el-pagination >>> .el-pager li.btn-quickprev {
+    font-size: 12px;
+  }
+
+  .inquire >>> .el-form-item--mini .el-form-item__content,
+  .inquire >>> .el-form-item--mini .el-form-item__label {
+    line-height: 24px;
+  }
+  .inquire >>> .el-input__inner {
+    height: 26px;
+    line-height: 26px;
+  }
+  .inquire >>> .el-button--mini {
+    padding: 6px 11px;
+  }
+  .inquire >>> .el-form-item {
+    margin-right: 5px;
+  }
 }
 
 .listBox li:hover {

--
Gitblit v1.9.3