You need to sign in or sign up before continuing.
hao.wang

修改et86选择航线值清空问题

...@@ -630,7 +630,7 @@ export default { ...@@ -630,7 +630,7 @@ export default {
630 .catch(() => {}); 630 .catch(() => {});
631 }, 631 },
632 // 航线查询 632 // 航线查询
633 - getQueryRouteByFltNo(item) { 633 + getQueryRouteByFltNo(item, curRow) {
634 this.tableAttr.tableLoading = true; 634 this.tableAttr.tableLoading = true;
635 this.tableData[this.currentIndex].flightRoute; 635 this.tableData[this.currentIndex].flightRoute;
636 queryRouteByFltNo(item) 636 queryRouteByFltNo(item)
...@@ -654,7 +654,9 @@ export default { ...@@ -654,7 +654,9 @@ export default {
654 this.tableData[this.currentIndex].flightRoute = ""; 654 this.tableData[this.currentIndex].flightRoute = "";
655 } 655 }
656 } 656 }
657 - this.tableData[this.currentIndex].flightRoute = ""; 657 + if (!curRow) {
658 + this.tableData[this.currentIndex].flightRoute = "";
659 + }
658 }) 660 })
659 .catch(() => {}); 661 .catch(() => {});
660 }, 662 },
...@@ -692,7 +694,7 @@ export default { ...@@ -692,7 +694,7 @@ export default {
692 }; 694 };
693 // 航班号输入框失焦时判断有没有航班号,并且航班号是不是发生了变化调用航线查询 695 // 航班号输入框失焦时判断有没有航班号,并且航班号是不是发生了变化调用航线查询
694 if (params.fltNo && params.fltNo !== this.currentFlightNo) { 696 if (params.fltNo && params.fltNo !== this.currentFlightNo) {
695 - this.getQueryRouteByFltNo(params); // 航线查询 697 + this.getQueryRouteByFltNo(params, ""); // 航线查询
696 } 698 }
697 // 航班号为空时 699 // 航班号为空时
698 if (params.fltNo.length == 0) { 700 if (params.fltNo.length == 0) {
...@@ -710,7 +712,7 @@ export default { ...@@ -710,7 +712,7 @@ export default {
710 // 出现下拉框时触发 712 // 出现下拉框时触发
711 if (e) { 713 if (e) {
712 // 航线查询 714 // 航线查询
713 - this.getQueryRouteByFltNo(params); 715 + this.getQueryRouteByFltNo(params, row.flightRoute);
714 } 716 }
715 }, 717 },
716 // 添加ET86配舱航班顺位 718 // 添加ET86配舱航班顺位
......