Showing
1 changed file
with
11 additions
and
18 deletions
| ... | @@ -134,23 +134,13 @@ | ... | @@ -134,23 +134,13 @@ |
| 134 | </el-row> | 134 | </el-row> |
| 135 | <el-row style="margin-bottom:5px"> | 135 | <el-row style="margin-bottom:5px"> |
| 136 | <el-col :span="12"> | 136 | <el-col :span="12"> |
| 137 | - <el-form-item prop="route"> | 137 | + <el-form-item label="航班路线" prop="route"> |
| 138 | - <template slot="label"> | 138 | + <el-select class="wid80" v-model="form.route" placeholder="请选择航线"> |
| 139 | - <div style="display:inline-block">航班路线 | 139 | + <el-option v-for="item in routeList" :key="item.id" :label="item.route" |
| 140 | - <el-tooltip class="item" effect="dark" content="输入航班号后获取航线信息。航班种类为Purple Tail时可以进行多选,切换航班种类后需重新选择航线" | 140 | + :value="item.id"> |
| 141 | - placement="top-start"> | ||
| 142 | - <span class="el-icon-warning" style="color:#1890ff;font-size:16px"></span> | ||
| 143 | - </el-tooltip> | ||
| 144 | - </div> | ||
| 145 | - </template> | ||
| 146 | - <el-select ref="routeSelect" class="wid80" v-model="form.route" :disabled="formdisabled.route" | ||
| 147 | - placeholder="请选择航线" no-data-text="未查询到航线" @change="routeChange" :loading="routeLoading" | ||
| 148 | - :multiple='routeMultiple' :key="routeMultiple"> | ||
| 149 | - <el-option v-for="item in routeList" :key="item.id" :label="item.route" :value="item.route"> | ||
| 150 | </el-option> | 141 | </el-option> |
| 151 | </el-select> | 142 | </el-select> |
| 152 | </el-form-item> | 143 | </el-form-item> |
| 153 | - <div class="formTips" v-if="title == '修改航班信息'">注意!:移除航线,相对应日期级别航线维度会同时删除</div> | ||
| 154 | </el-col> | 144 | </el-col> |
| 155 | <el-col :span="12"> | 145 | <el-col :span="12"> |
| 156 | <el-form-item label="航班类型" prop="typeId"> | 146 | <el-form-item label="航班类型" prop="typeId"> |
| ... | @@ -317,7 +307,6 @@ export default { | ... | @@ -317,7 +307,6 @@ export default { |
| 317 | }, | 307 | }, |
| 318 | //表单参数 | 308 | //表单参数 |
| 319 | form: { | 309 | form: { |
| 320 | - route: "", | ||
| 321 | isNeedRequired: 2 | 310 | isNeedRequired: 2 |
| 322 | }, | 311 | }, |
| 323 | routeList: [], | 312 | routeList: [], |
| ... | @@ -355,7 +344,7 @@ export default { | ... | @@ -355,7 +344,7 @@ export default { |
| 355 | { | 344 | { |
| 356 | required: true, | 345 | required: true, |
| 357 | message: "航班路线不能为空", | 346 | message: "航班路线不能为空", |
| 358 | - trigger: "blur", | 347 | + trigger: "change", |
| 359 | }, | 348 | }, |
| 360 | // { | 349 | // { |
| 361 | // pattern: /^(([\~A-Z]{3,4})(\-[A-Z]{3,4})+)(;{1,1}(([\~A-Z]{3,4})(\-[A-Z]{3,4})+)){0,}$/, | 350 | // pattern: /^(([\~A-Z]{3,4})(\-[A-Z]{3,4})+)(;{1,1}(([\~A-Z]{3,4})(\-[A-Z]{3,4})+)){0,}$/, |
| ... | @@ -518,7 +507,7 @@ export default { | ... | @@ -518,7 +507,7 @@ export default { |
| 518 | //输入航班号后 | 507 | //输入航班号后 |
| 519 | blurfltNo() { | 508 | blurfltNo() { |
| 520 | 509 | ||
| 521 | - this.routeList = [] | 510 | + // this.routeList = [] |
| 522 | this.form.accountTotalWeight = 0 | 511 | this.form.accountTotalWeight = 0 |
| 523 | this.form.accountAllocatedWeight = 0 | 512 | this.form.accountAllocatedWeight = 0 |
| 524 | if ( | 513 | if ( |
| ... | @@ -618,7 +607,7 @@ export default { | ... | @@ -618,7 +607,7 @@ export default { |
| 618 | } | 607 | } |
| 619 | } | 608 | } |
| 620 | }) | 609 | }) |
| 621 | - this.$refs.routeSelect.$forceUpdate() | 610 | + // this.$refs.routeSelect.$forceUpdate() |
| 622 | }, | 611 | }, |
| 623 | //查询条件数据源 | 612 | //查询条件数据源 |
| 624 | findFltConditionData() { | 613 | findFltConditionData() { |
| ... | @@ -1102,6 +1091,10 @@ export default { | ... | @@ -1102,6 +1091,10 @@ export default { |
| 1102 | //航线修改 | 1091 | //航线修改 |
| 1103 | routeChange(val) { | 1092 | routeChange(val) { |
| 1104 | this.$forceUpdate() | 1093 | this.$forceUpdate() |
| 1094 | + if(val.length){ | ||
| 1095 | + // this.rules.route.required = false | ||
| 1096 | + } | ||
| 1097 | + console.log(this.form.route) | ||
| 1105 | }, | 1098 | }, |
| 1106 | //多选框选中数据 | 1099 | //多选框选中数据 |
| 1107 | tableSelect(val) { | 1100 | tableSelect(val) { | ... | ... |
-
Please register or login to post a comment