index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <div class="airportInfo">
  3. <div class="header">
  4. <div
  5. :class="action === index ? 'navs' : 'nav'"
  6. v-for="(item, index) in levelList"
  7. :key="index"
  8. @click="up(index)"
  9. >
  10. {{ item.name }}
  11. </div>
  12. </div>
  13. <div class="variable">
  14. <StatisticsHeader
  15. :title="titleTop"
  16. :items="formItems"
  17. :data="formData"
  18. :eledata="eledata"
  19. with-setting
  20. :withSetting="false"
  21. :withExport="true"
  22. :set="set"
  23. :action="action"
  24. :asShow="asShow"
  25. @getFormData="getFormData"
  26. @export="tableToExcel"
  27. @upset="upset"
  28. />
  29. </div>
  30. <div class="echart">
  31. <Echarts
  32. :id="dataid"
  33. :option="tableData"
  34. v-if="picShow == true ? true : false"
  35. />
  36. <Tableformbrs
  37. :tableList="tableList"
  38. :action="action"
  39. v-if="!picShow"
  40. :set="set"
  41. />
  42. </div>
  43. </div>
  44. </template>
  45. <script>
  46. import Echarts from "../components/echart/index.vue";
  47. import Tableformbrs from "../components/echart/tableforms.vue";
  48. import StatisticsHeader from "../components/echart/statisticsHeader.vue";
  49. import { export_json_to_excel } from "@/utils/Export2Excel";
  50. import { Query } from "@/api/webApi";
  51. export default {
  52. name: "ChartsBar",
  53. data() {
  54. return {
  55. asShow: true,
  56. optiondata: [],
  57. picShow: true, //图片表格切换
  58. action: 0,
  59. dataid: "collection_ecahrt0",
  60. listqueryTemplateID: DATACONTENT_ID.modeLoadingweight,
  61. eledata: null,
  62. set: "",
  63. isShow: Echarts,
  64. tableList: [],
  65. tableListcop: [],
  66. listname: "",
  67. listHeader: [],
  68. tableData: {
  69. time: [],
  70. data1: [],
  71. data2: [],
  72. kg: "",
  73. tyol: "",
  74. },
  75. formData: {
  76. airport: "",
  77. dateTime: "",
  78. },
  79. titleTop: "加货重量统计",
  80. levelList: [
  81. {
  82. name: "加货重量统计",
  83. },
  84. {
  85. name: "航班量统计",
  86. },
  87. {
  88. name: "特货统计",
  89. },
  90. {
  91. name: "货量统计",
  92. },
  93. {
  94. name: "拉货统计",
  95. },
  96. {
  97. name: "国内进港保障时间统计",
  98. },
  99. ],
  100. formItems: [
  101. {
  102. prop: "fttp",
  103. inputType: "select",
  104. placeholder: "国内国际",
  105. requiredWarning: "请先选择国内国际",
  106. clearable: true,
  107. options: [
  108. {
  109. value: "国内离港",
  110. label: "国内出港",
  111. },
  112. {
  113. value: "国际离港",
  114. label: "国际出港",
  115. },
  116. ],
  117. },
  118. {
  119. prop: "kht",
  120. inputType: "select",
  121. placeholder: "客货类型",
  122. requiredWarning: "请先选择客货类型",
  123. clearable: true,
  124. options: [
  125. {
  126. value: "客机",
  127. label: "客机",
  128. },
  129. {
  130. value: "货机",
  131. label: "货机",
  132. },
  133. {
  134. value: "其它",
  135. label: "其它",
  136. },
  137. {
  138. value: "全部",
  139. label: "全部",
  140. },
  141. ],
  142. },
  143. {
  144. prop: "td",
  145. inputType: "select",
  146. placeholder: "统计维度",
  147. requiredWarning: "请先选择统计时间维度",
  148. clearable: true,
  149. options: [
  150. {
  151. value: "月",
  152. label: "月",
  153. },
  154. {
  155. value: "年",
  156. label: "年",
  157. },
  158. ],
  159. },
  160. {
  161. prop: "spe",
  162. inputType: "select",
  163. placeholder: "特货类型",
  164. requiredWarning: "",
  165. clearable: true,
  166. disabled: true,
  167. options: [
  168. {
  169. value: "贵重物品",
  170. label: "贵重物品",
  171. },
  172. {
  173. value: "鲜活",
  174. label: "鲜活",
  175. },
  176. {
  177. value: "动物",
  178. label: "动物",
  179. },
  180. {
  181. value: "邮件",
  182. label: "邮件",
  183. },
  184. {
  185. value: "锂电池",
  186. label: "锂电池",
  187. },
  188. {
  189. value: "全部",
  190. label: "全部",
  191. },
  192. ],
  193. },
  194. {
  195. prop: "set",
  196. inputType: "select",
  197. placeholder: "统计运单",
  198. requiredWarning: "",
  199. clearable: true,
  200. disabled: true,
  201. options: [
  202. {
  203. value: "1",
  204. label: "统计运单",
  205. },
  206. {
  207. value: "2",
  208. label: "统计重量",
  209. },
  210. ],
  211. },
  212. {
  213. prop: "dateTime",
  214. inputType: "datePicker",
  215. clearable: true,
  216. width: "240px",
  217. options: [],
  218. },
  219. ],
  220. };
  221. },
  222. mounted() {
  223. // this.getQuery([]);
  224. },
  225. watch: {
  226. // 监听数据变化,重绘折线图
  227. option: {
  228. deep: true,
  229. handler(newVal) {},
  230. },
  231. },
  232. destroyed() {},
  233. methods: {
  234. up(index) {
  235. this.action = index;
  236. this.picShow = true;
  237. if (index === 0) {
  238. this.eledata = 0;
  239. this.asShow = true;
  240. this.dataid = "collection_ecahrt0";
  241. this.listqueryTemplateID = DATACONTENT_ID.modeLoadingweight;
  242. this.titleTop = "加货重量统计";
  243. this.tableData.time = [];
  244. this.tableData.data1 = [];
  245. this.tableData.data2 = [];
  246. this.formItems[0].disabled = false;
  247. this.formItems[1].disabled = false;
  248. this.formItems[2].disabled = false;
  249. this.formItems[3].disabled = true;
  250. this.formItems[4].disabled = true;
  251. this.formItems[5].inputType = "datePicker";
  252. this.formItems[0].options = [
  253. {
  254. value: "国内离港",
  255. label: "国内出港",
  256. },
  257. {
  258. value: "国际离港",
  259. label: "国际出港",
  260. },
  261. ];
  262. } else if (index === 1) {
  263. this.eledata = 1;
  264. this.asShow = true;
  265. this.dataid = "collection_ecahrt1";
  266. this.formItems[0].disabled = false;
  267. this.formItems[1].disabled = false;
  268. this.formItems[2].disabled = false;
  269. this.formItems[3].disabled = true;
  270. this.formItems[4].disabled = true;
  271. this.formItems[5].inputType = "datePicker";
  272. this.formItems[0].options = [
  273. {
  274. value: "国内离港",
  275. label: "国内出港",
  276. },
  277. {
  278. value: "国际离港",
  279. label: "国际出港",
  280. },
  281. {
  282. value: "国内进港",
  283. label: "国内进港",
  284. },
  285. {
  286. value: "国际进港",
  287. label: "国际进港",
  288. },
  289. ];
  290. this.tableData.time = [];
  291. this.tableData.data1 = [];
  292. this.tableData.data2 = [];
  293. this.listqueryTemplateID = DATACONTENT_ID.modeFlightvolume;
  294. // this.getQuery();
  295. this.titleTop = "航班量统计";
  296. } else if (index === 2) {
  297. this.asShow = true;
  298. this.dataid = "collection_ecahrt2";
  299. this.formItems[0].disabled = false;
  300. this.formItems[1].disabled = false;
  301. this.formItems[2].disabled = false;
  302. this.formItems[3].disabled = false;
  303. this.formItems[4].disabled = false;
  304. this.formItems[5].inputType = "datePicker";
  305. this.tableData.time = [];
  306. this.tableData.data1 = [];
  307. this.tableData.data2 = [];
  308. this.formItems[0].options = [
  309. {
  310. value: "国内离港",
  311. label: "国内出港",
  312. },
  313. {
  314. value: "国际离港",
  315. label: "国际出港",
  316. },
  317. {
  318. value: "国内进港",
  319. label: "国内进港",
  320. },
  321. {
  322. value: "国际进港",
  323. label: "国际进港",
  324. },
  325. ];
  326. this.formItems[4].placeholder = "统计运单";
  327. this.eledata = 2;
  328. this.listqueryTemplateID = DATACONTENT_ID.modeSpecialgoods;
  329. this.titleTop = "特货统计";
  330. } else if (index === 3) {
  331. this.asShow = true;
  332. this.dataid = "collection_ecahrt3";
  333. this.tableData.time = [];
  334. this.tableData.data1 = [];
  335. this.tableData.data2 = [];
  336. this.formItems[0].options = [
  337. {
  338. value: "国内离港",
  339. label: "国内出港",
  340. },
  341. {
  342. value: "国际离港",
  343. label: "国际出港",
  344. },
  345. {
  346. value: "国内进港",
  347. label: "国内进港",
  348. },
  349. {
  350. value: "国际进港",
  351. label: "国际进港",
  352. },
  353. ];
  354. this.formItems[0].disabled = false;
  355. this.formItems[1].disabled = false;
  356. this.formItems[2].disabled = false;
  357. this.formItems[3].disabled = true;
  358. this.formItems[4].disabled = true;
  359. this.formItems[5].inputType = "datePicker";
  360. this.eledata = 3;
  361. this.titleTop = "货量统计";
  362. this.listqueryTemplateID = DATACONTENT_ID.modeCargostatistics;
  363. } else if (index === 4) {
  364. this.asShow = true;
  365. this.dataid = "collection_ecahrt3";
  366. this.tableData.time = [];
  367. this.tableData.data1 = [];
  368. this.tableData.data2 = [];
  369. this.formItems[0].options = [
  370. {
  371. value: "国内离港",
  372. label: "国内出港",
  373. },
  374. {
  375. value: "国际离港",
  376. label: "国际出港",
  377. },
  378. ];
  379. this.formItems[4].placeholder = "统计航班";
  380. this.formItems[4].options = [
  381. {
  382. value: 1,
  383. label: "统计航班",
  384. },
  385. {
  386. value: 2,
  387. label: "统计重量",
  388. },
  389. ];
  390. this.formItems[0].disabled = false;
  391. this.formItems[1].disabled = false;
  392. this.formItems[2].disabled = false;
  393. this.formItems[3].disabled = true;
  394. this.formItems[4].disabled = false;
  395. this.formItems[5].inputType = "datePicker";
  396. this.eledata = 3;
  397. this.titleTop = "拉货统计";
  398. if (this.picShow == true) {
  399. this.listqueryTemplateID = DATACONTENT_ID.modePullgoods;
  400. } else if (this.picShow == false) {
  401. this.listqueryTemplateID = DATACONTENT_ID.modePulltable;
  402. }
  403. } else if (index === 5) {
  404. this.tableData.time = [];
  405. this.tableData.data1 = [];
  406. this.tableData.data2 = [];
  407. this.asShow = false;
  408. this.picShow = false;
  409. this.eledata = 3;
  410. this.formItems[0].disabled = true;
  411. this.formItems[1].disabled = true;
  412. this.formItems[2].disabled = true;
  413. this.formItems[3].disabled = true;
  414. this.formItems[4].disabled = true;
  415. this.formItems[0].requiredWarning = "";
  416. this.formItems[1].requiredWarning = "";
  417. this.formItems[2].requiredWarning = "";
  418. this.formItems[5].inputType = "datetimerange";
  419. this.titleTop = "国内进港保障时间统计";
  420. this.listqueryTemplateID = DATACONTENT_ID.modeDomestictable;
  421. }
  422. },
  423. getFormData(data) {
  424. this.tableData.time = [];
  425. this.tableData.data1 = [];
  426. this.tableData.data2 = [];
  427. if (this.action === 2 || this.action === 4) {
  428. this.set = data.set;
  429. let option = [
  430. {
  431. fttp: data.fttp,
  432. kht: data.kht,
  433. td: data.td,
  434. fd1: data.dateTime[0],
  435. fd2: data.dateTime[1],
  436. spe: data.spe,
  437. },
  438. ];
  439. this.optiondata = [
  440. {
  441. fttp: data.fttp,
  442. kht: data.kht,
  443. td: data.td,
  444. fd1: data.dateTime[0],
  445. fd2: data.dateTime[1],
  446. spe: data.spe,
  447. },
  448. ];
  449. this.getQuery(option, data.set);
  450. } else {
  451. let option = [
  452. {
  453. fttp: data.fttp,
  454. kht: data.kht,
  455. td: data.td,
  456. fd1: data.dateTime[0],
  457. fd2: data.dateTime[1],
  458. },
  459. ];
  460. this.getQuery(option, null);
  461. }
  462. if (this.action === 0) {
  463. this.listname =
  464. "加货重量统计" +
  465. data.fttp +
  466. data.kht +
  467. data.td +
  468. data.dateTime[0] +
  469. "--" +
  470. data.dateTime[1];
  471. this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
  472. } else if (this.action === 1) {
  473. this.listname =
  474. "航班量统计" +
  475. data.fttp +
  476. data.kht +
  477. data.td +
  478. data.dateTime[0] +
  479. "--" +
  480. data.dateTime[1];
  481. this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
  482. } else if (this.action === 2) {
  483. this.listname =
  484. "特货统计" +
  485. data.fttp +
  486. data.kht +
  487. data.td +
  488. data.spe +
  489. data.dateTime[0] +
  490. "--" +
  491. data.dateTime[1];
  492. this.listHeader = [
  493. "序号",
  494. "时间",
  495. "运单数(单)",
  496. "环比(%)",
  497. "重量(吨)",
  498. "环比(%)",
  499. ];
  500. } else if (this.action === 3) {
  501. this.listname =
  502. "货量统计" +
  503. data.fttp +
  504. data.kht +
  505. data.td +
  506. data.dateTime[0] +
  507. "--" +
  508. data.dateTime[1];
  509. this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
  510. } else if (this.action === 4) {
  511. this.listname =
  512. "拉货统计" +
  513. data.fttp +
  514. data.kht +
  515. data.td +
  516. data.dateTime[0] +
  517. "--" +
  518. data.dateTime[1];
  519. this.listHeader = [
  520. "序号",
  521. "时间",
  522. "航班量(班)",
  523. "环比(%)",
  524. "重量(吨)",
  525. "环比(%)",
  526. ];
  527. } else if (this.action === 5) {
  528. this.listname =
  529. "国内进港保障时间统计" +
  530. data.fttp +
  531. data.kht +
  532. data.td +
  533. data.dateTime[0] +
  534. "--" +
  535. data.dateTime[1];
  536. this.listHeader = [
  537. "序号",
  538. "航司",
  539. "航班号",
  540. "执飞日期",
  541. "计划降落时间",
  542. "实际降落时间",
  543. "航程",
  544. "卸机时间",
  545. "库区到达时间",
  546. "货站交接时间",
  547. "理货时间",
  548. ];
  549. }
  550. },
  551. //获取表格数据
  552. async getQuery(data, dat) {
  553. try {
  554. const { code, returnData } = await Query({
  555. id: this.listqueryTemplateID,
  556. dataContent: data,
  557. });
  558. if (code == 0) {
  559. this.tableData.time = [];
  560. this.tableData.data1 = [];
  561. this.tableData.data2 = [];
  562. this.tableList = JSON.parse(JSON.stringify(returnData.listValues));
  563. this.tableListcop = JSON.parse(JSON.stringify(returnData.listValues));
  564. this.tableList.forEach((item, index) => {
  565. item.indexs = index + 1;
  566. });
  567. this.tableListcop.forEach((item, index) => {
  568. item.indexs = index + 1;
  569. });
  570. if (this.action === 0) {
  571. let objar = {
  572. indexs: "合计",
  573. weight: returnData.listValues[0].totalWeight,
  574. };
  575. this.tableListcop.push(objar);
  576. } else if (this.action === 1) {
  577. let objar = {
  578. indexs: "合计",
  579. weight: returnData.listValues[0].totalWeight,
  580. };
  581. this.tableListcop.push(objar);
  582. } else if (this.action === 2) {
  583. let objar = {
  584. indexs: "合计",
  585. flightNum: returnData.listValues[0].totalFlightNum,
  586. weight: returnData.listValues[0].totalWeight,
  587. };
  588. this.tableListcop.push(objar);
  589. } else if (this.action === 3) {
  590. let objar = {
  591. indexs: "合计",
  592. weight: returnData.listValues[0].totalWeight,
  593. };
  594. } else if (this.action === 4) {
  595. if (this.picShow == true) {
  596. let objar = {
  597. indexs: "合计",
  598. pullFlightNum: returnData.listValues[0].totalPullFlightNum,
  599. pullWeight: returnData.listValues[0].totalPullWeight,
  600. };
  601. this.tableListcop.push(objar);
  602. } else {
  603. let objar = {
  604. indexs: "合计",
  605. totalWeight: returnData.listValues[0].hejiTotalWeight,
  606. pullWeight: returnData.listValues[0].hejiPullWeight,
  607. };
  608. this.tableListcop.push(objar);
  609. }
  610. }
  611. returnData.listValues.forEach((element) => {
  612. if (this.action === 0) {
  613. this.tableData.data2.push(element.weight ? element.weight : 0);
  614. this.tableData.time.push(element.dat);
  615. this.tableData.kg = "单位:吨";
  616. } else if (this.action === 1) {
  617. this.tableData.data2.push(
  618. element.flightNum ? element.flightNum : 0
  619. );
  620. this.tableData.time.push(element.dat);
  621. this.tableData.kg = "单位:班";
  622. } else if (this.action === 2) {
  623. this.tableData.time.push(element.dat);
  624. if (dat == 1) {
  625. this.tableData.data2.push(
  626. element.flightNum ? element.flightNum : 0
  627. );
  628. this.tableData.kg = "单位:单";
  629. } else if (dat == 2) {
  630. this.tableData.kg = "单位:吨";
  631. this.tableData.data2.push(element.weight ? element.weight : 0);
  632. }
  633. } else if (this.action === 3) {
  634. this.tableData.data2.push(element.weight ? element.weight : 0);
  635. this.tableData.time.push(element.fdt);
  636. this.tableData.kg = "单位:吨";
  637. } else if (this.action === 4) {
  638. this.tableData.time.push(element.dat);
  639. this.tableData.kg = "单位:吨";
  640. if (dat == 1) {
  641. this.tableData.data2.push(
  642. element.pullFlightNum ? element.pullFlightNum : 0
  643. );
  644. this.tableData.kg = "单位:班";
  645. } else if (dat == 2) {
  646. this.tableData.kg = "单位:吨";
  647. this.tableData.data2.push(
  648. element.pullWeight ? element.pullWeight : 0
  649. );
  650. }
  651. } else if (this.action === 5) {
  652. }
  653. this.tableData.data1 = [];
  654. });
  655. this.tableData.data1.push(0);
  656. for (let index = 0; index < this.tableData.data2.length; index++) {
  657. if (index > 0) {
  658. const element =
  659. (this.tableData.data2[index] -
  660. this.tableData.data2[index - 1]) /
  661. this.tableData.data2[index - 1];
  662. this.tableData.data1.push(
  663. element.toFixed(2) ? element.toFixed(2) : 0
  664. );
  665. this.tableData.data1.forEach((element) => {
  666. element = Number(element);
  667. if (typeof element !== "number") {
  668. element = 0;
  669. }
  670. });
  671. }
  672. }
  673. }
  674. } catch (error) {
  675. this.page--;
  676. }
  677. },
  678. //导出
  679. tableToExcel() {
  680. import("../../../utils/Export2Excel").then((excel) => {
  681. // 设置导出表格的头部
  682. const tHeader = this.listHeader;
  683. // 将要导出的数据进行一个过滤
  684. /**
  685. * 源数据导入到excel的数据每一条重新拼成一个数组,数组里的每个元素就是filterVal里的每个字段
  686. */
  687. const data = this.tableListcop.map((item, index) => {
  688. if (this.action === 0) {
  689. return [item.indexs, item.dat, item.weight, item.weightChain];
  690. } else if (this.action === 1) {
  691. return [item.indexs, item.dat, item.flightNum, item.weightChain];
  692. } else if (this.action === 2) {
  693. return [
  694. item.indexs,
  695. item.dat,
  696. item.flightNum,
  697. item.flightChain,
  698. item.weight,
  699. item.weightChain,
  700. ];
  701. } else if (this.action === 3) {
  702. return [item.indexs, item.fdt, item.weight, item.weightChain];
  703. } else if (this.action === 4) {
  704. if (this.picShow == true) {
  705. return [
  706. item.indexs,
  707. item.dat,
  708. item.pullFlightNum,
  709. item.flightChain,
  710. item.pullWeight,
  711. item.weightChain,
  712. ];
  713. } else {
  714. return [
  715. item.indexs,
  716. item.flightdate,
  717. item.flightNo,
  718. item.line,
  719. item.stand,
  720. item.totalWeight,
  721. item.pullWeight,
  722. ];
  723. }
  724. } else if (this.action === 5) {
  725. return [
  726. item.indexs,
  727. item.IATACode,
  728. item.flightNO,
  729. item.flightDate,
  730. item.planLandingTime,
  731. item.acLandingTime,
  732. item.target,
  733. item.unLoadTime,
  734. item.planeDownTime_IN,
  735. item.depotJoinTime_IN,
  736. item.tallyTime_in,
  737. ];
  738. }
  739. });
  740. data[data.length - 1].indexs = "总计";
  741. // 调用我们封装好的方法进行导出Excel
  742. excel.export_json_to_excel({
  743. // 导出的头部
  744. header: tHeader,
  745. // 导出的内容
  746. data,
  747. // 导出的文件名称
  748. filename: this.listname,
  749. // 导出的表格宽度是否自动
  750. autoWidth: true,
  751. // 导出文件的后缀类型
  752. bookType: "xlsx",
  753. });
  754. });
  755. },
  756. upset(data) {
  757. this.picShow = data;
  758. if (this.picShow == false && this.action === 4) {
  759. this.tableData.time = [];
  760. this.tableData.data1 = [];
  761. this.tableData.data2 = [];
  762. this.listHeader = [
  763. "序号",
  764. "日期",
  765. "航班号",
  766. "航线",
  767. "机位",
  768. "货物总重 (KG)",
  769. "拉货 (KG)",
  770. ];
  771. this.listqueryTemplateID = DATACONTENT_ID.modePulltable;
  772. this.getQuery(this.optiondata, this.set);
  773. // console.log(this.tableListcop);
  774. } else if (this.picShow == true && this.action === 4) {
  775. this.tableData.time = [];
  776. this.tableData.data1 = [];
  777. this.tableData.data2 = [];
  778. this.listHeader = [
  779. "序号",
  780. "时间",
  781. "航班量(班)",
  782. "环比(%)",
  783. "重量(吨)",
  784. "环比(%)",
  785. ];
  786. this.listqueryTemplateID = DATACONTENT_ID.modePullgoods;
  787. this.getQuery(this.optiondata, this.set);
  788. }
  789. },
  790. },
  791. components: {
  792. Echarts,
  793. StatisticsHeader,
  794. Tableformbrs,
  795. },
  796. };
  797. </script>
  798. <style lang="scss" scoped>
  799. .airportInfo {
  800. position: relative;
  801. .header {
  802. width: 103%;
  803. height: 36px;
  804. display: flex;
  805. align-items: center;
  806. justify-content: center;
  807. background: #f7f7f7;
  808. position: relative;
  809. left: -23px;
  810. > .nav {
  811. padding: 0 30px 0 30px;
  812. cursor: pointer;
  813. font-size: 16px;
  814. font-family: Microsoft YaHei;
  815. font-weight: 400;
  816. color: #101116;
  817. }
  818. > .navs {
  819. height: 100%;
  820. padding: 0 30px 0 30px;
  821. cursor: pointer;
  822. display: flex;
  823. align-items: center;
  824. font-size: 16px;
  825. font-family: Microsoft YaHei;
  826. font-weight: bold;
  827. color: #ac014d;
  828. border-bottom: 2px solid #ac014d;
  829. }
  830. }
  831. .variable {
  832. width: 100%;
  833. height: 64px;
  834. }
  835. .echart {
  836. width: 100%;
  837. height: 710px;
  838. position: absolute;
  839. background: #ffffff;
  840. box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.1);
  841. border-radius: 4px;
  842. }
  843. }
  844. </style>