hao.wang

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

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