indexIn.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <template>
  2. <div class="dashboard">
  3. <ComHead :tabs-index="3" />
  4. <div class="dashboard-content">
  5. <div class="dashboard-content-top flex">
  6. <div class="dashboard-content-top-left">
  7. <div class="dashboard-content-top-left-item">
  8. <div class="dashboard-content-top-left-item-top">
  9. <div class="dashboard-content-top-left-item-top-title">
  10. 小时峰值分析
  11. </div>
  12. <div class="dashboard-content-top-left-item-top-time" @click="showDatePicker(showTimeMsg.HourlyPeak)">
  13. <el-icon color="#ffffff" size="18">
  14. <Calendar />
  15. </el-icon>
  16. <el-icon color="#ffffff">
  17. <CaretBottom />
  18. </el-icon>
  19. </div>
  20. </div>
  21. <div v-loading="loading1" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-left-item-bottom">
  22. <Echarts id="ww1" :option="hourlyPeakObj" />
  23. </div>
  24. </div>
  25. <div class="dashboard-content-top-left-item">
  26. <div class="dashboard-content-top-left-item-top">
  27. <div class="dashboard-content-top-left-item-top-title">
  28. 日趋势分析
  29. </div>
  30. <div class="dashboard-content-top-left-item-top-time" @click="showDatePicker(showTimeMsg.WaybillTrend)">
  31. <el-icon color="#ffffff" size="18">
  32. <Calendar />
  33. </el-icon>
  34. <el-icon color="#ffffff">
  35. <CaretBottom />
  36. </el-icon>
  37. </div>
  38. </div>
  39. <div v-loading="loading2" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-left-item-bottom">
  40. <Echarts id="ww12" :option="waybillTrendObj" />
  41. </div>
  42. </div>
  43. <div class="dashboard-content-top-left-item">
  44. <div class="dashboard-content-top-left-item-top">
  45. <div class="dashboard-content-top-left-item-top-title">
  46. 始发站统计分析
  47. </div>
  48. <div class="dashboard-content-bottom-left-top-time" @click="showDatePicker(showTimeMsg.NodePeak)">
  49. <el-icon color="#ffffff" size="18">
  50. <Calendar />
  51. </el-icon>
  52. <el-icon color="#ffffff">
  53. <CaretBottom />
  54. </el-icon>
  55. </div>
  56. </div>
  57. <div v-loading="loading3" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-left-item-bottom">
  58. <Echarts id="ww4" :option="nodePeakObj" />
  59. </div>
  60. </div>
  61. </div>
  62. <!-- 地图 -->
  63. <div class="dashboard-content-top-center">
  64. <div v-loading="loading4" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-center-top">
  65. <div class="dashboard-content-top-center-top-list">
  66. <div class="dashboard-content-top-center-top-list-txt">
  67. 今日计划航班数
  68. </div>
  69. <div class="dashboard-content-top-center-top-list-num">
  70. {{ flightNums }}
  71. </div>
  72. </div>
  73. <div class="dashboard-content-top-center-top-list">
  74. <div class="dashboard-content-top-center-top-list-txt">
  75. 已完成航班数
  76. </div>
  77. <div class="dashboard-content-top-center-top-list-num">
  78. {{ stockNums }}
  79. </div>
  80. </div>
  81. <div class="dashboard-content-top-center-top-list">
  82. <div class="dashboard-content-top-center-top-list-txt">
  83. 已卸载总量(吨)
  84. </div>
  85. <div class="dashboard-content-top-center-top-list-num">
  86. {{ formatWeight(weightNums) }}
  87. </div>
  88. </div>
  89. </div>
  90. <div v-loading="loading5" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-center-bottom">
  91. <div class="dashboard-content-top-center-bottom-title">
  92. 航班动态跟踪
  93. </div>
  94. <div class="dashboard-content-top-center-bottom-content">
  95. <div class="dashboard-content-top-center-bottom-content-head">
  96. <div class="dashboard-content-top-center-bottom-content-head-list">
  97. 公司/航班号
  98. </div>
  99. <div class="dashboard-content-top-center-bottom-content-head-list">
  100. 航班状态
  101. </div>
  102. <div class="dashboard-content-top-center-bottom-content-head-list">
  103. 始发站/经停
  104. </div>
  105. <div class="dashboard-content-top-center-bottom-content-head-list">
  106. 计划到达
  107. </div>
  108. <div class="dashboard-content-top-center-bottom-content-head-list">
  109. 预计到达
  110. </div>
  111. <div class="dashboard-content-top-center-bottom-content-head-list">
  112. 机型
  113. </div>
  114. <div class="dashboard-content-top-center-bottom-content-head-list">
  115. 类型
  116. </div>
  117. </div>
  118. <div ref="scrollContent" class="dashboard-content-top-center-bottom-content-bottom">
  119. <vue3-seamless-scroll :list="listData" :limitScrollNum="limitScrollNum" :hover-stop="true" :hover="true" :step="0.3">
  120. <div v-for="(item, index) in listData" :key="index" class="dashboard-content-top-center-bottom-content-bottom-list">
  121. <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  122. {{ item.flightNo }}
  123. </div>
  124. <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  125. {{ item.flightState }}
  126. </div>
  127. <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  128. {{ item.airport }}
  129. </div>
  130. <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  131. {{ item.planTime }}
  132. </div>
  133. <!-- <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  134. {{ item.acTime }}
  135. </div> -->
  136. <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  137. {{ item.preTime ? item.preTime : '--'}}
  138. </div>
  139. <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  140. {{ item.planeType }}
  141. </div>
  142. <div class="dashboard-content-top-center-bottom-content-bottom-list-txt">
  143. {{ item.KHT }}
  144. </div>
  145. </div>
  146. </vue3-seamless-scroll>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="dashboard-content-top-right">
  152. <div class="dashboard-content-top-right-item">
  153. <div class="dashboard-content-top-right-item-top">
  154. <div class="dashboard-content-top-right-item-top-title">
  155. 航司统计分析
  156. </div>
  157. <div class="dashboard-content-top-right-item-top-time" @click="showDatePicker(showTimeMsg.AirlineTraffic)">
  158. <el-icon color="#ffffff" size="18">
  159. <Calendar />
  160. </el-icon>
  161. <el-icon color="#ffffff">
  162. <CaretBottom />
  163. </el-icon>
  164. </div>
  165. </div>
  166. <div v-loading="loading6" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-right-item-bottom">
  167. <Echarts id="a1" :option="airlineTrafficObj" />
  168. </div>
  169. </div>
  170. <div class="dashboard-content-top-right-item">
  171. <div class="dashboard-content-top-right-item-top">
  172. <div class="dashboard-content-top-right-item-top-title">
  173. 特货分类统计
  174. </div>
  175. <div class="dashboard-content-top-right-item-top-time" @click="showDatePicker(showTimeMsg.SpecialClassification)">
  176. <el-icon color="#ffffff" size="18">
  177. <Calendar />
  178. </el-icon>
  179. <el-icon color="#ffffff">
  180. <CaretBottom />
  181. </el-icon>
  182. </div>
  183. <div class="dashboard-content-top-right-item-top-time">
  184. <el-dropdown trigger="click" @command="handleCommand">
  185. <span class="icons">
  186. <span class="icons-txt">{{ specialGoods }}</span>
  187. <el-icon color="#ffffff">
  188. <CaretBottom />
  189. </el-icon>
  190. </span>
  191. <template #dropdown>
  192. <el-dropdown-menu>
  193. <el-dropdown-item v-for="item in specialGoodsDatas" :key="item.specialTypeName" :command="item.specialTypeName">{{ item.specialTypeName }}</el-dropdown-item>
  194. </el-dropdown-menu>
  195. </template>
  196. </el-dropdown>
  197. </div>
  198. </div>
  199. <div v-loading="loading7" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-left-item-bottom">
  200. <Echarts id="ww44" :option="airlineObj" />
  201. </div>
  202. </div>
  203. <div class="dashboard-content-top-right-item">
  204. <div class="dashboard-content-top-right-item-top">
  205. <div class="dashboard-content-top-right-item-top-title">
  206. 货机货量统计
  207. </div>
  208. <div class="dashboard-content-top-right-item-top-time" @click="showDatePicker(showTimeMsg.TallyWeight)">
  209. <el-icon color="#ffffff" size="18">
  210. <Calendar />
  211. </el-icon>
  212. <el-icon color="#ffffff">
  213. <CaretBottom />
  214. </el-icon>
  215. </div>
  216. <div class="dashboard-content-top-right-item-top-time">
  217. <el-dropdown trigger="click" @command="handleWeightType">
  218. <span class="icons">
  219. <span class="icons-txt">{{ weightType }}</span>
  220. <el-icon color="#ffffff">
  221. <CaretBottom />
  222. </el-icon>
  223. </span>
  224. <template #dropdown>
  225. <el-dropdown-menu>
  226. <el-dropdown-item command="进港">进港</el-dropdown-item>
  227. <el-dropdown-item command="出港">出港</el-dropdown-item>
  228. </el-dropdown-menu>
  229. </template>
  230. </el-dropdown>
  231. </div>
  232. </div>
  233. <div v-loading="loading8" element-loading-text="数据加载中..." element-loading-svg-view-box="-10, -10, 50, 50" element-loading-background="rgba(0,0,0, 0.3)" class="dashboard-content-top-left-item-bottom">
  234. <Echarts id="ww45" :option="tallyObj" />
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <Dialog :flag="flag" msg-title="日期选择" @resetForm="resetForm" @submitForm="submitForm">
  241. <el-form :model="form" label-width="120px">
  242. <el-form-item label="开始日期">
  243. <el-date-picker :disabled-date="disabledStartDate" v-model="form.startDate" type="date" placeholder="请选择开始日期" size="default" format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
  244. </el-form-item>
  245. <el-form-item label="结束日期">
  246. <el-date-picker :disabled-date="disabledEndDate" v-model="form.endDate" type="date" placeholder="请选择结束日期" size="default" format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
  247. </el-form-item>
  248. </el-form>
  249. </Dialog>
  250. </div>
  251. </template>
  252. <script setup lang="ts">
  253. import { ref, onMounted } from "vue";
  254. import { Vue3SeamlessScroll } from "vue3-seamless-scroll";
  255. import Echarts from "@/components/Echarts/commonChartsBar.vue";
  256. import ComHead from "./components/comHead.vue";
  257. import { Calendar, CaretBottom } from "@element-plus/icons-vue";
  258. import Dialog from "@/components/dialog/index.vue";
  259. import { usePublic, showTimeMsg } from "./hooks/usePublic";
  260. import nodeCode from "./hooks/nodeCode";
  261. import { parseTime, isValue } from "@/utils/validate";
  262. import * as _ from "lodash";
  263. const {
  264. optionLeft,
  265. airCompaneBaggage,
  266. airlineAbnormalBaggage,
  267. airStutas,
  268. getPublicData,
  269. formatGoods,
  270. formatWeight,
  271. } = usePublic();
  272. const timePickerName = ref<number>(0);
  273. const limitScrollNum = ref<number>(13);
  274. const scrollContent = ref<HTMLElement>();
  275. const flag = ref<boolean>(false);
  276. const loading1 = ref<boolean>(false);
  277. const loading2 = ref<boolean>(false);
  278. const loading3 = ref<boolean>(false);
  279. const loading4 = ref<boolean>(false);
  280. const loading5 = ref<boolean>(false);
  281. const loading6 = ref<boolean>(false);
  282. const loading7 = ref<boolean>(false);
  283. const loading8 = ref<boolean>(false);
  284. const hourlyPeakObj = ref<any>({});
  285. const waybillTrendObj = ref<any>({});
  286. const nodePeakObj = ref<any>({});
  287. const airlineTrafficObj = ref<any>({});
  288. const airlineObj = ref<any>({});
  289. const tallyObj = ref<any>({});
  290. const flightNums = ref<number>(0);
  291. const stockNums = ref<number>(0);
  292. const weightNums = ref<number | string>(0);
  293. const specialGoods = ref<string>("分类");
  294. const specialGoodsDatas = ref<any>([]);
  295. const specialGoodsAll = ref<any>([]);
  296. const weightType = ref("进港");
  297. const form = ref({
  298. startDate: parseTime(Date.now() - 24 * 60 * 60 * 1000 * 7, "{y}-{m}-{d}"),
  299. endDate: parseTime(Date.now(), "{y}-{m}-{d}"),
  300. });
  301. const dateNow = ref({
  302. time: parseTime(Date.now(), "{y}-{m}-{d}"),
  303. });
  304. const listData = ref<any>([]);
  305. const disabledStartDate = (time: Date) => {
  306. const timer: any = form.value.endDate;
  307. const data = new Date(timer);
  308. return time.getTime() > data.getTime();
  309. };
  310. const disabledEndDate = (time: Date) => {
  311. const timer: any = form.value.startDate;
  312. let data = new Date(timer);
  313. return data.getTime() > time.getTime();
  314. };
  315. const resetForm = () => {
  316. flag.value = false;
  317. };
  318. const submitForm = () => {
  319. flag.value = false;
  320. switch (timePickerName.value) {
  321. case showTimeMsg.HourlyPeak:
  322. dateNow.value.time = form.value.startDate;
  323. hourlyPeakFunc();
  324. break;
  325. case showTimeMsg.WaybillTrend:
  326. waybillTrendFunc();
  327. break;
  328. case showTimeMsg.NodePeak:
  329. nodePeakFunc();
  330. break;
  331. case showTimeMsg.AirlineTraffic:
  332. airlineTrafficFunc();
  333. break;
  334. case showTimeMsg.AirlineAbnormal:
  335. airlineFunc();
  336. break;
  337. case showTimeMsg.TallyWeight:
  338. tallyWeightFunc();
  339. break;
  340. case showTimeMsg.SpecialClassification:
  341. airlineFunc();
  342. break;
  343. default:
  344. break;
  345. }
  346. };
  347. const showDatePicker = (id?) => {
  348. flag.value = true;
  349. timePickerName.value = id;
  350. };
  351. const sortClass = (sortData) => {
  352. const groupBy = (array, f) => {
  353. let groups = {};
  354. array.forEach((o) => {
  355. let group = JSON.stringify(f(o));
  356. groups[group] = groups[group] || [];
  357. groups[group].push(o);
  358. });
  359. return Object.keys(groups).map((group) => {
  360. return groups[group];
  361. });
  362. };
  363. const sorted = groupBy(sortData, (item) => {
  364. return item.jobName;
  365. });
  366. return sorted;
  367. };
  368. const pubFunc = (listValues, target, type?) => {
  369. const newObj = _.cloneDeep(target);
  370. const [jobTimes, stockNums, weights] = [<any>[], <any>[], <any>[]];
  371. listValues.forEach((item) => {
  372. jobTimes.push(item.jobTime);
  373. stockNums.push(Number(item.stockNum));
  374. weights.push(Number(item.weight));
  375. });
  376. newObj.xAxis.data = jobTimes;
  377. if (type) {
  378. newObj.series[1].data = stockNums;
  379. newObj.series[0].data = weights;
  380. } else {
  381. newObj.series[0].data = stockNums;
  382. newObj.series[1].data = weights;
  383. }
  384. return newObj;
  385. };
  386. const parseDate = (date: string) => {
  387. const dates = date.split("-");
  388. const newDate = dates.shift();
  389. return dates.join("-");
  390. };
  391. // 特货分类统计-选取下拉数据
  392. const handleCommand = (command: string) => {
  393. specialGoods.value = command;
  394. const newObj: any = _.cloneDeep(airlineAbnormalBaggage.option.baseOption);
  395. const result = formatGoods(command, specialGoodsAll.value);
  396. airlineObj.value = pubFunc(result, newObj);
  397. };
  398. //获取小时峰值分布
  399. const hourlyPeakFunc = async () => {
  400. loading1.value = true;
  401. const listValues = (await getPublicData(DATACONTENT_ID.jscJgHourlyPeakId, [
  402. { flightDate1: dateNow.value.time, flightDate2: form.value.endDate },
  403. ])) as any;
  404. if (listValues && isValue(listValues)) {
  405. hourlyPeakObj.value = pubFunc(listValues, optionLeft, true);
  406. }
  407. loading1.value = false;
  408. };
  409. //运单趋势分析
  410. const waybillTrendFunc = async () => {
  411. loading2.value = true;
  412. const listValues = (await getPublicData(DATACONTENT_ID.jscJgWaybillTrendId, [
  413. { flightDate1: form.value.startDate, flightDate2: form.value.endDate },
  414. ])) as any;
  415. if (listValues && isValue(listValues)) {
  416. listValues.forEach((item) => {
  417. item.jobTime = parseDate(item["jobTime"]);
  418. });
  419. waybillTrendObj.value = pubFunc(listValues, optionLeft, true);
  420. }
  421. loading2.value = false;
  422. };
  423. //始发站/目的站统计分析
  424. const nodePeakFunc = async () => {
  425. loading3.value = true;
  426. const listValues = (await getPublicData(DATACONTENT_ID.jscAirlineAbnormalId, [
  427. { fd1: form.value.startDate, fd2: form.value.endDate, fttp: "国际进港" },
  428. ])) as any;
  429. if (listValues && isValue(listValues)) {
  430. const newObj = _.cloneDeep(airCompaneBaggage.option.baseOption);
  431. listValues.forEach((item) => {
  432. item.jobTime = item["airport"];
  433. });
  434. nodePeakObj.value = pubFunc(listValues, newObj, true);
  435. }
  436. loading3.value = false;
  437. };
  438. //航班数&运单数
  439. const numbersFunc = async () => {
  440. loading4.value = true;
  441. const listValues = (await getPublicData(DATACONTENT_ID.jscJgNumbersId, [
  442. {
  443. fd1: parseTime(Date.now(), "{y}-{m}-{d}"),
  444. fd2: parseTime(Date.now(), "{y}-{m}-{d}"),
  445. },
  446. ])) as any;
  447. if (listValues && isValue(listValues)) {
  448. const { flightNum, finishFlightNum, weight } = listValues[0];
  449. flightNums.value = flightNum ?? 0;
  450. stockNums.value = finishFlightNum ?? 0;
  451. weightNums.value = weight ?? 0;
  452. }
  453. loading4.value = false;
  454. };
  455. //航司运量
  456. const airlineTrafficFunc = async () => {
  457. loading6.value = true;
  458. const listValues = (await getPublicData(
  459. DATACONTENT_ID.jscJgAirlineTrafficId,
  460. [{ flightDate1: form.value.startDate, flightDate2: form.value.endDate }]
  461. )) as any;
  462. if (listValues && isValue(listValues)) {
  463. const newObj: any = _.cloneDeep(airCompaneBaggage.option.baseOption);
  464. (newObj.dataZoom = [
  465. {
  466. id: "dataZoomX",
  467. type: "slider",
  468. xAxisIndex: [0],
  469. filterMode: "filter",
  470. start: 0,
  471. end: 20,
  472. },
  473. ]),
  474. listValues.forEach((item) => {
  475. item.jobTime = item["IACACode"];
  476. });
  477. airlineTrafficObj.value = pubFunc(listValues, newObj, true);
  478. }
  479. loading6.value = false;
  480. };
  481. //航班表格
  482. const airlineAbnormalFunc = async () => {
  483. loading5.value = true;
  484. const listValues = (await getPublicData(DATACONTENT_ID.jscFlightDynamicsId, [
  485. {
  486. fd1: parseTime(Date.now(), "{y}-{m}-{d}"),
  487. fd2: parseTime(Date.now(), "{y}-{m}-{d}"),
  488. fttp: "国际进港",
  489. },
  490. ])) as any;
  491. const domHeight = scrollContent.value?.clientHeight;
  492. if (domHeight && typeof domHeight == "number") {
  493. const cell = Math.ceil(domHeight / 40);
  494. limitScrollNum.value = cell;
  495. }
  496. if (listValues && isValue(listValues)) {
  497. listData.value = listValues;
  498. }
  499. loading5.value = false;
  500. };
  501. //航班动态统计
  502. const airlineFunc = async () => {
  503. loading7.value = true;
  504. const listValues = (await getPublicData(DATACONTENT_ID.jscGoodsId, [
  505. {
  506. fd1: form.value.startDate,
  507. fd2: form.value.endDate,
  508. fttp: "国际进港",
  509. },
  510. ])) as any;
  511. if (listValues && isValue(listValues)) {
  512. const newObj: any = _.cloneDeep(airlineAbnormalBaggage.option.baseOption);
  513. const newDatas = _.cloneDeep(listValues);
  514. const nameDatas = _.unionBy(newDatas, "specialTypeName");
  515. // const names: any = [...nameDatas];
  516. const names: any = [...nameDatas, { specialTypeName: "合计" }];
  517. specialGoods.value = names[0]["specialTypeName"];
  518. specialGoodsDatas.value = names;
  519. specialGoodsAll.value = listValues;
  520. const result = formatGoods(
  521. names[0]["specialTypeName"],
  522. specialGoodsAll.value
  523. );
  524. airlineObj.value = pubFunc(result, newObj);
  525. }
  526. loading7.value = false;
  527. };
  528. //理货重量
  529. const tallyWeightFunc = async () => {
  530. loading8.value = true;
  531. const listValues = (await getPublicData(DATACONTENT_ID.jscTallyId, [
  532. {
  533. fd1: form.value.startDate,
  534. fd2: form.value.endDate,
  535. fttp: `国际${weightType.value}`,
  536. },
  537. ])) as any;
  538. if (listValues && isValue(listValues)) {
  539. const newObj: any = _.cloneDeep(airStutas.option.baseOption);
  540. const [datas, weights] = [<any>[], <any>[]];
  541. listValues.forEach((item) => {
  542. datas.push(item.flightDate);
  543. weights.push(item.weight);
  544. });
  545. newObj.xAxis.data = datas;
  546. newObj.series[0].data = weights;
  547. tallyObj.value = newObj;
  548. }
  549. loading8.value = false;
  550. };
  551. const handleWeightType = (type: string) => {
  552. weightType.value = type;
  553. tallyWeightFunc();
  554. };
  555. onMounted(() => {
  556. hourlyPeakFunc();
  557. waybillTrendFunc();
  558. nodePeakFunc();
  559. numbersFunc();
  560. airlineTrafficFunc();
  561. airlineAbnormalFunc();
  562. airlineFunc();
  563. tallyWeightFunc();
  564. });
  565. </script>
  566. <style lang="scss" scoped>
  567. @import "./css/index.scss";
  568. </style>