Bladeren bron

地图初始化展示

sunyize 2 jaren geleden
bovenliggende
commit
322559f7c0
1 gewijzigde bestanden met toevoegingen van 39 en 20 verwijderingen
  1. 39 20
      src/views/networkAccess/registration.vue

+ 39 - 20
src/views/networkAccess/registration.vue

@@ -36,9 +36,9 @@
 
               <a-col :span="6">
                 <a-form-model-item label="身份证姓名" :labelCol="{ span:8 }"   :wrapperCol="{ span: 14 }"  prop="cardName" >
-<!--                  <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">-->
+                  <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">
                     <a-input v-model="model.cardName" placeholder="身份证姓名"  ></a-input>
-<!--                  </a-radio-group>-->
+                  </a-radio-group>
                 </a-form-model-item>
               </a-col>
               <!--              <a-col :span="8" >-->
@@ -593,7 +593,7 @@ import {reactive} from 'vue';
 import axios from 'axios';
 
 window._AMapSecurityConfig = {
-  securityJsCode: 'f762c44f71422cd56f90acc2a8e75144'  //填写你的安全密钥
+  securityJsCode: 'c4ab681cb7c3256184ae3557dc5beabb'  //填写你的安全密钥
 };
 
 
@@ -1332,7 +1332,9 @@ export default {
 
     initMap() {
       AMapLoader.load({
-        key: "8e513e3c374bdb2dd0095cd337b02ee6", // 申请好的Web端开发者Key,首次调用 load 时必填
+        //  key: "8e513e3c374bdb2dd0095cd337b02ee6"  密钥 f762c44f71422cd56f90acc2a8e75144
+        //  key :   3f95d73e380b9e4a2767c306a4b59f81       密钥 c4ab681cb7c3256184ae3557dc5beabb
+        key: "3f95d73e380b9e4a2767c306a4b59f81", // 申请好的Web端开发者Key,首次调用 load 时必填
         version: "2.0",      // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
         plugins: [
           'AMap.ToolBar',
@@ -1493,9 +1495,36 @@ export default {
             if (result != null) {
               for (var i in result) {
                 Object.keys(view).forEach(function (key) {
+                  if (key==='company'){
+                    that.change(result[i][key]);
+                  }
                   view[key] = result[i][key];
                 })
+
+                for (var item of this.sysCompany) {
+                  if (item.id === this.model.company) {
+                    this.companyName = item.name;
+                    this.change(item.id);
+
+                    for (var it of item.sysBusinessHallList) {
+                      if (it.id === this.model.sysBusinessHall) {
+                        this.hallName = it.name;
+                        this.model.sysBusinessHall=it.id
+                      }
+                    }
+                  }
+                }
                 this.isSizeNumberResults = result[i]["isSizeNumberResults"];
+                if (this.model.wordAddress!=='' && this.model.wordAddress!==null){
+                  this.searchKeyWordsysBusinessHall(this.model.wordAddress,'wordAddress');
+                }
+
+                if (this.hallName!=='' && this.hallName!==null){
+                  this.searchKeyWordsysBusinessHall('中国电信'+this.hallName,'businessAddress');
+                }
+                if (this.model.currentAddress!=='' && this.model.currentAddress!==null){
+                  this.searchKeyWordsysBusinessHall(this.model.currentAddress,'currentAddress');
+                }
 
               }
               if (result[i]["isSizeNumberResults"] === 'is') {
@@ -1520,20 +1549,9 @@ export default {
 
       }
 
-      for (var item of this.sysCompany) {
-        if (item.id === this.model.company) {
-          this.companyName = item.name
-          for (var it of item.sysBusinessHallList) {
-            if (it.id === this.model.sysBusinessHall) {
-              this.hallName = it.name
-            }
-          }
-        }
-      }
 
-      this.searchKeyWordsysBusinessHall(this.model.wordAddress,'wordAddress');
-      this.searchKeyWordsysBusinessHall('中国电信'+this.hallName,'businessAddress');
-      this.searchKeyWordsysBusinessHall(this.model.currentAddress,'currentAddress');
+
+
     },
 
     /**获取详情*/
@@ -1799,13 +1817,14 @@ export default {
         "cardNo": this.model.cardNo,
         "cardName": this.model.cardName,
         "cardStartTime": this.model.cardStartTime,
-        "endStartTime": this.model.endStartTime,
+        "cardEndTime": this.model.cardEndTime,
         "wordAddress": this.model.wordAddress,
         "businessAddress": this.model.businessAddress,
         "positionInformation": this.model.positionInformation,
         "status": '',
-        "judgmentResearch":this.model.judgmentResearch
-
+        "judgmentResearch":this.model.judgmentResearch,
+        "industry":this.model.industry,
+        "newPhone":this.model.newPhone
       };
       return data;
     },