Showing
1 changed file
with
29 additions
and
41 deletions
| ... | @@ -604,24 +604,7 @@ export default { | ... | @@ -604,24 +604,7 @@ export default { |
| 604 | this.infoForm.route = this.$route.params.route | 604 | this.infoForm.route = this.$route.params.route |
| 605 | this.getIdDimension(this.$route.params.id) | 605 | this.getIdDimension(this.$route.params.id) |
| 606 | } else { | 606 | } else { |
| 607 | - let obj = { | 607 | + this.getRouteDimension(this.getSreachData()) |
| 608 | - fltNo: this.$route.params.fltNo, | ||
| 609 | - fltDate: this.$route.params.fltDate, | ||
| 610 | - status: this.$route.params.status ? this.$route.params.status : '' | ||
| 611 | - } | ||
| 612 | - | ||
| 613 | - if (this.routeSatus == 'flightInformationMaintenanceWhite Tail') { | ||
| 614 | - this.infoForm.route = this.$route.params.route | ||
| 615 | - obj.route = this.$route.params.route | ||
| 616 | - obj.flightRouteListStr = this.$route.params.route | ||
| 617 | - } else if (this.routeSatus == 'flightInformationMaintenancePurple Tail') { | ||
| 618 | - this.infoForm.route = '' | ||
| 619 | - obj.route = '' | ||
| 620 | - obj.flightRouteListStr = this.$route.params.route | ||
| 621 | - } else { | ||
| 622 | - obj.route = this.$route.params.route ? this.$route.params.route : '' | ||
| 623 | - } | ||
| 624 | - this.getRouteDimension(obj) | ||
| 625 | } | 608 | } |
| 626 | } | 609 | } |
| 627 | 610 | ||
| ... | @@ -646,22 +629,7 @@ export default { | ... | @@ -646,22 +629,7 @@ export default { |
| 646 | if (this.routeSatus == 'dmLog') { | 629 | if (this.routeSatus == 'dmLog') { |
| 647 | this.getIdDimension(this.$route.params.id) | 630 | this.getIdDimension(this.$route.params.id) |
| 648 | } else { | 631 | } else { |
| 649 | - let obj = { | 632 | + this.getRouteDimension(this.getSreachData()) // 修改时 & 详情时 |
| 650 | - fltNo: this.$route.params.fltNo, | ||
| 651 | - fltDate: this.$route.params.fltDate, | ||
| 652 | - status: this.$route.params.status ? this.$route.params.status : '' | ||
| 653 | - } | ||
| 654 | - | ||
| 655 | - if (this.routeSatus == 'flightInformationMaintenanceWhite Tail') { | ||
| 656 | - obj.route = this.$route.params.route | ||
| 657 | - obj.flightRouteListStr = this.$route.params.route | ||
| 658 | - } else if (this.routeSatus == 'flightInformationMaintenancePurple Tail') { | ||
| 659 | - obj.route = '' | ||
| 660 | - obj.flightRouteListStr = this.$route.params.route | ||
| 661 | - } else { | ||
| 662 | - obj.route = this.$route.params.route ? this.$route.params.route : '' | ||
| 663 | - } | ||
| 664 | - this.getRouteDimension(obj) // 修改时 & 详情时 | ||
| 665 | } | 633 | } |
| 666 | } | 634 | } |
| 667 | }, | 635 | }, |
| ... | @@ -809,13 +777,13 @@ export default { | ... | @@ -809,13 +777,13 @@ export default { |
| 809 | flightRoute: route.route, | 777 | flightRoute: route.route, |
| 810 | routePriority: route.routePriority, | 778 | routePriority: route.routePriority, |
| 811 | }) | 779 | }) |
| 812 | - this.newRoute(sub) | 780 | + // this.newRoute(JSON.parse(JSON.stringify(this.infoForm.list)).length - 1) |
| 813 | } | 781 | } |
| 814 | } else { | 782 | } else { |
| 815 | infoRouteList.forEach((item, index) => { | 783 | infoRouteList.forEach((item, index) => { |
| 816 | if (item == route.route) { | 784 | if (item == route.route) { |
| 817 | this.infoForm.list.push( | 785 | this.infoForm.list.push( |
| 818 | - this.dataHandle(res.data.list[index]) | 786 | + this.dataHandle(JSON.parse(JSON.stringify(res.data.list[index]))) |
| 819 | ) | 787 | ) |
| 820 | } | 788 | } |
| 821 | }) | 789 | }) |
| ... | @@ -828,7 +796,7 @@ export default { | ... | @@ -828,7 +796,7 @@ export default { |
| 828 | if (item == route.route) { | 796 | if (item == route.route) { |
| 829 | routeStatus = 2 | 797 | routeStatus = 2 |
| 830 | this.infoForm.list.push( | 798 | this.infoForm.list.push( |
| 831 | - this.dataHandle(res.data.list[index]) | 799 | + this.dataHandle(JSON.parse(JSON.stringify(res.data.list[index]))) |
| 832 | ) | 800 | ) |
| 833 | } | 801 | } |
| 834 | }) | 802 | }) |
| ... | @@ -856,12 +824,12 @@ export default { | ... | @@ -856,12 +824,12 @@ export default { |
| 856 | flightRoute: route.route, | 824 | flightRoute: route.route, |
| 857 | routePriority: route.routePriority, | 825 | routePriority: route.routePriority, |
| 858 | }) | 826 | }) |
| 859 | - }else{ | 827 | + } else { |
| 860 | let routeStatus = 1 | 828 | let routeStatus = 1 |
| 861 | res.data.list.forEach(item => { | 829 | res.data.list.forEach(item => { |
| 862 | if (item.flightRoute == route.route) { | 830 | if (item.flightRoute == route.route) { |
| 863 | - item.id = undefined | 831 | + // item.id = undefined |
| 864 | - item.status = undefined | 832 | + // item.status = undefined |
| 865 | routeStatus = 2 | 833 | routeStatus = 2 |
| 866 | this.infoForm.list.push( | 834 | this.infoForm.list.push( |
| 867 | this.dataHandle(item) | 835 | this.dataHandle(item) |
| ... | @@ -876,7 +844,7 @@ export default { | ... | @@ -876,7 +844,7 @@ export default { |
| 876 | flightRoute: route.route, | 844 | flightRoute: route.route, |
| 877 | routePriority: route.routePriority, | 845 | routePriority: route.routePriority, |
| 878 | }) | 846 | }) |
| 879 | - this.newRoute(sub) | 847 | + // this.newRoute(sub) |
| 880 | } | 848 | } |
| 881 | } | 849 | } |
| 882 | }) | 850 | }) |
| ... | @@ -1148,6 +1116,25 @@ export default { | ... | @@ -1148,6 +1116,25 @@ export default { |
| 1148 | } | 1116 | } |
| 1149 | } | 1117 | } |
| 1150 | }, | 1118 | }, |
| 1119 | + //查询参数获取 | ||
| 1120 | + getSreachData() { | ||
| 1121 | + let obj = { | ||
| 1122 | + fltNo: this.$route.params.fltNo, | ||
| 1123 | + fltDate: this.$route.params.fltDate, | ||
| 1124 | + status: this.$route.params.status ? this.$route.params.status : '' | ||
| 1125 | + } | ||
| 1126 | + | ||
| 1127 | + if (this.routeSatus == 'flightInformationMaintenanceWhite Tail') { | ||
| 1128 | + obj.route = this.$route.params.route | ||
| 1129 | + obj.flightRouteListStr = this.$route.params.route | ||
| 1130 | + } else if (this.routeSatus == 'flightInformationMaintenancePurple Tail') { | ||
| 1131 | + obj.route = '' | ||
| 1132 | + obj.flightRouteListStr = this.$route.params.route | ||
| 1133 | + } else { | ||
| 1134 | + obj.route = this.$route.params.route ? this.$route.params.route : '' | ||
| 1135 | + } | ||
| 1136 | + return obj | ||
| 1137 | + }, | ||
| 1151 | //保存 | 1138 | //保存 |
| 1152 | submit(val) { | 1139 | submit(val) { |
| 1153 | let routeArr = [] | 1140 | let routeArr = [] |
| ... | @@ -1193,6 +1180,7 @@ export default { | ... | @@ -1193,6 +1180,7 @@ export default { |
| 1193 | this.$forceUpdate() | 1180 | this.$forceUpdate() |
| 1194 | this.msgSuccess('保存成功!') | 1181 | this.msgSuccess('保存成功!') |
| 1195 | this.infoForm.list[val] = this.dataHandle(res.data) | 1182 | this.infoForm.list[val] = this.dataHandle(res.data) |
| 1183 | + // this.getRouteDimension(this.getSreachData()) | ||
| 1196 | } else { | 1184 | } else { |
| 1197 | this.msgWarning(res.msg) | 1185 | this.msgWarning(res.msg) |
| 1198 | } | 1186 | } | ... | ... |
-
Please register or login to post a comment