Browse Source

视图机场下拉添加中文

zhaoke 1 năm trước cách đây
mục cha
commit
fd901d2bc5

+ 1 - 1
src/views/newArrival/index.vue

@@ -13,7 +13,7 @@
         <div class="form-left">
           <el-form-item prop="currentAirport">
             <el-select v-model="formData.currentAirport" class="input-shadow" size="small" style="width: 150px" filterable default-first-option placeholder="请选择机场" @change="airPortChange">
-              <el-option v-for="(item, index) in AirportList" :key="index" :label="item.IATACode" :value="item.IATACode" />
+              <el-option v-for="(item, index) in AirportList" :key="index" :label="item.IATACode +'-'+ item.airportName" :value="item.IATACode" />
             </el-select>
           </el-form-item>
           <el-form-item prop="flightDate" label="航班日期">

+ 1 - 1
src/views/newDeparture/index.vue

@@ -18,7 +18,7 @@
           </el-form-item> -->
           <el-form-item prop="currentAirport">
             <el-select v-model="formData.currentAirport" class="input-shadow" size="small" style="width: 150px" filterable default-first-option placeholder="请选择机场" @change="airPortChange">
-              <el-option v-for="(item, index) in AirportList" :key="index" :label="item.IATACode" :value="item.IATACode" />
+              <el-option v-for="(item, index) in AirportList" :key="index" :label="item.IATACode +'-'+ item.airportName" :value="item.IATACode" />
             </el-select>
           </el-form-item>
           <el-form-item prop="flightDate" label="航班日期">

+ 1 - 1
src/views/newTransfer/index.vue

@@ -13,7 +13,7 @@
         <div class="form-left">
           <el-form-item prop="currentAirport">
             <el-select v-model="formData.currentAirport" class="input-shadow" size="small" style="width: 150px" filterable default-first-option placeholder="请选择机场" @change="airPortChange">
-              <el-option v-for="(item, index) in AirportList" :key="index" :label="item.IATACode" :value="item.IATACode" />
+              <el-option v-for="(item, index) in AirportList" :key="index" :label="item.IATACode +'-'+ item.airportName" :value="item.IATACode" />
             </el-select>
           </el-form-item>
           <el-form-item prop="flightDate" label="航班日期">