From e63bdfe9d9bac1b5f0f672f9924acee3c6a06188 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 05 Aug 2022 10:39:56 +0800
Subject: [PATCH] 遥感

---
 src/components/remote/index.vue |  147 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 144 insertions(+), 3 deletions(-)

diff --git a/src/components/remote/index.vue b/src/components/remote/index.vue
index 505957a..d7591fc 100644
--- a/src/components/remote/index.vue
+++ b/src/components/remote/index.vue
@@ -2,11 +2,21 @@
 <template>
     <div style="height: 100%; width: 100%; position: relative;">
         <div v-show="SelectTimeFlag">
-            <select-time ref="leftRoller" :leftOrRight="'left'" class="l-time"></select-time>
+            <select-time
+                ref="leftRoller"
+                :leftOrRight="'left'"
+                class="l-time"
+                :selectList="leftRollerLayers"
+            ></select-time>
         </div>
 
         <div v-show="SelectTimeFlag">
-            <select-time ref="rightRoller" :leftOrRight="'right'" class="r-time"></select-time>
+            <select-time
+                ref="rightRoller"
+                :leftOrRight="'right'"
+                class="r-time"
+                :selectList="rightRollerLayers"
+            ></select-time>
         </div>
 
         <div class="location-box" v-show="!rollerCloseShow && !screenShow">
@@ -103,6 +113,11 @@
 
     data () {
         return {
+            // 左边集合
+            leftRollerLayers: [],
+            // 右边集合
+            rightRollerLayers: [],
+
             SelectTimeFlag: false,
             rollerCloseShow: false,
             screenShow: false,
@@ -110,8 +125,134 @@
         }
     },
 
-    computed: {
+    created () {
+        this.leftRollerLayers = [{
+            title: '2022年5月影像',
+            url: 'http://arcgis.jxpskj.com:6080/arcgis/rest/services/nanchengdom/MapServer/WMTS',
+            layer: 'nanchengdom',
+            style: 'default',
+            tileMatrixSetID: 'default028mm',
+            format: 'image/png',
+            tilingScheme: new global.DC.Namespace.Cesium.GeographicTilingScheme(),
+            maximumLevel: 19,
+            tileMatrixLabels: [
+                '0',
+                '1',
+                '2',
+                '3',
+                '4',
+                '5',
+                '6',
+                '7',
+                '8',
+                '9',
+                '10',
+                '11',
+                '12',
+                '13',
+                '14',
+                '15',
+                '16',
+                '17',
+                '18',
+                '19'
+            ]
+        }, {
+            title: '2022年7月影像',
+            url: 'http://arcgis.jxpskj.com:6080/arcgis/rest/services/nanchengdomjuly/MapServer/WMTS',
+            layer: 'nanchengdomjuly',
+            style: 'default',
+            tileMatrixSetID: 'default028mm',
+            format: 'image/png',
+            tilingScheme: new global.DC.Namespace.Cesium.GeographicTilingScheme(),
+            maximumLevel: 19,
+            tileMatrixLabels: [
+                '0',
+                '1',
+                '2',
+                '3',
+                '4',
+                '5',
+                '6',
+                '7',
+                '8',
+                '9',
+                '10',
+                '11',
+                '12',
+                '13',
+                '14',
+                '15',
+                '16',
+                '17',
+                '18',
+                '19'
+            ]
+        }]
 
+        this.rightRollerLayers = [{
+            title: '2022年5月影像',
+            url: 'http://arcgis.jxpskj.com:6080/arcgis/rest/services/nanchengdom/MapServer/WMTS',
+            layer: 'nanchengdom',
+            style: 'default',
+            tileMatrixSetID: 'default028mm',
+            format: 'image/png',
+            tilingScheme: new global.DC.Namespace.Cesium.GeographicTilingScheme(),
+            maximumLevel: 19,
+            tileMatrixLabels: [
+                '0',
+                '1',
+                '2',
+                '3',
+                '4',
+                '5',
+                '6',
+                '7',
+                '8',
+                '9',
+                '10',
+                '11',
+                '12',
+                '13',
+                '14',
+                '15',
+                '16',
+                '17',
+                '18',
+                '19'
+            ]
+        }, {
+            title: '2022年7月影像',
+            url: 'http://arcgis.jxpskj.com:6080/arcgis/rest/services/nanchengdomjuly/MapServer/WMTS',
+            layer: 'nanchengdomjuly',
+            style: 'default',
+            tileMatrixSetID: 'default028mm',
+            format: 'image/png',
+            tilingScheme: new global.DC.Namespace.Cesium.GeographicTilingScheme(),
+            maximumLevel: 19,
+            tileMatrixLabels: [
+                '0',
+                '1',
+                '2',
+                '3',
+                '4',
+                '5',
+                '6',
+                '7',
+                '8',
+                '9',
+                '10',
+                '11',
+                '12',
+                '13',
+                '14',
+                '15',
+                '16',
+                '17',
+                '18',
+                '19'
+            ]
+        }]
     },
     mounted () {
         if (global.viewer != null) {

--
Gitblit v1.9.3