index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  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. value: "快",
  194. label: "快",
  195. },
  196. {
  197. value: "动",
  198. label: "动",
  199. },
  200. {
  201. value: "贵",
  202. label: "贵",
  203. },
  204. {
  205. value: "邮",
  206. label: "邮",
  207. },
  208. {
  209. value: "全部",
  210. label: "全部",
  211. },
  212. ],
  213. },
  214. {
  215. prop: "set",
  216. inputType: "select",
  217. placeholder: "统计运单",
  218. requiredWarning: "",
  219. clearable: true,
  220. disabled: true,
  221. options: [
  222. {
  223. value: "1",
  224. label: "统计运单",
  225. },
  226. {
  227. value: "2",
  228. label: "统计重量",
  229. },
  230. ],
  231. },
  232. {
  233. prop: "dateTime",
  234. inputType: "datePicker",
  235. clearable: true,
  236. width: "240px",
  237. options: [],
  238. },
  239. ],
  240. };
  241. },
  242. mounted() {
  243. // this.getQuery([]);
  244. },
  245. watch: {
  246. // 监听数据变化,重绘折线图
  247. option: {
  248. deep: true,
  249. handler(newVal) {},
  250. },
  251. },
  252. destroyed() {},
  253. methods: {
  254. up(index) {
  255. this.action = index;
  256. this.picShow = true;
  257. if (index === 0) {
  258. this.eledata = 0;
  259. this.asShow = true;
  260. this.dataid = "collection_ecahrt0";
  261. this.listqueryTemplateID = DATACONTENT_ID.modeLoadingweight;
  262. this.titleTop = "加货重量统计";
  263. this.tableData.time = [];
  264. this.tableData.data1 = [];
  265. this.tableData.data2 = [];
  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. } else if (index === 1) {
  283. this.eledata = 1;
  284. this.asShow = true;
  285. this.dataid = "collection_ecahrt1";
  286. this.formItems[0].disabled = false;
  287. this.formItems[1].disabled = false;
  288. this.formItems[2].disabled = false;
  289. this.formItems[3].disabled = true;
  290. this.formItems[4].disabled = true;
  291. this.formItems[5].inputType = "datePicker";
  292. this.formItems[0].options = [
  293. {
  294. value: "国内离港",
  295. label: "国内出港",
  296. },
  297. {
  298. value: "国际离港",
  299. label: "国际出港",
  300. },
  301. {
  302. value: "国内进港",
  303. label: "国内进港",
  304. },
  305. {
  306. value: "国际进港",
  307. label: "国际进港",
  308. },
  309. {
  310. value: "国内进港-全部 ",
  311. label: "国内进港-全部 ",
  312. },
  313. {
  314. value: "国内离港-全部",
  315. label: "国内离港-全部",
  316. },
  317. ];
  318. this.tableData.time = [];
  319. this.tableData.data1 = [];
  320. this.tableData.data2 = [];
  321. this.listqueryTemplateID = DATACONTENT_ID.modeFlightvolume;
  322. // this.getQuery();
  323. this.titleTop = "航班量统计";
  324. } else if (index === 2) {
  325. this.asShow = true;
  326. this.dataid = "collection_ecahrt2";
  327. this.formItems[0].disabled = false;
  328. this.formItems[1].disabled = false;
  329. this.formItems[2].disabled = false;
  330. this.formItems[3].disabled = false;
  331. this.formItems[4].disabled = false;
  332. this.formItems[5].inputType = "datePicker";
  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[4].placeholder = "统计运单";
  355. this.eledata = 2;
  356. this.listqueryTemplateID = DATACONTENT_ID.modeSpecialgoods;
  357. this.titleTop = "特货统计";
  358. } else if (index === 3) {
  359. this.asShow = true;
  360. this.dataid = "collection_ecahrt3";
  361. this.tableData.time = [];
  362. this.tableData.data1 = [];
  363. this.tableData.data2 = [];
  364. this.formItems[0].options = [
  365. {
  366. value: "国内离港",
  367. label: "国内出港",
  368. },
  369. {
  370. value: "国际离港",
  371. label: "国际出港",
  372. },
  373. {
  374. value: "国内进港",
  375. label: "国内进港",
  376. },
  377. {
  378. value: "国际进港",
  379. label: "国际进港",
  380. },
  381. ];
  382. this.formItems[0].disabled = false;
  383. this.formItems[1].disabled = false;
  384. this.formItems[2].disabled = false;
  385. this.formItems[3].disabled = true;
  386. this.formItems[4].disabled = true;
  387. this.formItems[5].inputType = "datePicker";
  388. this.eledata = 3;
  389. this.titleTop = "货量统计";
  390. this.listqueryTemplateID = DATACONTENT_ID.modeCargostatistics;
  391. } else if (index === 4) {
  392. this.asShow = true;
  393. this.dataid = "collection_ecahrt3";
  394. this.tableData.time = [];
  395. this.tableData.data1 = [];
  396. this.tableData.data2 = [];
  397. this.formItems[0].options = [
  398. {
  399. value: "国内离港",
  400. label: "国内出港",
  401. },
  402. {
  403. value: "国际离港",
  404. label: "国际出港",
  405. },
  406. ];
  407. this.formItems[4].placeholder = "统计航班";
  408. this.formItems[4].options = [
  409. {
  410. value: 1,
  411. label: "统计航班",
  412. },
  413. {
  414. value: 2,
  415. label: "统计重量",
  416. },
  417. ];
  418. this.formItems[0].disabled = false;
  419. this.formItems[1].disabled = false;
  420. this.formItems[2].disabled = false;
  421. this.formItems[3].disabled = true;
  422. this.formItems[4].disabled = false;
  423. this.formItems[5].inputType = "datePicker";
  424. this.eledata = 3;
  425. this.titleTop = "拉货统计";
  426. if (this.picShow == true) {
  427. this.listqueryTemplateID = DATACONTENT_ID.modePullgoods;
  428. } else if (this.picShow == false) {
  429. this.listqueryTemplateID = DATACONTENT_ID.modePulltable;
  430. }
  431. } else if (index === 5) {
  432. this.tableData.time = [];
  433. this.tableData.data1 = [];
  434. this.tableData.data2 = [];
  435. this.asShow = false;
  436. this.picShow = false;
  437. this.eledata = 3;
  438. this.formItems[0].disabled = true;
  439. this.formItems[1].disabled = true;
  440. this.formItems[2].disabled = true;
  441. this.formItems[3].disabled = true;
  442. this.formItems[4].disabled = true;
  443. this.formItems[0].requiredWarning = "";
  444. this.formItems[1].requiredWarning = "";
  445. this.formItems[2].requiredWarning = "";
  446. this.formItems[5].inputType = "datetimerange";
  447. this.titleTop = "国内进港保障时间统计";
  448. this.listqueryTemplateID = DATACONTENT_ID.modeDomestictable;
  449. }
  450. },
  451. getFormData(data) {
  452. this.tableData.time = [];
  453. this.tableData.data1 = [];
  454. this.tableData.data2 = [];
  455. if (this.action === 2 || this.action === 4) {
  456. this.set = data.set;
  457. let option = [
  458. {
  459. fttp: data.fttp,
  460. kht: data.kht,
  461. td: data.td,
  462. fd1: data.dateTime[0],
  463. fd2: data.dateTime[1],
  464. spe: data.spe,
  465. },
  466. ];
  467. this.optiondata = [
  468. {
  469. fttp: data.fttp,
  470. kht: data.kht,
  471. td: data.td,
  472. fd1: data.dateTime[0],
  473. fd2: data.dateTime[1],
  474. spe: data.spe,
  475. },
  476. ];
  477. this.getQuery(option, data.set);
  478. } else {
  479. let option = [
  480. {
  481. fttp: data.fttp,
  482. kht: data.kht,
  483. td: data.td,
  484. fd1: data.dateTime[0],
  485. fd2: data.dateTime[1],
  486. },
  487. ];
  488. this.getQuery(option, null);
  489. }
  490. if (this.action === 0) {
  491. this.listname =
  492. "加货重量统计" +
  493. data.fttp +
  494. data.kht +
  495. data.td +
  496. data.dateTime[0] +
  497. "--" +
  498. data.dateTime[1];
  499. this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
  500. } else if (this.action === 1) {
  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 === 2) {
  511. this.listname =
  512. "特货统计" +
  513. data.fttp +
  514. data.kht +
  515. data.td +
  516. data.spe +
  517. data.dateTime[0] +
  518. "--" +
  519. data.dateTime[1];
  520. this.listHeader = [
  521. "序号",
  522. "时间",
  523. "运单数(单)",
  524. "环比(%)",
  525. "重量(吨)",
  526. "环比(%)",
  527. ];
  528. } else if (this.action === 3) {
  529. this.listname =
  530. "货量统计" +
  531. data.fttp +
  532. data.kht +
  533. data.td +
  534. data.dateTime[0] +
  535. "--" +
  536. data.dateTime[1];
  537. this.listHeader = ["序号", "时间", "重量(吨)", "环比(%)"];
  538. } else if (this.action === 4) {
  539. this.listname =
  540. "拉货统计" +
  541. data.fttp +
  542. data.kht +
  543. data.td +
  544. data.dateTime[0] +
  545. "--" +
  546. data.dateTime[1];
  547. this.listHeader = [
  548. "序号",
  549. "时间",
  550. "航班量(班)",
  551. "环比(%)",
  552. "重量(吨)",
  553. "环比(%)",
  554. ];
  555. } else if (this.action === 5) {
  556. this.listname =
  557. "国内进港保障时间统计" +
  558. data.fttp +
  559. data.kht +
  560. data.td +
  561. data.dateTime[0] +
  562. "--" +
  563. data.dateTime[1];
  564. this.listHeader = [
  565. "序号",
  566. "航司",
  567. "航班号",
  568. "执飞日期",
  569. "计划降落时间",
  570. "实际降落时间",
  571. "航程",
  572. "卸机时间",
  573. "库区到达时间",
  574. "货站交接时间",
  575. "理货时间",
  576. ];
  577. }
  578. },
  579. //获取表格数据
  580. async getQuery(data, dat) {
  581. try {
  582. const { code, returnData } = await Query({
  583. id: this.listqueryTemplateID,
  584. dataContent: data,
  585. });
  586. if (code == 0) {
  587. this.tableData.time = [];
  588. this.tableData.data1 = [];
  589. this.tableData.data2 = [];
  590. this.tableList = JSON.parse(JSON.stringify(returnData.listValues));
  591. this.tableListcop = JSON.parse(JSON.stringify(returnData.listValues));
  592. this.tableList.forEach((item, index) => {
  593. item.indexs = index + 1;
  594. });
  595. this.tableListcop.forEach((item, index) => {
  596. item.indexs = index + 1;
  597. });
  598. if (this.action === 0) {
  599. let objar = {
  600. indexs: "合计",
  601. weight: returnData.listValues[0].totalWeight,
  602. };
  603. this.tableListcop.push(objar);
  604. } else if (this.action === 1) {
  605. let objar = {
  606. indexs: "合计",
  607. weight: returnData.listValues[0].totalWeight,
  608. };
  609. this.tableListcop.push(objar);
  610. } else if (this.action === 2) {
  611. let objar = {
  612. indexs: "合计",
  613. flightNum: returnData.listValues[0].totalFlightNum,
  614. weight: returnData.listValues[0].totalWeight,
  615. };
  616. this.tableListcop.push(objar);
  617. } else if (this.action === 3) {
  618. let objar = {
  619. indexs: "合计",
  620. weight: returnData.listValues[0].totalWeight,
  621. };
  622. } else if (this.action === 4) {
  623. if (this.picShow == true) {
  624. let objar = {
  625. indexs: "合计",
  626. pullFlightNum: returnData.listValues[0].totalPullFlightNum,
  627. pullWeight: returnData.listValues[0].totalPullWeight,
  628. };
  629. this.tableListcop.push(objar);
  630. } else {
  631. let objar = {
  632. indexs: "合计",
  633. totalWeight: returnData.listValues[0].hejiTotalWeight,
  634. pullWeight: returnData.listValues[0].hejiPullWeight,
  635. };
  636. this.tableListcop.push(objar);
  637. }
  638. }
  639. returnData.listValues.forEach((element) => {
  640. if (this.action === 0) {
  641. this.tableData.data2.push(element.weight ? element.weight : 0);
  642. this.tableData.time.push(element.dat);
  643. this.tableData.kg = "单位:吨";
  644. } else if (this.action === 1) {
  645. this.tableData.data2.push(
  646. element.flightNum ? element.flightNum : 0
  647. );
  648. this.tableData.time.push(element.dat);
  649. this.tableData.kg = "单位:班";
  650. } else if (this.action === 2) {
  651. this.tableData.time.push(element.dat);
  652. if (dat == 1) {
  653. this.tableData.data2.push(
  654. element.flightNum ? element.flightNum : 0
  655. );
  656. this.tableData.kg = "单位:单";
  657. } else if (dat == 2) {
  658. this.tableData.kg = "单位:吨";
  659. this.tableData.data2.push(element.weight ? element.weight : 0);
  660. }
  661. } else if (this.action === 3) {
  662. this.tableData.data2.push(element.weight ? element.weight : 0);
  663. this.tableData.time.push(element.fdt);
  664. this.tableData.kg = "单位:吨";
  665. } else if (this.action === 4) {
  666. this.tableData.time.push(element.dat);
  667. this.tableData.kg = "单位:吨";
  668. if (dat == 1) {
  669. this.tableData.data2.push(
  670. element.pullFlightNum ? element.pullFlightNum : 0
  671. );
  672. this.tableData.kg = "单位:班";
  673. } else if (dat == 2) {
  674. this.tableData.kg = "单位:吨";
  675. this.tableData.data2.push(
  676. element.pullWeight ? element.pullWeight : 0
  677. );
  678. }
  679. } else if (this.action === 5) {
  680. }
  681. this.tableData.data1 = [];
  682. });
  683. this.tableData.data1.push(0);
  684. for (let index = 0; index < this.tableData.data2.length; index++) {
  685. if (index > 0) {
  686. const element =
  687. (this.tableData.data2[index] -
  688. this.tableData.data2[index - 1]) /
  689. this.tableData.data2[index - 1];
  690. this.tableData.data1.push(
  691. element.toFixed(2) ? element.toFixed(2) : 0
  692. );
  693. this.tableData.data1.forEach((element) => {
  694. element = Number(element);
  695. if (typeof element !== "number") {
  696. element = 0;
  697. }
  698. });
  699. }
  700. }
  701. }
  702. } catch (error) {
  703. this.page--;
  704. }
  705. },
  706. //导出
  707. tableToExcel() {
  708. import("../../../utils/Export2Excel").then((excel) => {
  709. // 设置导出表格的头部
  710. const tHeader = this.listHeader;
  711. // 将要导出的数据进行一个过滤
  712. /**
  713. * 源数据导入到excel的数据每一条重新拼成一个数组,数组里的每个元素就是filterVal里的每个字段
  714. */
  715. const data = this.tableListcop.map((item, index) => {
  716. if (this.action === 0) {
  717. return [item.indexs, item.dat, item.weight, item.weightChain];
  718. } else if (this.action === 1) {
  719. return [item.indexs, item.dat, item.flightNum, item.weightChain];
  720. } else if (this.action === 2) {
  721. return [
  722. item.indexs,
  723. item.dat,
  724. item.flightNum,
  725. item.flightChain,
  726. item.weight,
  727. item.weightChain,
  728. ];
  729. } else if (this.action === 3) {
  730. return [item.indexs, item.fdt, item.weight, item.weightChain];
  731. } else if (this.action === 4) {
  732. if (this.picShow == true) {
  733. return [
  734. item.indexs,
  735. item.dat,
  736. item.pullFlightNum,
  737. item.flightChain,
  738. item.pullWeight,
  739. item.weightChain,
  740. ];
  741. } else {
  742. return [
  743. item.indexs,
  744. item.flightdate,
  745. item.flightNo,
  746. item.line,
  747. item.stand,
  748. item.totalWeight,
  749. item.pullWeight,
  750. ];
  751. }
  752. } else if (this.action === 5) {
  753. return [
  754. item.indexs,
  755. item.IATACode,
  756. item.flightNO,
  757. item.flightDate,
  758. item.planLandingTime,
  759. item.acLandingTime,
  760. item.target,
  761. item.unLoadTime,
  762. item.planeDownTime_IN,
  763. item.depotJoinTime_IN,
  764. item.tallyTime_in,
  765. ];
  766. }
  767. });
  768. data[data.length - 1].indexs = "总计";
  769. // 调用我们封装好的方法进行导出Excel
  770. excel.export_json_to_excel({
  771. // 导出的头部
  772. header: tHeader,
  773. // 导出的内容
  774. data,
  775. // 导出的文件名称
  776. filename: this.listname,
  777. // 导出的表格宽度是否自动
  778. autoWidth: true,
  779. // 导出文件的后缀类型
  780. bookType: "xlsx",
  781. });
  782. });
  783. },
  784. upset(data) {
  785. this.picShow = data;
  786. if (this.picShow == false && this.action === 4) {
  787. this.tableData.time = [];
  788. this.tableData.data1 = [];
  789. this.tableData.data2 = [];
  790. this.listHeader = [
  791. "序号",
  792. "日期",
  793. "航班号",
  794. "航线",
  795. "机位",
  796. "货物总重 (KG)",
  797. "拉货 (KG)",
  798. ];
  799. this.listqueryTemplateID = DATACONTENT_ID.modePulltable;
  800. this.getQuery(this.optiondata, this.set);
  801. // console.log(this.tableListcop);
  802. } else if (this.picShow == true && this.action === 4) {
  803. this.tableData.time = [];
  804. this.tableData.data1 = [];
  805. this.tableData.data2 = [];
  806. this.listHeader = [
  807. "序号",
  808. "时间",
  809. "航班量(班)",
  810. "环比(%)",
  811. "重量(吨)",
  812. "环比(%)",
  813. ];
  814. this.listqueryTemplateID = DATACONTENT_ID.modePullgoods;
  815. this.getQuery(this.optiondata, this.set);
  816. }
  817. },
  818. },
  819. components: {
  820. Echarts,
  821. StatisticsHeader,
  822. Tableformbrs,
  823. },
  824. };
  825. </script>
  826. <style lang="scss" scoped>
  827. .airportInfo {
  828. position: relative;
  829. .header {
  830. width: 103%;
  831. height: 36px;
  832. display: flex;
  833. align-items: center;
  834. justify-content: center;
  835. background: #f7f7f7;
  836. position: relative;
  837. left: -23px;
  838. > .nav {
  839. padding: 0 30px 0 30px;
  840. cursor: pointer;
  841. font-size: 16px;
  842. font-family: Microsoft YaHei;
  843. font-weight: 400;
  844. color: #101116;
  845. }
  846. > .navs {
  847. height: 100%;
  848. padding: 0 30px 0 30px;
  849. cursor: pointer;
  850. display: flex;
  851. align-items: center;
  852. font-size: 16px;
  853. font-family: Microsoft YaHei;
  854. font-weight: bold;
  855. color: #ac014d;
  856. border-bottom: 2px solid #ac014d;
  857. }
  858. }
  859. .variable {
  860. width: 100%;
  861. height: 52px;
  862. }
  863. .echart {
  864. width: 100%;
  865. height: 710px;
  866. position: absolute;
  867. background: #ffffff;
  868. box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.1);
  869. border-radius: 4px;
  870. }
  871. }
  872. </style>