Elements-SY

modify

...@@ -230,15 +230,23 @@ export default { ...@@ -230,15 +230,23 @@ export default {
230 let noDateRouteList = data.routeList.filter( 230 let noDateRouteList = data.routeList.filter(
231 (item) => item.etesRule == "N" 231 (item) => item.etesRule == "N"
232 ); 232 );
233 + // 航班种类和日期级别处理默认数据
234 + const flightKindName = ["Purple Tail", "White Tail"].includes(
235 + this.$route.query.flightKindName
236 + );
233 // 航班信息维护从非日期级别拿数据时要删掉id 和 historyId 237 // 航班信息维护从非日期级别拿数据时要删掉id 和 historyId
234 - if ( 238 + if (flightKindName || this.$route.query.querySpecifyData == "1") {
235 - this.$route.query.flightKindName == "Purple Tail" ||
236 - this.$route.query.flightKindName == "White Tail"
237 - ) {
238 data.list.map((item) => { 239 data.list.map((item) => {
239 - item.status = "1"; 240 + if (item.status == "1") {
240 - delete item.id; 241 + delete item.id;
241 - delete item.historyId; 242 + delete item.historyId;
243 + }
244 + // 开启 || 保存【若开启则不用重置status和删除id & historyId】
245 + if ((item.status = "3")) {
246 + item.status = "1";
247 + delete item.id;
248 + delete item.historyId;
249 + }
242 return item; 250 return item;
243 }); 251 });
244 } 252 }
...@@ -274,10 +282,6 @@ export default { ...@@ -274,10 +282,6 @@ export default {
274 }); 282 });
275 }); 283 });
276 }, 284 },
277 -
278 - dealFlightKind(){
279 -
280 - },
281 // 【接口调用和数据去重整合】日期级别 285 // 【接口调用和数据去重整合】日期级别
282 dateLevelRoute(parmas) { 286 dateLevelRoute(parmas) {
283 return new Promise((resolve, reject) => { 287 return new Promise((resolve, reject) => {
......