|
@@ -228,7 +228,7 @@ const mapOptions = ref<any>({
|
|
|
const flightNums = ref<number>(0);
|
|
|
const stockNums = ref<number>(0);
|
|
|
const form = ref({
|
|
|
- startDate: parseTime(Date.now(), "{y}-{m}-{d}"),
|
|
|
+ startDate: parseTime(Date.now() - 24 * 60 * 60 * 1000 * 7, "{y}-{m}-{d}"),
|
|
|
endDate: parseTime(Date.now(), "{y}-{m}-{d}"),
|
|
|
});
|
|
|
|
|
@@ -309,8 +309,8 @@ const pubFunc = (listValues, target) => {
|
|
|
//获取小时峰值分布
|
|
|
const hourlyPeakFunc = async () => {
|
|
|
const listValues = (await getPublicData(DATACONTENT_ID.jscCgHourlyPeakId, [
|
|
|
- form.value.startDate,
|
|
|
- form.value.endDate,
|
|
|
+ { fd1: form.value.startDate },
|
|
|
+ { fd2: form.value.endDate },
|
|
|
])) as any;
|
|
|
hourlyPeakObj.value = pubFunc(listValues, optionLeft);
|
|
|
};
|
|
@@ -318,8 +318,8 @@ const hourlyPeakFunc = async () => {
|
|
|
//运单趋势分析
|
|
|
const waybillTrendFunc = async () => {
|
|
|
const listValues = (await getPublicData(DATACONTENT_ID.jscCgWaybillTrendId, [
|
|
|
- form.value.startDate,
|
|
|
- form.value.endDate,
|
|
|
+ { fd1: form.value.startDate },
|
|
|
+ { fd2: form.value.endDate },
|
|
|
])) as any;
|
|
|
waybillTrendObj.value = pubFunc(listValues, optionLeft);
|
|
|
};
|
|
@@ -327,8 +327,8 @@ const waybillTrendFunc = async () => {
|
|
|
//节点峰值
|
|
|
const nodePeakFunc = async () => {
|
|
|
const listValues = (await getPublicData(DATACONTENT_ID.jscCgNodePeakId, [
|
|
|
- form.value.startDate,
|
|
|
- form.value.endDate,
|
|
|
+ { fd1: form.value.startDate },
|
|
|
+ { fd2: form.value.endDate },
|
|
|
])) as any;
|
|
|
const newObj = _.cloneDeep(hourPeak.option);
|
|
|
const arr = sortClass(listValues);
|
|
@@ -378,10 +378,10 @@ const nodePeakFunc = async () => {
|
|
|
|
|
|
//航班数&运单数
|
|
|
const numbersFunc = async () => {
|
|
|
- const listValues = (await getPublicData(
|
|
|
- DATACONTENT_ID.jscCgNumbersId,
|
|
|
- []
|
|
|
- )) as any;
|
|
|
+ const listValues = (await getPublicData(DATACONTENT_ID.jscCgNumbersId, [
|
|
|
+ { fd1: form.value.startDate },
|
|
|
+ { fd2: form.value.endDate },
|
|
|
+ ])) as any;
|
|
|
const { flightNum, stockNum } = listValues[0];
|
|
|
flightNums.value = flightNum;
|
|
|
stockNums.value = stockNum;
|
|
@@ -391,7 +391,7 @@ const numbersFunc = async () => {
|
|
|
const airlineTrafficFunc = async () => {
|
|
|
const listValues = (await getPublicData(
|
|
|
DATACONTENT_ID.jscCgAirlineTrafficId,
|
|
|
- [form.value.startDate, form.value.endDate]
|
|
|
+ [{ fd1: form.value.startDate }, { fd2: form.value.endDate }]
|
|
|
)) as any;
|
|
|
listValues.forEach((item) => {
|
|
|
item.jobTime = item["IACACode"];
|
|
@@ -405,8 +405,8 @@ const airlineTrafficFunc = async () => {
|
|
|
//航班预警报警分析
|
|
|
const airlineAbnormalFunc = async () => {
|
|
|
const listValues = (await getPublicData(DATACONTENT_ID.jscAirlineAbnormalId, [
|
|
|
- { flightDate1: form.value.startDate },
|
|
|
- { flightDate2: form.value.endDate },
|
|
|
+ { fd1: form.value.startDate },
|
|
|
+ { fd2: form.value.endDate },
|
|
|
])) as any;
|
|
|
// console.log(listValues);
|
|
|
};
|