浏览代码

修改bug

sunyize 2 年之前
父节点
当前提交
428b4953c1
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 8 5
      src/views/networkAccess/registrationUpdate.vue

+ 8 - 5
src/views/networkAccess/registrationUpdate.vue

@@ -74,7 +74,7 @@
                 <a-form-model-item required label="证件编号" prop="cardNo"   :labelCol="{ span:8 }"   :wrapperCol="{ span: 14 }"    >
 
 <!--                  <a-radio-group v-model="model.cardNo" button-style="solid"    slot-scope="text, record">-->
-                    <a-input v-model="model.cardNo" placeholder="请输入证件编号" @keyup="keyupInfo('')" id="cardNo" :disabled="isDisabled" @blur="showCheck0('cardNo')"></a-input>
+                    <a-input v-model="model.cardNo" placeholder="请输入证件编号"   id="cardNo" :disabled="isDisabled" @blur="showCheck0('cardNo')"></a-input>
 <!--                  </a-radio-group>--><a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
                 </a-form-model-item>
 
@@ -717,7 +717,7 @@
                                  @keyup="searchKeyWord('model.wordAddress')" id="wordAddress" @blur="showCheck0('wordAddress')" :disabled="isDisabled"></a-input>
                         <div class="map_search_result" v-show="this.showsearchResult">
                           <ul style="  border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
-                            <li  style="  border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; " @click="markerResult(item,'wordAddress')" v-for="(item,index) in poiList" :key="index">
+                            <li  style="  border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; "  v-for="(item,index) in poiList" :key="index">
                               {{ item.name }}
                             </li>
                           </ul>
@@ -737,7 +737,7 @@
                                  @keyup="searchKeyWord('model.currentAddress')" id="currentAddress" @blur="showCheck0('currentAddress')" :disabled="isDisabled"></a-input>
                         <div class="map_search_result" v-show="this.showsearchcurrentAddress">
                           <ul style="  border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
-                            <li  style="  border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; "@click="markerResult(item,'currentAddress')" v-for="(item,index) in poiList"
+                            <li  style="  border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; "  v-for="(item,index) in poiList"
                                 :key="index">{{ item.name }}
                             </li>
                           </ul>
@@ -1901,8 +1901,11 @@ export default {
         poiList.location.lng=list[0];
         poiList.location.lat=list[1];
         poiList.name=search
-        that.markerResult(poiList, nameType)
+       // that.markerResult(poiList, nameType)
       }else {
+        if (that.placeSearchComponent===undefined){
+          return
+        }
         that.placeSearchComponent.search(data, function (status, result) {
           if (status === 'complete' && result.info === "OK") {
             that.showsearchResultBusinessAddress = true
@@ -1914,7 +1917,7 @@ export default {
               that.poiList[0].location.lng=list[0];
               that.poiList[0].location.lat=list[1];
             }
-            that.markerResult(that.poiList[0], nameType)
+            //that.markerResult(that.poiList[0], nameType)
           } else {
             that.showsearchResultBusinessAddress = false
             that.showsearchResult = false