linyanfei 3 lat temu
rodzic
commit
4c74d5024e

+ 6 - 1
shanXiPlatform/src/layout/components/TagsView/index.vue

@@ -143,7 +143,6 @@ export default {
143 143
         // this.administrativeDivision = 140000
144 144
         this.homeType = JSON.parse(getUser()).homeType
145 145
         this.depotId = this.$store.state.depotId
146
-
147 146
         if (JSON.parse(getUser()).homeType == 2) {
148 147
             let cfIds = ""
149 148
             let depotId = this.$store.state.depotId
@@ -193,6 +192,12 @@ export default {
193 192
             getpointll(this.homeType, this.depotId).then(res => {
194 193
                 this.mapList = res.data
195 194
                 for (var i = 0; i < res.data.length; i++) {
195
+                      if(    this.$store.state.depotName  == res.data[i].name){
196
+                          this.$store.commit({
197
+                                    type: "changeareacode",
198
+                                    areacodes: res.data[i].cityCode
199
+                                })
200
+                      }
196 201
                     var key = res.data[i].name
197 202
                     this.mapAll[key] = [res.data[i].lon, res.data[i].lat]
198 203
                 }