hao.wang

修改清空航班时,其他字段未清除问题

...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
55 @blur="blurSearch" 55 @blur="blurSearch"
56 placeholder="请输入航班号" 56 placeholder="请输入航班号"
57 size="small" 57 size="small"
58 + @clear="clearFlight(scope)"
58 /> 59 />
59 </template> 60 </template>
60 </el-table-column> 61 </el-table-column>
...@@ -665,6 +666,12 @@ export default { ...@@ -665,6 +666,12 @@ export default {
665 this.currentFlightNo = row.flightNo.trim(); // 当前航班号 666 this.currentFlightNo = row.flightNo.trim(); // 当前航班号
666 this.currentIndex = $index; 667 this.currentIndex = $index;
667 }, 668 },
669 + // 清空航班号时同时清除其他字段
670 + clearFlight({ $index, row }) {
671 + this.tableData[$index].flightRoute = "";
672 + this.tableData[$index].calculateDay = "";
673 + this.tableData[$index].permitOverweight = false;
674 + },
668 // 失焦查询 675 // 失焦查询
669 blurSearch() { 676 blurSearch() {
670 // 转大写字母 677 // 转大写字母
......