Showing
5 changed files
with
29 additions
and
10 deletions
| ... | @@ -50,6 +50,7 @@ | ... | @@ -50,6 +50,7 @@ |
| 50 | <el-pagination | 50 | <el-pagination |
| 51 | :total="totalCount" | 51 | :total="totalCount" |
| 52 | :page-size.sync="limitSize" | 52 | :page-size.sync="limitSize" |
| 53 | + :current-page.sync="pageNum" | ||
| 53 | background | 54 | background |
| 54 | layout="prev, pager, next, jumper, ->, total, slot" | 55 | layout="prev, pager, next, jumper, ->, total, slot" |
| 55 | class="tablePagination" | 56 | class="tablePagination" |
| ... | @@ -201,7 +202,11 @@ export default { | ... | @@ -201,7 +202,11 @@ export default { |
| 201 | created() { | 202 | created() { |
| 202 | this.newHeader = this.headerData; | 203 | this.newHeader = this.headerData; |
| 203 | }, | 204 | }, |
| 204 | - mounted() {}, | 205 | + watch:{ |
| 206 | + page(){ | ||
| 207 | + this.pageNum = this.page; | ||
| 208 | + } | ||
| 209 | + }, | ||
| 205 | methods: { | 210 | methods: { |
| 206 | nextClick() { | 211 | nextClick() { |
| 207 | this.$emit("currentChange", { | 212 | this.$emit("currentChange", { | ... | ... |
| ... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
| 59 | </el-form> | 59 | </el-form> |
| 60 | <div slot="footer"> | 60 | <div slot="footer"> |
| 61 | <el-button @click="dialogBeforeClose">取 消</el-button> | 61 | <el-button @click="dialogBeforeClose">取 消</el-button> |
| 62 | - <el-button type="primary" @click="submit">确 定</el-button> | 62 | + <el-button type="primary" @click="submit" :loading="loading">确 定</el-button> |
| 63 | </div> | 63 | </div> |
| 64 | </el-dialog> | 64 | </el-dialog> |
| 65 | </div> | 65 | </div> |
| ... | @@ -119,6 +119,7 @@ export default { | ... | @@ -119,6 +119,7 @@ export default { |
| 119 | }, | 119 | }, |
| 120 | ], | 120 | ], |
| 121 | }, | 121 | }, |
| 122 | + loading:false | ||
| 122 | }; | 123 | }; |
| 123 | }, | 124 | }, |
| 124 | methods: { | 125 | methods: { |
| ... | @@ -132,6 +133,7 @@ export default { | ... | @@ -132,6 +133,7 @@ export default { |
| 132 | }, | 133 | }, |
| 133 | //确定配舱 | 134 | //确定配舱 |
| 134 | submit() { | 135 | submit() { |
| 136 | + this.loading = true; | ||
| 135 | let arr = []; | 137 | let arr = []; |
| 136 | this.tableData.forEach((item) => { | 138 | this.tableData.forEach((item) => { |
| 137 | arr.push(item.id); | 139 | arr.push(item.id); |
| ... | @@ -146,6 +148,7 @@ export default { | ... | @@ -146,6 +148,7 @@ export default { |
| 146 | type: "success", | 148 | type: "success", |
| 147 | }); | 149 | }); |
| 148 | this.cleaerForm(); | 150 | this.cleaerForm(); |
| 151 | + this.loading = false; | ||
| 149 | this.$emit("dialogBeforeClose", { close: false, reload: true }); | 152 | this.$emit("dialogBeforeClose", { close: false, reload: true }); |
| 150 | } else if (res.code === 202) { | 153 | } else if (res.code === 202) { |
| 151 | MessageBox.confirm(res.msg, "提示", { | 154 | MessageBox.confirm(res.msg, "提示", { |
| ... | @@ -169,6 +172,7 @@ export default { | ... | @@ -169,6 +172,7 @@ export default { |
| 169 | } | 172 | } |
| 170 | }); | 173 | }); |
| 171 | this.cleaerForm(); | 174 | this.cleaerForm(); |
| 175 | + this.loading = false; | ||
| 172 | this.$emit("dialogBeforeClose", { close: false, reload: true }); | 176 | this.$emit("dialogBeforeClose", { close: false, reload: true }); |
| 173 | }) | 177 | }) |
| 174 | .catch(() => { | 178 | .catch(() => { |
| ... | @@ -178,19 +182,24 @@ export default { | ... | @@ -178,19 +182,24 @@ export default { |
| 178 | type: "success", | 182 | type: "success", |
| 179 | }); | 183 | }); |
| 180 | this.cleaerForm(); | 184 | this.cleaerForm(); |
| 185 | + this.loading = false; | ||
| 181 | this.$emit("dialogBeforeClose", { | 186 | this.$emit("dialogBeforeClose", { |
| 182 | close: false, | 187 | close: false, |
| 183 | - reload: false, | 188 | + reload: true, |
| 184 | }); | 189 | }); |
| 185 | }); | 190 | }); |
| 186 | } else { | 191 | } else { |
| 192 | + this.loading = false; | ||
| 187 | this.$message({ | 193 | this.$message({ |
| 188 | message: res.msg, | 194 | message: res.msg, |
| 189 | type: "warning", | 195 | type: "warning", |
| 190 | }); | 196 | }); |
| 191 | } | 197 | } |
| 198 | + }).catch(()=>{ | ||
| 199 | + this.loading = false; | ||
| 192 | }); | 200 | }); |
| 193 | } else { | 201 | } else { |
| 202 | + this.loading = false; | ||
| 194 | this.$message({ | 203 | this.$message({ |
| 195 | message: "航班号或航班日期不能为空", | 204 | message: "航班号或航班日期不能为空", |
| 196 | type: "warning", | 205 | type: "warning", |
| ... | @@ -199,7 +208,7 @@ export default { | ... | @@ -199,7 +208,7 @@ export default { |
| 199 | }, | 208 | }, |
| 200 | dialogBeforeClose() { | 209 | dialogBeforeClose() { |
| 201 | this.cleaerForm(); | 210 | this.cleaerForm(); |
| 202 | - this.$emit("dialogBeforeClose", { close: false, reload: false }); | 211 | + this.$emit("dialogBeforeClose", { close: false, reload: true }); |
| 203 | }, | 212 | }, |
| 204 | }, | 213 | }, |
| 205 | computed: { | 214 | computed: { | ... | ... |
| ... | @@ -557,7 +557,9 @@ export default { | ... | @@ -557,7 +557,9 @@ export default { |
| 557 | this.isNeedRequired = info.isNeedRequired; | 557 | this.isNeedRequired = info.isNeedRequired; |
| 558 | } | 558 | } |
| 559 | this.loading = false; | 559 | this.loading = false; |
| 560 | - }); | 560 | + }).catch(()=>{ |
| 561 | + this.loading = false; | ||
| 562 | + }) | ||
| 561 | } else { | 563 | } else { |
| 562 | //货物信息 | 564 | //货物信息 |
| 563 | findByFlightId(id).then((response) => { | 565 | findByFlightId(id).then((response) => { |
| ... | @@ -596,7 +598,9 @@ export default { | ... | @@ -596,7 +598,9 @@ export default { |
| 596 | this.isNeedRequired = isNeedRequired; | 598 | this.isNeedRequired = isNeedRequired; |
| 597 | } | 599 | } |
| 598 | this.loading = false; | 600 | this.loading = false; |
| 599 | - }); | 601 | + }).catch(()=>{ |
| 602 | + this.loading = false; | ||
| 603 | + }) | ||
| 600 | } | 604 | } |
| 601 | } | 605 | } |
| 602 | } else { | 606 | } else { | ... | ... |
| ... | @@ -278,7 +278,7 @@ | ... | @@ -278,7 +278,7 @@ |
| 278 | 278 | ||
| 279 | <el-col :span="24" style="margin-bottom: 5%"> | 279 | <el-col :span="24" style="margin-bottom: 5%"> |
| 280 | <span style="color:#ff4949; margin-left: 10%" | 280 | <span style="color:#ff4949; margin-left: 10%" |
| 281 | - >提示:配载航班之同请用分号分隔【符号不区分中英文】,例:CA1053;C7433</span | 281 | + >提示:配载航班之间请用分号分隔【符号不区分中英文】,例:CA1053;C7433</span |
| 282 | ><br /> | 282 | ><br /> |
| 283 | <span style="color:#ff4949; margin-left: 10%" | 283 | <span style="color:#ff4949; margin-left: 10%" |
| 284 | >提示:如果需要设置配载航班延迟或提前可以直接在目的航斑后加减【+-】天数。如:CA1053+1;CZ433-1</span | 284 | >提示:如果需要设置配载航班延迟或提前可以直接在目的航斑后加减【+-】天数。如:CA1053+1;CZ433-1</span | ... | ... |
| ... | @@ -155,7 +155,7 @@ | ... | @@ -155,7 +155,7 @@ |
| 155 | </el-col> | 155 | </el-col> |
| 156 | </el-row> --> | 156 | </el-row> --> |
| 157 | <el-table | 157 | <el-table |
| 158 | - max-height="550" | 158 | + height="550" |
| 159 | highlight-current-row | 159 | highlight-current-row |
| 160 | border | 160 | border |
| 161 | stripe | 161 | stripe |
| ... | @@ -177,7 +177,7 @@ | ... | @@ -177,7 +177,7 @@ |
| 177 | prop="takeOffTime" | 177 | prop="takeOffTime" |
| 178 | width="120" | 178 | width="120" |
| 179 | /> | 179 | /> |
| 180 | - <el-table-column label="航班号" align="center" prop="fltNo" /> | 180 | + <el-table-column label="航班号" align="center" prop="fltNo" width="150"/> |
| 181 | <el-table-column label="航班路线" align="center" prop="route" width="150" /> | 181 | <el-table-column label="航班路线" align="center" prop="route" width="150" /> |
| 182 | <el-table-column | 182 | <el-table-column |
| 183 | label="航班类型" | 183 | label="航班类型" |
| ... | @@ -573,6 +573,7 @@ | ... | @@ -573,6 +573,7 @@ |
| 573 | width="40%" | 573 | width="40%" |
| 574 | center | 574 | center |
| 575 | :visible.sync="dialogTableVisible" | 575 | :visible.sync="dialogTableVisible" |
| 576 | + :close-on-click-modal="false" :append-to-body="true" | ||
| 576 | > | 577 | > |
| 577 | <el-table :data="gridData"> | 578 | <el-table :data="gridData"> |
| 578 | <el-table-column | 579 | <el-table-column |
| ... | @@ -922,7 +923,7 @@ export default { | ... | @@ -922,7 +923,7 @@ export default { |
| 922 | Weight = this.Weightall(); | 923 | Weight = this.Weightall(); |
| 923 | } | 924 | } |
| 924 | //高价可配 | 925 | //高价可配 |
| 925 | - if (this.form.highPriceWeightPercent > 0) { | 926 | + if (this.form.highPriceWeightPercent >= 0) { |
| 926 | this.$set( | 927 | this.$set( |
| 927 | this.form, | 928 | this.form, |
| 928 | "lowPriceWeightPercent", | 929 | "lowPriceWeightPercent", | ... | ... |
-
Please register or login to post a comment