ソースを参照

1、登录、大屏地图管线、gis快捷查询

zjz 8 ヶ月 前
コミット
53ef411718

+ 11 - 2
src/views/dataBoard/smartOperating/children/middlePanel.vue

@@ -79,7 +79,8 @@ export default {
         mapConfig,
         Graphic,
         GraphicsLayer,
-        esriRequest
+        esriRequest,
+        IdentityManager
       ] = await esriLoaderApi.load([
         'esri/Map',
         'esri/views/MapView',
@@ -91,7 +92,8 @@ export default {
         'esri/config',
         'esri/Graphic',
         'esri/layers/GraphicsLayer',
-        'esri/request'
+        'esri/request',
+        'esri/identity/IdentityManager'
       ])
       this.tools.Map = Map
       this.tools.MapView = MapView
@@ -105,6 +107,7 @@ export default {
       this.tools.GraphicsLayer = GraphicsLayer
       this.tools.esriRequest = esriRequest
       this.layer = new GraphicsLayer()
+      this.tools.IdentityManager = IdentityManager
       this.initMap()
     },
     /**
@@ -306,6 +309,12 @@ export default {
         title: 'basemap',
         id: 'basemap'
       })
+
+      this.tools.IdentityManager.registerToken({
+        server: 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW',
+        token: this.$store.state.user.arcgistoken
+      })
+
       // 地图视角设置缩放步进级别
       basemap.baseLayers.items[2].load().then((e) => {
         mapview.constraints.lods = [

ファイルの差分が大きいため隠しています
+ 1035 - 1011
src/views/dataBoard/smartPipeNet/children/mapPanel.vue


+ 14 - 6
src/views/login/index.vue

@@ -22,7 +22,7 @@
           auto-complete="on"
           label-position="left"
         >
-          <el-form-item label="" prop="username" class="form-input">
+          <el-form-item label="" prop="username" class="form-input inputbottom">
             <el-input
               ref="username"
               v-model="loginForm.username"
@@ -366,13 +366,21 @@ export default {
           width: 260px;
           height: 36px;
           line-height: 36px;
-          /deep/ input {
+          // /deep/ input {
+          //   height: 36px;
+          // }
+          // &:nth-of-type(2) {
+          //   margin-top: 34px;
+          // }
+        }
+
+        .inputbottom{
+          margin-bottom: 30px;
+        }
+
+        ::v-deep input {
             height: 36px;
           }
-          &:nth-of-type(2) {
-            margin-top: 34px;
-          }
-        }
       }
       .login-btn {
         width: 260px;

+ 1 - 1
src/views/zhpt/shuxingchaxun/queryForSinple/widget.vue

@@ -82,7 +82,7 @@ export default {
       if (!this.layerName) return
       var config = attConfig.hide
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerName + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: function(data) {
           data = JSON.parse(data).fields