Showing
2 changed files
with
3 additions
and
7 deletions
| ... | @@ -1437,17 +1437,13 @@ export default { | ... | @@ -1437,17 +1437,13 @@ export default { |
| 1437 | /** 提交按钮 */ | 1437 | /** 提交按钮 */ |
| 1438 | submitForm: function () { | 1438 | submitForm: function () { |
| 1439 | this.$refs["form"].validate((valid) => { | 1439 | this.$refs["form"].validate((valid) => { |
| 1440 | - if (this.form.route == undefined) { | 1440 | + if (this.form.route == undefined || this.form.route.length == 0) { |
| 1441 | this.routeError = true; | 1441 | this.routeError = true; |
| 1442 | return; | 1442 | return; |
| 1443 | } | 1443 | } |
| 1444 | if (this.form.route.length || this.form.route !== undefined) { | 1444 | if (this.form.route.length || this.form.route !== undefined) { |
| 1445 | this.routeError = false; | 1445 | this.routeError = false; |
| 1446 | } | 1446 | } |
| 1447 | - if (this.form.route.length == 0) { | ||
| 1448 | - this.routeError = true; | ||
| 1449 | - return; | ||
| 1450 | - } | ||
| 1451 | if (valid) { | 1447 | if (valid) { |
| 1452 | let formdata = JSON.parse(JSON.stringify(this.form)); | 1448 | let formdata = JSON.parse(JSON.stringify(this.form)); |
| 1453 | //高价百分比和低价百分比和不可以大于100 | 1449 | //高价百分比和低价百分比和不可以大于100 | ... | ... |
| ... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
| 13 | </el-col> | 13 | </el-col> |
| 14 | <el-col :span="12"> | 14 | <el-col :span="12"> |
| 15 | <el-form-item label="航班号" prop="flightNo"> | 15 | <el-form-item label="航班号" prop="flightNo"> |
| 16 | - <el-input class="formItem" ref="flightNoFormItem" v-focus v-model="formData.flightNo" | 16 | + <el-input class="formItem" ref="flightNoFormItem" v-model="formData.flightNo" |
| 17 | maxlength="20" placeholder="请输入航班号" @change="getRoute" :disabled="disabled"> | 17 | maxlength="20" placeholder="请输入航班号" @change="getRoute" :disabled="disabled"> |
| 18 | </el-input> | 18 | </el-input> |
| 19 | </el-form-item> | 19 | </el-form-item> |
| ... | @@ -31,7 +31,7 @@ | ... | @@ -31,7 +31,7 @@ |
| 31 | <el-form-item label="航线" prop="flightRoute"> | 31 | <el-form-item label="航线" prop="flightRoute"> |
| 32 | <el-select class="formItem" v-model="formData.flightRoute" placeholder="未设置" | 32 | <el-select class="formItem" v-model="formData.flightRoute" placeholder="未设置" |
| 33 | :loading="routeLoading" :disabled="routeList.length == 0 || disabled" @change="routeChange"> | 33 | :loading="routeLoading" :disabled="routeList.length == 0 || disabled" @change="routeChange"> |
| 34 | - <el-option v-for="(item, index) in routeList" :label="item.route" :value="item.route" | 34 | + <el-option v-for="item in routeList" :label="item.route" :value="item.route" |
| 35 | :key="item.id"> | 35 | :key="item.id"> |
| 36 | <Tooltips :content="item.route" :refName="item.route"></Tooltips> | 36 | <Tooltips :content="item.route" :refName="item.route"></Tooltips> |
| 37 | </el-option> | 37 | </el-option> | ... | ... |
-
Please register or login to post a comment