Browse Source

1、arcgis token

zjz 9 months ago
parent
commit
c489b72b5b
24 changed files with 1163 additions and 1166 deletions
  1. 1 1
      src/views/currentSystem/regionalMetering/DMAManage/index.vue
  2. 1 1
      src/views/currentSystem/regionalMetering/components/simpleQueryTool/widget.vue
  3. 4 8
      src/views/zhpt/buildsitemanage/buildsiteReport/widget.vue
  4. 1 1
      src/views/zhpt/configManage/inspectionManage/widget.vue
  5. 384 398
      src/views/zhpt/guanwangtongji/lengthStat/widget.vue
  6. 3 2
      src/views/zhpt/hedaoshuizhi/waterSourceMap/widget.vue
  7. 1 1
      src/views/zhpt/shuxingchaxun/queryForSinple/widget.vue
  8. 140 132
      src/views/zhpt/shuxingchaxun/queryForSpace/widget copy.vue
  9. 1 1
      src/views/zhpt/tongyonggongju/analysisBuffer/widget.vue
  10. 1 1
      src/views/zhpt/tongyonggongju/qAndA/widget.vue
  11. 1 1
      src/views/zhpt/tongyonggongju/simpleQueryTool/widget.vue
  12. 4 4
      src/views/zhpt/tongyonggongju/themMap/widget.vue
  13. 2 2
      src/views/zhpt/whMonthsPlans/whMakeMonthsPlans/monthPlanMake.vue
  14. 3 2
      src/views/zhpt/whMonthsPlans/whMonthsPlansQuery/monthPlanMake.vue
  15. 2 2
      src/views/zhpt/whMonthsPlans/xjMonthsPlansCheck/monthPlanMake.vue
  16. 1 1
      src/views/zhpt/wxPlansManagement/wxCheck/component/planAudit.vue
  17. 1 1
      src/views/zhpt/wxPlansManagement/wxCheck/component/planCancle.vue
  18. 1 1
      src/views/zhpt/wxPlansManagement/wxCheck/component/planStop.vue
  19. 603 598
      src/views/zhpt/xjDayilyManagement/planCancle/widget.vue
  20. 1 1
      src/views/zhpt/xjDayilyManagement/planStop/widget.vue
  21. 1 1
      src/views/zhpt/xjDayilyManagement/xjPlanForMission/model.js
  22. 2 2
      src/views/zhpt/xjMonthsPlans/xjMakeMonthsPlans/monthPlanMake.vue
  23. 2 2
      src/views/zhpt/xjMonthsPlans/xjMonthsPlansCheck/monthPlanMake.vue
  24. 2 2
      src/views/zhpt/xjMonthsPlans/xjMonthsPlansQuery/monthPlanMake.vue

+ 1 - 1
src/views/currentSystem/regionalMetering/DMAManage/index.vue

@@ -454,7 +454,7 @@ export default {
         })
         // 请求图例
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/legend?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/legend?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data)

+ 1 - 1
src/views/currentSystem/regionalMetering/components/simpleQueryTool/widget.vue

@@ -147,7 +147,7 @@ export default {
   methods: {
     loadLayerInfo() {
       $.ajax({ // 结果
-        url: appconfig.gisResource.business_map.config[0].url + '?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data)

+ 4 - 8
src/views/zhpt/buildsitemanage/buildsiteReport/widget.vue

@@ -290,8 +290,8 @@
         <el-button
           type="primary"
           size="small"
-          @click="confirmBuildReport()"
           :disabled="submitDisabled"
+          @click="confirmBuildReport()"
         >确定</el-button>
       </template>
     </el-dialog>
@@ -318,7 +318,7 @@ export default {
   props: ['data'],
   data() {
     return {
-      submitDisabled:false,
+      submitDisabled: false,
       buildType: [], // 码表 => 工地类型
       checkMen: [], // 码表 => 审核人
       pointPlaces: [], // 码表 => 所属片区
@@ -593,11 +593,7 @@ export default {
       ).then(([geometryEngine, Point, geometryEngineAsync]) => {
         const sp = this.data.mapView.spatialReference
         $.ajax({
-          url:
-            appconfig.gisResource.business_map.config[0].url +
-            '/' +
-            this.layerId +
-            '/query?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerId}/query?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'POST',
           data: {
             where: '1=1',
@@ -893,7 +889,7 @@ export default {
         .catch((err) => {
           console.log(err)
           this.submitDisabled = false
-        }).finally(()=>{
+        }).finally(() => {
           this.submitDisabled = false
         })
     },

+ 1 - 1
src/views/zhpt/configManage/inspectionManage/widget.vue

@@ -169,7 +169,7 @@ export default {
     this.getType()
     // 获取图层信息
     $.ajax({
-      url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+      url: `${appconfig.gisResource.business_map.config[0].url}/?f=pjson&token=${this.$store.state.user.arcgistoken}`,
       type: 'GET',
       success: (data) => {
         data = JSON.parse(data).layers

File diff suppressed because it is too large
+ 384 - 398
src/views/zhpt/guanwangtongji/lengthStat/widget.vue


+ 3 - 2
src/views/zhpt/hedaoshuizhi/waterSourceMap/widget.vue

@@ -280,7 +280,8 @@ export default {
       var { x, y } = view.toMap({ x: evt.x, y: evt.y })
       var sp = view.spatialReference
       $.ajax({ // 结果
-        url: url + '/query?geometry={x:' + x + ',y:' + y + '}&geometryType=esriGeometryPoint&outFields=NAME,REMARK&returnGeometry=false&f=pjson', type: 'GET',
+        url: `${url}/query?geometry={x:${x},y:${y}}&geometryType=esriGeometryPoint&outFields=NAME,REMARK&returnGeometry=false&f=pjson&token=${this.$store.state.user.arcgistoken}`,
+        type: 'GET',
         success: res => {
           if (this.seed == seed) {
             res = JSON.parse(res).features
@@ -558,7 +559,7 @@ export default {
       sendData.geometryType = 'esriGeometryPolygon'
       return new Promise((resolve) => {
         $.ajax({
-          url: url + '/query?f=pjson',
+          url: `${url}/query?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'POST',
           data: sendData,
           success: res => {

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

@@ -130,7 +130,7 @@ export default {
     var layerIndex = this.layersIndex = {}
     this.mapView = this.$attrs.data.mapView
     $.ajax({
-      url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+      url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
       type: 'GET',
       success: function(data) {
         data = JSON.parse(data).layers

+ 140 - 132
src/views/zhpt/shuxingchaxun/queryForSpace/widget copy.vue

@@ -1,52 +1,59 @@
 <template>
-<div style="padding: 0 8px;display: flex;flex-direction: column;" id="QforSbutton_group">
-  <tf-legend class="legend_dept" label="绘制工具" isopen="true" title="查询工具类型。">    
-    <el-button-group>
-      <!-- <el-button size="mini" title="点选" @click="space('point')"><img src="./images/G.png" width="20px" height="20px" style="object-fit: contain"></el-button> -->
-      <el-button size="mini" title="框选" @click="space('rect')"><img src="./images/R.png" width="20px" height="20px" style="object-fit: contain"></el-button>
-      <el-button size="mini" title="作圆" @click="space('circle')"><img src="./images/C.png" width="20px" height="20px" style="object-fit: contain"></el-button>
-      <el-button size="mini" title="作多边形" @click="space('polygon')"><img src="./images/P.png" width="20px" height="20px" style="object-fit: contain"></el-button>
-    </el-button-group>
-  </tf-legend>
-  <div id="Legend" class="Legend">
-    <div class="label" @click="featuresShowing = !featuresShowing">要素统计
-      <el-tooltip class="item" effect="dark" content="查询要素详细信息。" placement="right">
-        <i class="el-icon-info" ref="info"></i>        
-      </el-tooltip>
-      <div ref="isQuery" style="display: none;"><i class="el-icon-loading"></i>查询中</div>
+  <div id="QforSbutton_group" style="padding: 0 8px;display: flex;flex-direction: column;">
+    <tf-legend class="legend_dept" label="绘制工具" isopen="true" title="查询工具类型。">
+      <el-button-group>
+        <!-- <el-button size="mini" title="点选" @click="space('point')"><img src="./images/G.png" width="20px" height="20px" style="object-fit: contain"></el-button> -->
+        <el-button size="mini" title="框选" @click="space('rect')"><img src="./images/R.png" width="20px" height="20px" style="object-fit: contain"></el-button>
+        <el-button size="mini" title="作圆" @click="space('circle')"><img src="./images/C.png" width="20px" height="20px" style="object-fit: contain"></el-button>
+        <el-button size="mini" title="作多边形" @click="space('polygon')"><img src="./images/P.png" width="20px" height="20px" style="object-fit: contain"></el-button>
+      </el-button-group>
+    </tf-legend>
+    <div id="Legend" class="Legend">
+      <div class="label" @click="featuresShowing = !featuresShowing">要素统计
+        <el-tooltip class="item" effect="dark" content="查询要素详细信息。" placement="right">
+          <i ref="info" class="el-icon-info" />
+        </el-tooltip>
+        <div ref="isQuery" style="display: none;"><i class="el-icon-loading" />查询中</div>
+      </div>
+      <div v-show="featuresShowing" class="content">
+        <el-table highlight-current-row :data="layerData" stripe max-height="180px" style="width: 100%;margin-bottom: 8px;" row-class-name="selectRowC" @row-click="getMore">
+          <el-table-column prop="layer" label="图层名称" width="80" />
+          <el-table-column prop="num" label="数量" />
+          <el-table-column prop="length" label="总长(m)">
+            <template slot-scope="props">{{ props.row.length ? props.row.length.toFixed(2) : '-' }}</template>
+          </el-table-column>
+        </el-table>
+      </div>
     </div>
-    <div v-show="featuresShowing" class="content">
-      <el-table highlight-current-row :data="layerData" stripe max-height="180px" style="width: 100%;margin-bottom: 8px;" row-class-name="selectRowC" @row-click="getMore">
-        <el-table-column prop="layer" label="图层名称" width="80"/>
-        <el-table-column prop="num" label="数量" />
-        <el-table-column prop="length" label="总长(m)" >
-          <template slot-scope="props">{{ props.row.length ? props.row.length.toFixed(2) : '-' }}</template>
-        </el-table-column>
+    <tf-legend class="legend_dept" label="要素选择" :isopen="featureShow" title="查询要素选择。">
+      <el-table
+        highlight-current-row
+        :data="featureData"
+        stripe
+        max-height="180px"
+        style="width: 100%;margin-bottom: 8px;"
+        row-class-name="selectRowC"
+        @row-click="featureInfo"
+      >
+        <el-table-column prop="layer" label="图层" />
+        <el-table-column prop="name" label="标识码" />
       </el-table>
+    </tf-legend>
+    <div id="Legend" class="Legend" style="flex:1;">
+      <div class="label" style="cursor:default">要素详细
+        <el-tooltip class="item" effect="dark" content="查询要素详细信息。" placement="right">
+          <i ref="info" class="el-icon-info" />
+        </el-tooltip>
+        <el-link style="margin-left: 4px;" type="primary" :disabled="disabled" @click="showMoreInfo">更多</el-link>
+      </div>
+      <div class="content" style="height:calc(100% - 28px)">
+        <el-table :data="attData" stripe height="100%" style="width: 100%;">
+          <el-table-column prop="fix" label="字段" />
+          <el-table-column prop="att" label="属性" />
+        </el-table>
+      </div>
     </div>
   </div>
-  <tf-legend class="legend_dept" label="要素选择" :isopen="featureShow" title="查询要素选择。">
-    <el-table highlight-current-row :data="featureData" stripe max-height="180px" style="width: 100%;margin-bottom: 8px;"
-       row-class-name="selectRowC" @row-click="featureInfo">
-      <el-table-column prop="layer" label="图层"  />
-      <el-table-column prop="name" label="标识码" />
-    </el-table>
-  </tf-legend>
-  <div id="Legend" class="Legend" style="flex:1;">
-    <div class="label" style="cursor:default">要素详细
-      <el-tooltip class="item" effect="dark" content="查询要素详细信息。" placement="right">
-        <i class="el-icon-info" ref="info"></i>        
-      </el-tooltip>
-      <el-link style="margin-left: 4px;" type="primary" @click="showMoreInfo" :disabled="disabled">更多</el-link>
-    </div>
-    <div class="content" style="height:calc(100% - 28px)">
-      <el-table :data="attData" stripe height="100%" style="width: 100%;">
-        <el-table-column prop="fix" label="字段" />
-        <el-table-column prop="att" label="属性" />
-      </el-table>
-    </div>
-  </div>
-  </div>
 </template>
 
 <script>
@@ -55,14 +62,14 @@ import { esriConfig, appconfig } from 'staticPub/config'
 import { loadModules } from 'esri-loader'
 import tfLegend from '@/views/zhpt/common/Legend'
 export default {
-  name: 'queryForSpace',
+  name: 'QueryForSpace',
   components: { tfLegend },
   props: { param: Object },
   data() {
     return {
       activeName: 'attQuerry',
       inr: {},
-      attDatas:[],
+      attDatas: [],
       layer: '',
       layerData: [],
       featureData: [],
@@ -74,6 +81,27 @@ export default {
     }
   },
   computed: { sidePanelOn() { return this.$store.state.map.P_editableTabsValue } },
+  watch: {
+    sidePanelOn(newTab, oldTab) {
+      if (newTab == oldTab) return
+      if (newTab == 'queryForSpace') {
+        this.$nextTick(() => {
+          this.printRect.visible = true
+          this.queryFeature.visible = true
+          this.allResultFeatures.visible = true
+        })
+      }
+      if (oldTab == 'queryForSpace') {
+        this.printRect.visible = false
+        this.queryFeature.visible = false
+        this.allResultFeatures.visible = false
+        var view = this.mapView
+        var draw = view.TF_draw
+        if (draw.activeAction) draw.reset()
+        view.container.style.cursor = ''
+      }
+    }
+  },
   mounted: function() {
     var view = this.mapView = this.$attrs.data.mapView
     var sp = view.spatialReference
@@ -88,61 +116,46 @@ export default {
     view.map.add(this.allResultFeatures = new view.TF_graphicsLayer())
     view.graphics.addMany([this.printRect, this.queryFeature])
   },
-  watch: {
-    sidePanelOn(newTab, oldTab) {
-      if(newTab == oldTab) return
-      if(newTab == 'queryForSpace') {
-        this.$nextTick(() => {
-          this.printRect.visible = true   
-          this.queryFeature.visible = true
-          this.allResultFeatures.visible = true
-        })  
-      } 
-      if(oldTab == 'queryForSpace') {
-        this.printRect.visible = false
-        this.queryFeature.visible = false
-        this.allResultFeatures.visible = false
-        var view = this.mapView
-        var draw = view.TF_draw
-        if(draw.activeAction) draw.reset()
-        view.container.style.cursor = ''
-      }
-    }
+  destroyed: function() {
+    this.mapView.graphics.removeMany([this.printRect, this.queryFeature])
+    this.mapView.map.remove(this.allResultFeatures)
+    var draw = this.mapView.TF_draw
+    if (draw.activeAction) draw.reset()
   },
-  methods: { 
+  methods: {
     space(value) {
       var view = this.mapView
       var mapdiv = view.container
       var sp = view.spatialReference
       var draw = view.TF_draw
       this.featureData = []
-      if(draw.activeAction) draw.reset()
-      var funForDraw = [() => {mapdiv.style.cursor = 'crosshair'},
+      if (draw.activeAction) draw.reset()
+      var funForDraw = [() => { mapdiv.style.cursor = 'crosshair' },
         (evt) => {
           var v = evt.vertices
           if (v.length > 1) return
-          this.printRect.geometry = { type: 'polygon', spatialReference: sp } 
+          this.printRect.geometry = { type: 'polygon', spatialReference: sp }
         }, (evt) => {
           var v = evt.vertices
-          if(v.length > 1) this.printRect.geometry = { type: 'polygon', rings: this.getPolygon(value, v), spatialReference: sp } 
+          if (v.length > 1) this.printRect.geometry = { type: 'polygon', rings: this.getPolygon(value, v), spatialReference: sp }
         }, () => {
           mapdiv.style.cursor = ''
           this.$refs.isQuery.style.display = 'inline-block'
           this.query()
         }]
-      switch(value) {
+      switch (value) {
         case 'rect':
         case 'circle':
-          this.action = view.TF_drawRect(...funForDraw) 
+          this.action = view.TF_drawRect(...funForDraw)
           break
         case 'polygon':
-          this.action = view.TF_drawPolygon(...funForDraw)           
+          this.action = view.TF_drawPolygon(...funForDraw)
           break
       }
     },
     query() {
       var geometry = this.printRect.geometry
-      if(!geometry) return
+      if (!geometry) return
       var view = this.mapView
       var Graphic = view.TF_graphic
       var sp = view.spatialReference
@@ -156,6 +169,7 @@ export default {
         url: appconfig.gisResource.business_map.config[0].url + '/identify',
         type: 'POST',
         data: {
+          token: this.$store.state.user.arcgistoken,
           geometry: JSON.stringify(geometry.toJSON()),
           geometryType: 'esriGeometryPolygon',
           layers: 'all:' + this.getLayers().join(','),
@@ -163,49 +177,49 @@ export default {
           mapExtent: mapExtent.xmin + ',' + mapExtent.ymin + ',' + mapExtent.xmax + ',' + mapExtent.xmax + ',',
           imageDisplay: (view.width / 96).toFixed(2) + ',' + (view.height / 96).toFixed(2) + ',' + '96',
           f: 'pjson'
-        },  
+        },
         success: (data) => {
           data = JSON.parse(data).results
           this.queryFeature.geometry = undefined
           this.$refs.isQuery.style.display = 'none'
-          if(data.length < 1) {
+          if (data.length < 1) {
             this.layerData = []
             this.$message('无查询结果')
             return
           }
           this.$message('查询结果:' + data.length + ' 项')
           var layerAla = {}
-          for(var i=0,ii=data.length;i<ii;i++) {
+          for (var i = 0, ii = data.length; i < ii; i++) {
             var rd = data[i]
-            if(!layerAla.hasOwnProperty(rd.layerId)) {
-              layerAla[rd.layerId] = { layer: rd.layerName, length: 0, num: 0}
+            if (!layerAla.hasOwnProperty(rd.layerId)) {
+              layerAla[rd.layerId] = { layer: rd.layerName, length: 0, num: 0 }
               table[rd.layerId] = []
             }
-            if(rd.geometryType == 'esriGeometryPolyline') layerAla[rd.layerId].length += parseFloat(rd.attributes['SHAPE.LEN'])
+            if (rd.geometryType == 'esriGeometryPolyline') layerAla[rd.layerId].length += parseFloat(rd.attributes['SHAPE.LEN'])
             layerAla[rd.layerId].num += 1
-            table[rd.layerId].push({ 
-              layer: rd.layerName, 
-              layerId: rd.layerId, 
-              name: rd.value, 
-              attributes:{ 
-                OBJECTID:rd.attributes['OBJECTID'], 
-                SID: rd.displayFieldName.indexOf('编号') > 0 ? rd.value : undefined 
-              } 
+            table[rd.layerId].push({
+              layer: rd.layerName,
+              layerId: rd.layerId,
+              name: rd.value,
+              attributes: {
+                OBJECTID: rd.attributes['OBJECTID'],
+                SID: rd.displayFieldName.indexOf('编号') > 0 ? rd.value : undefined
+              }
             })
             returnData[rd.layerId + '-' + rd.attributes['OBJECTID']] = rd
-            
+
             var feaGeo, symbol
-            switch(rd.geometryType) {
+            switch (rd.geometryType) {
               case 'esriGeometryPoint':
-                feaGeo =  { type: 'point', x: rd.geometry.x, y: rd.geometry.y} 
+                feaGeo = { type: 'point', x: rd.geometry.x, y: rd.geometry.y }
                 symbol = { type: 'simple-marker', color: [255, 255, 255], size: 8, outline: { color: [51, 133, 255], width: 2 }}
                 break
               case 'esriGeometryPolyline':
-                feaGeo =  { type: 'polyline', paths: rd.geometry.paths} 
+                feaGeo = { type: 'polyline', paths: rd.geometry.paths }
                 symbol = { type: 'simple-fill', color: [0, 0, 0, 0.3], outline: { color: [45, 116, 231, 1], width: '3px' }}
                 break
               case 'esriGeometryPolygon':
-                feaGeo =  { type: 'polygon', rings: rd.geometry.rings} 
+                feaGeo = { type: 'polygon', rings: rd.geometry.rings }
                 symbol = { type: 'simple-fill', color: [0, 0, 0, 0.3], outline: { color: [45, 116, 231, 1], width: '3px' }}
                 break
             }
@@ -217,8 +231,8 @@ export default {
           }
           this.allResultFeatures.addMany(feas)
           var caTable = []
-          for(var item in layerAla) {
-            caTable.push({ id: item, layer: layerAla[item].layer, num:layerAla[item].num, length: layerAla[item].length})
+          for (var item in layerAla) {
+            caTable.push({ id: item, layer: layerAla[item].layer, num: layerAla[item].num, length: layerAla[item].length })
           }
           this.layerData = caTable
         },
@@ -226,16 +240,16 @@ export default {
       })
     },
     getPolygon(type, v) {
-      switch(type){
+      switch (type) {
         case 'rect':
           return [[v[0], [v[1][0], v[0][1]], v[1], [v[0][0], v[1][1]]]]
         case 'circle':
-          var x = v[0][0], y = v[0][1]
-          var dx = v[1][0] - v[0][0], dy = v[1][1] - v[0][1]
-          var r = Math.sqrt(dx * dx + dy *dy), da = Math.PI / 20
+          var x = v[0][0]; var y = v[0][1]
+          var dx = v[1][0] - v[0][0]; var dy = v[1][1] - v[0][1]
+          var r = Math.sqrt(dx * dx + dy * dy); var da = Math.PI / 20
           var ret = []
-          var PI2 = Math.PI * 2, sin = Math.sin, cos = Math.cos
-          for(let i=0;i< PI2;i+=da){
+          var PI2 = Math.PI * 2; var sin = Math.sin; var cos = Math.cos
+          for (let i = 0; i < PI2; i += da) {
             ret.push([x + r * cos(i), y + r * sin(i)])
           }
           return [ret]
@@ -245,17 +259,17 @@ export default {
     },
     getLayers: function() {
       var returnLayers = []
-      for(let i=0,il=this.mapView.map.basemap.baseLayers.items,ii=il.length;i<ii;i++) {
+      for (let i = 0, il = this.mapView.map.basemap.baseLayers.items, ii = il.length; i < ii; i++) {
         var layer = il[i]
-        if(!(layer.url && layer.visible)) continue
-        for(let j=0,jl=layer.sublayers.items,jj=jl.length;j<jj;j++){
+        if (!(layer.url && layer.visible)) continue
+        for (let j = 0, jl = layer.sublayers.items, jj = jl.length; j < jj; j++) {
           var subLayer = jl[j]
-          if(!subLayer.visible) continue
-          if(!subLayer.sublayers) returnLayers.push(subLayer.id)
+          if (!subLayer.visible) continue
+          if (!subLayer.sublayers) returnLayers.push(subLayer.id)
           else {
-            for(let k=0,kl=subLayer.sublayers.items,kk=kl.length;k<kk;k++){
+            for (let k = 0, kl = subLayer.sublayers.items, kk = kl.length; k < kk; k++) {
               var inSubLayer = kl[k]
-              if(inSubLayer.visible) returnLayers.push(inSubLayer.id)
+              if (inSubLayer.visible) returnLayers.push(inSubLayer.id)
             }
           }
         }
@@ -268,26 +282,26 @@ export default {
       var sp = view.spatialReference
       var fea = this.returnData[row.layerId + '-' + row.attributes.OBJECTID]
       var geomentry = fea.geometry
-      var dictionary = {"esriGeometryPoint":"point", "esriGeometryPolyline":"polyline", "esriGeometryPolygon":"polygon"}
+      var dictionary = { 'esriGeometryPoint': 'point', 'esriGeometryPolyline': 'polyline', 'esriGeometryPolygon': 'polygon' }
       geomentry.type = dictionary[fea.geometryType]
       geomentry.spatialReference = sp
       var gra = this.queryFeature
       gra.geometry = geomentry
-      gra.symbol = geomentry.type == 'point' ? { type: 'simple-marker', color: [255, 255, 255], size: 8, outline: { color: [0, 255, 255], width: 2 } } : { type: 'simple-fill', color: [0, 0, 0, 0.3], outline: { color: [0, 255, 255], width: "7px" } }
+      gra.symbol = geomentry.type == 'point' ? { type: 'simple-marker', color: [255, 255, 255], size: 8, outline: { color: [0, 255, 255], width: 2 }} : { type: 'simple-fill', color: [0, 0, 0, 0.3], outline: { color: [0, 255, 255], width: '7px' }}
       var extent = gra.geometry.extent
-      if(extent) view.goTo(extent)
+      if (extent) view.goTo(extent)
       else {
-        view.center = {x: gra.geometry.x, y: gra.geometry.y, spatialReference: view.spatialReference}  
+        view.center = { x: gra.geometry.x, y: gra.geometry.y, spatialReference: view.spatialReference }
         view.zoom = 6
       }
       var attData = []
-      var atts = fea.attributes   
+      var atts = fea.attributes
       var config = attConfig.hide
       for (const item in atts) {
         var att = atts[item]
-        if(config.indexOf(item) > -1) continue
-        if(att == 'Null') att = ''
-        if(item == 'SID') this.infoId = att
+        if (config.indexOf(item) > -1) continue
+        if (att == 'Null') att = ''
+        if (item == 'SID') this.infoId = att
         attData.push({ fix: item, att: att || '' })
       }
       this.disabled = !(this.infoId = row.attributes['SID'])
@@ -296,23 +310,17 @@ export default {
     getMore: function(row) {
       this.featureData = this.featureDataTable[row.id]
     },
-    showMoreInfo: function(e){
-      if(!this.attData.length || !this.infoId) return
+    showMoreInfo: function(e) {
+      if (!this.attData.length || !this.infoId) return
       this.featureShow = ''
-      this.$store.dispatch("map/changeMethod", {
-        pathId: "queryResultMore",
-        widgetid: "HalfPanel",
-        label: "更多信息",
-        param: { id: this.infoId },
-      });
+      this.$store.dispatch('map/changeMethod', {
+        pathId: 'queryResultMore',
+        widgetid: 'HalfPanel',
+        label: '更多信息',
+        param: { id: this.infoId }
+      })
       this.$nextTick(() => this.featureShow = false)
-    },
-  },
-  destroyed: function() {
-    this.mapView.graphics.removeMany([this.printRect, this.queryFeature])    
-    this.mapView.map.remove(this.allResultFeatures)
-    var draw = this.mapView.TF_draw
-    if(draw.activeAction) draw.reset()
+    }
   }
 }
 </script>

+ 1 - 1
src/views/zhpt/tongyonggongju/analysisBuffer/widget.vue

@@ -189,7 +189,7 @@ export default {
       }
     })
     $.ajax({
-      url: this.businessMap + '/?f=pjson',
+      url: `${this.businessMap}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
       type: 'GET',
       success: (data) => {
         data = JSON.parse(data).layers

+ 1 - 1
src/views/zhpt/tongyonggongju/qAndA/widget.vue

@@ -547,7 +547,7 @@ export default {
       var image = new Image()
       const seed = new Date().getTime()
       this.seed = seed
-      image.src = IP + 'base/file/loadImg?access_token=' + this.$store.state.user.token + '&remotePath=' + feaData.path.replace(/\//g, '%2f')
+      image.src = IP + '/base/file/loadImg?access_token=' + this.$store.state.user.token + '&remotePath=' + feaData.path.replace(/\//g, '%2f')
       image.style.width = '100%'
       image.onload = () => {
         if (this.seed != seed) return

File diff suppressed because it is too large
+ 1 - 1
src/views/zhpt/tongyonggongju/simpleQueryTool/widget.vue


+ 4 - 4
src/views/zhpt/tongyonggongju/themMap/widget.vue

@@ -159,7 +159,7 @@ export default {
       this.analysisAtt = []
       this.attLoading = true
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/' + e + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}/${e}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           if (this.layerLoadSeed != seed) return
@@ -225,7 +225,7 @@ export default {
       this.mainLayer.visible = false
       // 获取图层
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers
@@ -357,7 +357,7 @@ export default {
     getPolygon() {
       for (const polygon in this.layerIndex) {
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerIndex[polygon] + '/query?where=1=1&f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerIndex[polygon]}/query?where=1=1&f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data)
@@ -411,7 +411,7 @@ export default {
       }
       // 构建renderer
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/' + layerName + '?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}/${layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data)

+ 2 - 2
src/views/zhpt/whMonthsPlans/whMakeMonthsPlans/monthPlanMake.vue

@@ -918,7 +918,7 @@ export default {
     // 获取图层信息
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers
@@ -2189,7 +2189,7 @@ export default {
         div[1].innerText = '加载中'
         this.analysisAtt = [] // 存储图层字段信息
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerId + '/?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data).fields

+ 3 - 2
src/views/zhpt/whMonthsPlans/whMonthsPlansQuery/monthPlanMake.vue

@@ -907,7 +907,8 @@ export default {
     // 获取图层信息
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers
@@ -2109,7 +2110,7 @@ export default {
         div[1].innerText = '加载中'
         this.analysisAtt = [] // 存储图层字段信息
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerId + '/?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data).fields

+ 2 - 2
src/views/zhpt/whMonthsPlans/xjMonthsPlansCheck/monthPlanMake.vue

@@ -907,7 +907,7 @@ export default {
     // 获取图层信息
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers
@@ -2109,7 +2109,7 @@ export default {
         div[1].innerText = '加载中'
         this.analysisAtt = [] // 存储图层字段信息
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerId + '/?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data).fields

+ 1 - 1
src/views/zhpt/wxPlansManagement/wxCheck/component/planAudit.vue

@@ -1531,7 +1531,7 @@ export default {
      */
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers

+ 1 - 1
src/views/zhpt/wxPlansManagement/wxCheck/component/planCancle.vue

@@ -800,7 +800,7 @@ export default {
         */
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers

+ 1 - 1
src/views/zhpt/wxPlansManagement/wxCheck/component/planStop.vue

@@ -822,7 +822,7 @@ export default {
         */
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers

File diff suppressed because it is too large
+ 603 - 598
src/views/zhpt/xjDayilyManagement/planCancle/widget.vue


+ 1 - 1
src/views/zhpt/xjDayilyManagement/planStop/widget.vue

@@ -933,7 +933,7 @@ export default {
         */
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers

+ 1 - 1
src/views/zhpt/xjDayilyManagement/xjPlanForMission/model.js

@@ -865,7 +865,7 @@ export default {
         */
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers

+ 2 - 2
src/views/zhpt/xjMonthsPlans/xjMakeMonthsPlans/monthPlanMake.vue

@@ -918,7 +918,7 @@ export default {
     // 获取图层信息
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers
@@ -2189,7 +2189,7 @@ export default {
         div[1].innerText = '加载中'
         this.analysisAtt = [] // 存储图层字段信息
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerId + '/?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data).fields

+ 2 - 2
src/views/zhpt/xjMonthsPlans/xjMonthsPlansCheck/monthPlanMake.vue

@@ -907,7 +907,7 @@ export default {
     // 获取图层信息
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers
@@ -2109,7 +2109,7 @@ export default {
         div[1].innerText = '加载中'
         this.analysisAtt = [] // 存储图层字段信息
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerId + '/?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data).fields

+ 2 - 2
src/views/zhpt/xjMonthsPlans/xjMonthsPlansQuery/monthPlanMake.vue

@@ -907,7 +907,7 @@ export default {
     // 获取图层信息
     getLayerInfo() {
       $.ajax({
-        url: appconfig.gisResource.business_map.config[0].url + '/?f=pjson',
+        url: `${appconfig.gisResource.business_map.config[0].url}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
         type: 'GET',
         success: (data) => {
           data = JSON.parse(data).layers
@@ -2109,7 +2109,7 @@ export default {
         div[1].innerText = '加载中'
         this.analysisAtt = [] // 存储图层字段信息
         $.ajax({
-          url: appconfig.gisResource.business_map.config[0].url + '/' + this.layerId + '/?f=pjson',
+          url: `${appconfig.gisResource.business_map.config[0].url}/${this.layerName}?f=pjson&token=${this.$store.state.user.arcgistoken}`,
           type: 'GET',
           success: (data) => {
             data = JSON.parse(data).fields