zhaoke 1 năm trước cách đây
mục cha
commit
4e86f5e83c
2 tập tin đã thay đổi với 3 bổ sung7 xóa
  1. 1 2
      src/views/newQuery/index.vue
  2. 2 5
      src/views/newQueryAdvance/index.vue

+ 1 - 2
src/views/newQuery/index.vue

@@ -38,7 +38,7 @@
         <Search :dataQuery="dataQuery" @getColData="getColData" ref="searchTable" />
       </div>
       <div :style="{height:tableHeight}" class="newQuery-table">
-        <Table :pageSize="999" style="height:100%" ref="queryTable" :tableTag="tableTag" />
+        <Table :pageSize="999" style="height:100%" ref="queryTable" downName="高级查询结果" :tableTag="tableTag" />
       </div>
     </div>
     <Dialog width="520px" :flag="diaFlag">
@@ -78,7 +78,6 @@
 import Search from './components/search.vue'
 import Table from './components/table.vue'
 import Dialog from '@/layout/components/Dialog/index.vue'
-import { getToken } from '@/utils/auth'
 import pf from '@/layout/mixin/publicFunc'
 export default {
   name: 'NewQuery',

+ 2 - 5
src/views/newQueryAdvance/index.vue

@@ -286,10 +286,7 @@ export default {
       // const bagNumCA = /^CA[0-9]{6}$/
       const bagNumShort = /^[0-9a-zA-Z][a-zA-Z][0-9]{6}$/
       // 纯字母则为旅客姓名
-      if (az.test(val)) {
-        this.form['passengerName'] = val
-        this.advancedSubmitHandler(true)
-      } else if (azNum.test(val) && top2.test(val) && val.length < 8) {
+      if (azNum.test(val) && top2.test(val) && val.length < 8) {
         // 字母加数字且前两位为字母则为航班号
         if (val.length <= 5) {
           const len = val.length
@@ -310,7 +307,7 @@ export default {
         this.advancedSubmitHandler(true)
       } else {
         this.$message.error(
-          '请先输入有效查询信息如航班号、旅客姓名首字母、行李牌号'
+          '请先输入有效查询信息如航班号、行李牌号'
         )
       }
     },