Showing
3 changed files
with
20 additions
and
4 deletions
| ... | @@ -191,9 +191,9 @@ export default { | ... | @@ -191,9 +191,9 @@ export default { |
| 191 | const { code, data, msg } = res; | 191 | const { code, data, msg } = res; |
| 192 | if (code == 200) { | 192 | if (code == 200) { |
| 193 | this.searchBtn(); | 193 | this.searchBtn(); |
| 194 | - this.msgSuccess(msg || "增加成功!"); | 194 | + this.msgSuccess(msg || "导入成功!"); |
| 195 | } else { | 195 | } else { |
| 196 | - this.$message.error(msg || "增加失败"); | 196 | + this.$message.error(msg || "导入失败"); |
| 197 | this.$router.push({ | 197 | this.$router.push({ |
| 198 | path: "/errorInfo", | 198 | path: "/errorInfo", |
| 199 | query: { | 199 | query: { | ... | ... |
| ... | @@ -61,7 +61,7 @@ | ... | @@ -61,7 +61,7 @@ |
| 61 | > | 61 | > |
| 62 | <template slot-scope="scope"> | 62 | <template slot-scope="scope"> |
| 63 | <el-input | 63 | <el-input |
| 64 | - type="number" | 64 | + type="text" |
| 65 | v-model="scope.row.calculateDay" | 65 | v-model="scope.row.calculateDay" |
| 66 | :disabled="scope.row.edit" | 66 | :disabled="scope.row.edit" |
| 67 | min="-7" | 67 | min="-7" |
| ... | @@ -71,6 +71,17 @@ | ... | @@ -71,6 +71,17 @@ |
| 71 | placeholder="" | 71 | placeholder="" |
| 72 | size="small" | 72 | size="small" |
| 73 | /> | 73 | /> |
| 74 | + <!-- <el-input | ||
| 75 | + type="number" | ||
| 76 | + v-model="scope.row.calculateDay" | ||
| 77 | + :disabled="scope.row.edit" | ||
| 78 | + min="-7" | ||
| 79 | + max="7" | ||
| 80 | + v-input-filter | ||
| 81 | + clearable | ||
| 82 | + placeholder="" | ||
| 83 | + size="small" | ||
| 84 | + /> --> | ||
| 74 | </template> | 85 | </template> |
| 75 | </el-table-column> | 86 | </el-table-column> |
| 76 | <el-table-column | 87 | <el-table-column |
| ... | @@ -499,12 +510,15 @@ export default { | ... | @@ -499,12 +510,15 @@ export default { |
| 499 | if (event.target.value) { | 510 | if (event.target.value) { |
| 500 | if (Number(event.target.value) < -7) { | 511 | if (Number(event.target.value) < -7) { |
| 501 | event.target.value = ""; | 512 | event.target.value = ""; |
| 513 | + this.msgError("加减天数最小不能低于7天"); | ||
| 502 | } else if (Number(event.target.value) > 7) { | 514 | } else if (Number(event.target.value) > 7) { |
| 503 | event.target.value = ""; | 515 | event.target.value = ""; |
| 516 | + this.msgError("加减天数最小不能大于7天"); | ||
| 504 | } else if (/[\.]/.test(Number(event.target.value))) { | 517 | } else if (/[\.]/.test(Number(event.target.value))) { |
| 505 | // 浮点数时 | 518 | // 浮点数时 |
| 506 | event.target.value = ""; | 519 | event.target.value = ""; |
| 507 | } else { | 520 | } else { |
| 521 | + | ||
| 508 | } | 522 | } |
| 509 | event.target.dispatchEvent(new Event("input")); | 523 | event.target.dispatchEvent(new Event("input")); |
| 510 | } | 524 | } |
| ... | @@ -552,7 +566,7 @@ export default { | ... | @@ -552,7 +566,7 @@ export default { |
| 552 | } | 566 | } |
| 553 | }); | 567 | }); |
| 554 | data.list.flightRankDtoList.map((item) => { | 568 | data.list.flightRankDtoList.map((item) => { |
| 555 | - item.calculateDay = Number(item.calculateDay); | 569 | + item.calculateDay = item.calculateDay; |
| 556 | }); | 570 | }); |
| 557 | // ET86配舱航班顺位 | 571 | // ET86配舱航班顺位 |
| 558 | this.tableData = data.list.flightRankDtoList; | 572 | this.tableData = data.list.flightRankDtoList; | ... | ... |
-
Please register or login to post a comment