|
@@ -291,6 +291,12 @@ const pubFunc = (listValues, target, type?) => {
|
|
|
return newObj;
|
|
|
};
|
|
|
|
|
|
+const parseDate = (date: string) => {
|
|
|
+ const dates = date.split("-");
|
|
|
+ const newDate = dates.shift();
|
|
|
+ return dates.join("-");
|
|
|
+};
|
|
|
+
|
|
|
//获取小时峰值分布
|
|
|
const hourlyPeakFunc = async () => {
|
|
|
loading1.value = true;
|
|
@@ -310,6 +316,9 @@ const waybillTrendFunc = async () => {
|
|
|
{ flightDate1: form.value.startDate, flightDate2: form.value.endDate },
|
|
|
])) as any;
|
|
|
if (listValues && isValue(listValues)) {
|
|
|
+ listValues.forEach((item) => {
|
|
|
+ item.jobTime = parseDate(item["jobTime"]);
|
|
|
+ });
|
|
|
waybillTrendObj.value = pubFunc(listValues, optionLeft);
|
|
|
}
|
|
|
loading2.value = false;
|
|
@@ -319,7 +328,7 @@ const waybillTrendFunc = async () => {
|
|
|
const nodePeakFunc = async () => {
|
|
|
loading3.value = true;
|
|
|
const listValues = (await getPublicData(DATACONTENT_ID.jscAirlineAbnormalId, [
|
|
|
- { fd1: form.value.startDate, fd2: form.value.endDate, fttp: "国内出港" },
|
|
|
+ { fd1: form.value.startDate, fd2: form.value.endDate, fttp: "国内离港" },
|
|
|
])) as any;
|
|
|
if (listValues && isValue(listValues)) {
|
|
|
const newObj = _.cloneDeep(airCompaneBaggage.option.baseOption);
|
|
@@ -379,7 +388,7 @@ const airlineAbnormalFunc = async () => {
|
|
|
{
|
|
|
fd1: form.value.startDate,
|
|
|
fd2: form.value.endDate,
|
|
|
- fttp: "国内出港",
|
|
|
+ fttp: "国内离港",
|
|
|
},
|
|
|
])) as any;
|
|
|
if (listValues && isValue(listValues)) {
|
|
@@ -410,7 +419,7 @@ const airlineFunc = async () => {
|
|
|
},
|
|
|
]),
|
|
|
listValues.forEach((item) => {
|
|
|
- item.jobTime = item["nodeCode"];
|
|
|
+ item.jobTime = NODE_CODE[item["nodeCode"]] ?? item["nodeCode"];
|
|
|
item.weight = item["flightNum"];
|
|
|
});
|
|
|
airlineObj.value = pubFunc(listValues, newObj, true);
|
|
@@ -429,20 +438,10 @@ const pickingFuncs = async () => {
|
|
|
])) as any;
|
|
|
if (listValues && isValue(listValues)) {
|
|
|
const newObj: any = _.cloneDeep(airCompaneBaggage.option.baseOption);
|
|
|
- (newObj.dataZoom = [
|
|
|
- {
|
|
|
- id: "dataZoomX",
|
|
|
- type: "slider",
|
|
|
- xAxisIndex: [0],
|
|
|
- filterMode: "filter",
|
|
|
- start: 0,
|
|
|
- end: 40,
|
|
|
- },
|
|
|
- ]),
|
|
|
- listValues.forEach((item) => {
|
|
|
- item.jobTime = item["flightDate"];
|
|
|
- item.weight = item["flightNum"];
|
|
|
- });
|
|
|
+ listValues.forEach((item) => {
|
|
|
+ item.jobTime = parseDate(item["flightDate"]);
|
|
|
+ item.weight = item["flightNum"];
|
|
|
+ });
|
|
|
pickingObj.value = pubFunc(listValues, newObj, true);
|
|
|
}
|
|
|
loading8.value = false;
|