scorpio 2 年 前
コミット
9cadd67cc0

+ 1 - 1
src/views/project/componens/info1.vue

@@ -112,7 +112,7 @@
           <div class="flex flex-center full-width item">
             <span class="title">产业项目:</span>
             <el-select
-              v-model="form.social_investment"
+              v-model="form.industrial_investment"
               placeholder="是否是产业项目"
               class="full-width"
             >

+ 5 - 2
src/views/project/componens/map-picker.vue

@@ -121,7 +121,7 @@ export default {
       preList: [],
       map: null,
       geocoder: '',
-      keyword: '相国',
+      keyword: '',
       auto: null,
       latitude: 0,
       longitude: 0,
@@ -173,10 +173,13 @@ export default {
       this.map.on('complete', () => {
         this.addEvent()
         this.mapSearchInit()
-        if (this.latLng.length > 0) {
+        if (this.latLng.length > 0 && this.latLng[0] !== undefined) {
           this.latitude = this.latLng[0]
           this.longitude = this.latLng[1]
           this.addMarker(this.latLng[0], this.latLng[1])
+        } else {
+          const tmp = this.map.getCenter()
+          this.map.setCenter([tmp.lng, tmp.lat])
         }
       })
     },

+ 2 - 0
src/views/project/componens/top.vue

@@ -58,6 +58,8 @@ export default {
             const tmp = this.stages.find(ele => ele.isLastSelect === 1)
             if (tmp) {
               this.stage = tmp.id
+            } else {
+              this.stage = this.stages[0].id
             }
             this.$emit('change', this.stage)
           }