Elements-SY

modify

......@@ -230,15 +230,23 @@ export default {
let noDateRouteList = data.routeList.filter(
(item) => item.etesRule == "N"
);
// 航班种类和日期级别处理默认数据
const flightKindName = ["Purple Tail", "White Tail"].includes(
this.$route.query.flightKindName
);
// 航班信息维护从非日期级别拿数据时要删掉id 和 historyId
if (
this.$route.query.flightKindName == "Purple Tail" ||
this.$route.query.flightKindName == "White Tail"
) {
if (flightKindName || this.$route.query.querySpecifyData == "1") {
data.list.map((item) => {
item.status = "1";
delete item.id;
delete item.historyId;
if (item.status == "1") {
delete item.id;
delete item.historyId;
}
// 开启 || 保存【若开启则不用重置status和删除id & historyId】
if ((item.status = "3")) {
item.status = "1";
delete item.id;
delete item.historyId;
}
return item;
});
}
......@@ -274,10 +282,6 @@ export default {
});
});
},
dealFlightKind(){
},
// 【接口调用和数据去重整合】日期级别
dateLevelRoute(parmas) {
return new Promise((resolve, reject) => {
......