index.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517
  1. <template>
  2. <div class="statisticalAnalysisContent">
  3. <div class="manageTitle">统计分析</div>
  4. <div class="content">
  5. <div class="content-list flex-wrap">
  6. <div class="content-list-box">
  7. <div class="content-list-box-bp">
  8. <div class="content-list-box-bp-title">运输总量</div>
  9. <div class="box-item">
  10. <li v-for="(item, index) in orderNum" :key="index" :class="{ 'number-item': !isNaN(item), 'mark-item': isNaN(item) }">
  11. <span v-if="!isNaN(item)">
  12. <i ref="numberItem">0123456789</i>
  13. </span>
  14. <span v-else class="comma">{{ item }}</span>
  15. </li>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="content-list-box">
  20. <div class="content-list-box-bp">
  21. <div class="total-transportation-info">
  22. <div class="flex">
  23. <div class="content-list-box-bp-title">运输总量</div>
  24. <div class="total-transportation-info-icons">
  25. <div class="total-transportation-info-icons-list">
  26. <span class="icon1 icon"></span>
  27. <span class="text">运输总数</span>
  28. </div>
  29. <div class="total-transportation-info-icons-list">
  30. <span class="icon2 icon"></span>
  31. <span class="text">托运旅客数</span>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="total-transportation-content">
  37. <LineCharts id="total-transportation" :option="totalOption" />
  38. </div>
  39. </div>
  40. </div>
  41. <div class="content-list-box">
  42. <div class="content-list-box-bp">
  43. <div class="content-list-box-bp-title">统计数据</div>
  44. <div class="statistical-data">
  45. <el-row>
  46. <el-col v-for="(item,index) in statisticalData" :key="index" :span="12">
  47. <div class="flex-wrap">
  48. <div class="icon">
  49. <img :src="item.src" :alt="item.msg">
  50. </div>
  51. <div class="info">
  52. <div class="info-time">
  53. <span class="info-time-xq">{{item.info}}</span>
  54. <span class="info-time-dw">{{item.dw}}</span>
  55. </div>
  56. <div class="info-msg">{{item.msg}}</div>
  57. </div>
  58. </div>
  59. </el-col>
  60. </el-row>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="content-list mt36 flex-wrap">
  66. <div class="content-list-box dbTy">
  67. <div class="content-list-box-bp">
  68. <div class="total-data flex-wrap">
  69. <div class="total-data-info">
  70. <div class="total-data-info-list">
  71. <span class="icon icon1"></span>
  72. <span class="text">航班数</span>
  73. </div>
  74. <div class="total-data-info-list">
  75. <span class="icon icon2"></span>
  76. <span class="text">中转数</span>
  77. </div>
  78. <div class="total-data-info-list">( 单位:万 )</div>
  79. </div>
  80. <div class="total-data-charts">
  81. <BarCharts id="total-charts" :option="dataOption" />
  82. </div>
  83. </div>
  84. </div>
  85. <div class="content-list-box-bp mt36">
  86. <div class="content-list-box-bp-title">异常行李</div>
  87. <div class="total-data pie-data flex-wrap">
  88. <div class="total-data-charts">
  89. <PieCharts id="pie-charts" :option="pieOption" />
  90. </div>
  91. <div class="total-data-info">
  92. <div class="total-data-info-list">
  93. <div class="pie-data-list">
  94. <span class="icon icon1"></span>
  95. <span class="text">多收</span>
  96. </div>
  97. <div class="pie-data-list flex-wrap">
  98. <span class="text flex1">数量:33327</span>
  99. <span class="text flex1">占比:40%</span>
  100. </div>
  101. </div>
  102. <div class="total-data-info-list">
  103. <div class="pie-data-list">
  104. <span class="icon icon2"></span>
  105. <span class="text">少收</span>
  106. </div>
  107. <div class="pie-data-list flex-wrap">
  108. <span class="text flex1">数量:33327</span>
  109. <span class="text flex1">占比:40%</span>
  110. </div>
  111. </div>
  112. <div class="total-data-info-list">
  113. <div class="pie-data-list">
  114. <span class="icon icon3"></span>
  115. <span class="text">破损</span>
  116. </div>
  117. <div class="pie-data-list flex-wrap">
  118. <span class="text flex1">数量:33327</span>
  119. <span class="text flex1">占比:40%</span>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="content-list-box boxMap">
  127. <MapCharts id="box-map" :option="boxMap" />
  128. <div class="boxMap-box flex-wrap">
  129. <div class="boxMap-pie domestic">
  130. <PieCharts id="domestic" :option="domesticOption" />
  131. </div>
  132. <div class="boxMap-pie international">
  133. <PieCharts id="international" :option="internationalOption" />
  134. </div>
  135. </div>
  136. </div>
  137. <div class="content-list-box">
  138. <div class="content-list-box-bp">
  139. <div class="content-list-box-bp-title">航站运输排行</div>
  140. <div class="terminal-transportation mt36">
  141. <vue-seamless-scroll class="scrollTable" :class-option="defaultOption">
  142. <div class="terminal-transportation-list flex-wrap" v-for="item in terminalData" :key="item.id">
  143. <div class="name">{{item.name}}</div>
  144. <div class="progress">
  145. <el-progress :percentage="item.percentage" :color="customColor"></el-progress>
  146. </div>
  147. <div class="num">{{item.num}}</div>
  148. </div>
  149. </vue-seamless-scroll>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </template>
  157. <script>
  158. import LineCharts from '@/layout/components/Echarts/commonChartsLine.vue'
  159. import BarCharts from '@/layout/components/Echarts/commonChartsBar.vue'
  160. import PieCharts from '@/layout/components/Echarts/commonChartsPie.vue'
  161. import MapCharts from '@/layout/components/Echarts/commonChartsChinaMap.vue'
  162. import vueSeamlessScroll from 'vue-seamless-scroll'
  163. import { Query } from "@/api/dataIntegration"
  164. const citydata = [{
  165. name: "北京",
  166. value: 974
  167. },
  168. {
  169. name: "天津",
  170. value: 532
  171. },
  172. {
  173. name: "上海",
  174. value: 834
  175. },
  176. {
  177. name: "重庆",
  178. value: 683
  179. },
  180. {
  181. name: "河北",
  182. value: 283
  183. },
  184. {
  185. name: "河南",
  186. value: 345
  187. },
  188. {
  189. name: "云南",
  190. value: 272
  191. },
  192. {
  193. name: "辽宁",
  194. value: 194
  195. },
  196. {
  197. name: "黑龙江",
  198. value: 342
  199. },
  200. {
  201. name: "湖南",
  202. value: 389
  203. },
  204. {
  205. name: "安徽",
  206. value: 267
  207. },
  208. {
  209. name: "山东",
  210. value: 675
  211. },
  212. {
  213. name: "新疆",
  214. value: 174
  215. },
  216. {
  217. name: "江苏",
  218. value: 574
  219. },
  220. {
  221. name: "浙江",
  222. value: 278
  223. },
  224. {
  225. name: "江西",
  226. value: 528
  227. },
  228. {
  229. name: "湖北",
  230. value: 144
  231. },
  232. {
  233. name: "广西",
  234. value: 448
  235. },
  236. {
  237. name: "甘肃",
  238. value: 197
  239. },
  240. {
  241. name: "山西",
  242. value: 203
  243. },
  244. {
  245. name: "内蒙古",
  246. value: 373
  247. },
  248. {
  249. name: "陕西",
  250. value: 563
  251. },
  252. {
  253. name: "吉林",
  254. value: 147
  255. },
  256. {
  257. name: "福建",
  258. value: 112
  259. },
  260. {
  261. name: "贵州",
  262. value: 373
  263. },
  264. {
  265. name: "广东",
  266. value: 747
  267. },
  268. {
  269. name: "青海",
  270. value: 38
  271. },
  272. {
  273. name: "西藏",
  274. value: 126
  275. },
  276. {
  277. name: "四川",
  278. value: 215
  279. },
  280. {
  281. name: "宁夏",
  282. value: 172
  283. },
  284. {
  285. name: "海南",
  286. value: 77
  287. },
  288. {
  289. name: "台湾",
  290. value: 837
  291. },
  292. {
  293. name: "香港",
  294. value: 677
  295. },
  296. {
  297. name: "澳门",
  298. value: 43
  299. },
  300. {
  301. name: "南海诸岛",
  302. value: 53
  303. }]
  304. let data = {
  305. female: {
  306. name: '中转数',
  307. data: [{
  308. value: 43,
  309. label: '2022-01'
  310. }, {
  311. value: 34,
  312. label: '2022-02'
  313. }, {
  314. value: 53,
  315. label: '2022-03'
  316. }, {
  317. value: 12,
  318. label: '2022-04'
  319. }, {
  320. value: 34,
  321. label: '2022-05'
  322. }]
  323. },
  324. male: {
  325. name: '航班数',
  326. data: [{
  327. value: 43,
  328. label: '2022-01'
  329. }, {
  330. value: 34,
  331. label: '2022-02'
  332. }, {
  333. value: 53,
  334. label: '2022-03'
  335. }, {
  336. value: 12,
  337. label: '2022-04'
  338. }, {
  339. value: 34,
  340. label: '2022-05'
  341. }]
  342. }
  343. };
  344. let yAxisData = new Set();
  345. let legendData = [];
  346. _.forEach(data, (d) => {
  347. legendData.push(d.name);
  348. _.forEach(d.data, (item) => {
  349. yAxisData.add(item.label);
  350. });
  351. });
  352. let top = 0;
  353. let bottom = 0;
  354. yAxisData = [...yAxisData];
  355. export default {
  356. name: 'statisticalAnalysisContent',
  357. components: {
  358. LineCharts,
  359. BarCharts,
  360. PieCharts,
  361. MapCharts,
  362. vueSeamlessScroll
  363. },
  364. data () {
  365. return {
  366. countEnterNum: '4567891',
  367. orderNum: ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0'],
  368. statisticalData: [
  369. {
  370. id: 1,
  371. src: require('../../../assets/analysis/ic_time_statistical.png'),
  372. info: '28',
  373. msg: '平均运输时间',
  374. dw: 'min',
  375. key: 'transportation'
  376. },
  377. {
  378. id: 2,
  379. src: require('../../../assets/analysis/ic_time_statistical.png'),
  380. info: '28',
  381. msg: '平均装机时间',
  382. dw: 'min',
  383. key: 'installation'
  384. },
  385. {
  386. id: 3,
  387. src: require('../../../assets/analysis/ic_luggage_statistical.png'),
  388. info: '0.21',
  389. msg: '人均托运',
  390. dw: '件/人',
  391. key: 'avgbag'
  392. },
  393. {
  394. id: 4,
  395. src: require('../../../assets/analysis/ic_change_statistical.png'),
  396. info: '176',
  397. msg: '中转数',
  398. dw: '件',
  399. key: 'transnum'
  400. }
  401. ],
  402. totalOption: {
  403. tooltip: {
  404. trigger: 'axis'
  405. },
  406. // legend: {
  407. // data: ['运输总数', '托运旅客数'],
  408. // show: true,
  409. // top: 0,
  410. // icon: 'roundRect'
  411. // },
  412. grid: {
  413. left: '0%',
  414. right: '0%',
  415. bottom: '0%',
  416. top: '15%',
  417. containLabel: true
  418. },
  419. color: ['#F5BB3D', '#73D970', '#6A9DD9'],
  420. xAxis: {
  421. type: 'category',
  422. boundaryGap: true,
  423. data: ['2021.12', '2022.01', '2022.02', '2022.03', '2022.04', '2022.05'],
  424. axisLine: {
  425. show: true,
  426. lineStyle: {
  427. color: '#fff'
  428. }
  429. },
  430. axisTick: {
  431. show: false
  432. },
  433. axisLabel: {
  434. color: '#fff',
  435. }
  436. },
  437. yAxis: {
  438. type: 'value',
  439. axisLabel: {
  440. color: '#fff',
  441. formatter: function (item) {
  442. return (item / 10000) + '万'
  443. }
  444. },
  445. splitLine: {
  446. lineStyle: {
  447. type: 'dashed',
  448. color: 'rgba(196,194,225, 0.54)'
  449. }
  450. }
  451. },
  452. series: [
  453. {
  454. name: '运输总数',
  455. type: 'line',
  456. symbol: 'none',
  457. key: 'bagsnum',
  458. data: [120, 132, 101, 134, 90, 230, 210],
  459. areaStyle: {
  460. color: {
  461. type: 'linear',
  462. x: 0,
  463. y: 0,
  464. x2: 0,
  465. y2: 1,
  466. colorStops: [{
  467. offset: 0, color: 'rgba(125,72,255,0.5)'
  468. }, {
  469. offset: 1, color: 'rgba(0,180,255,0.01)'
  470. }],
  471. global: false
  472. }
  473. },
  474. },
  475. {
  476. name: '托运旅客数',
  477. type: 'line',
  478. symbol: 'none',
  479. key: 'passengers',
  480. data: [220, 182, 191, 234, 290, 330, 310],
  481. areaStyle: {
  482. color: {
  483. type: 'linear',
  484. x: 0,
  485. y: 0,
  486. x2: 0,
  487. y2: 1,
  488. colorStops: [{
  489. offset: 0, color: 'rgba(125,72,255,0.5)'
  490. }, {
  491. offset: 1, color: 'rgba(0,180,255,0.01)'
  492. }],
  493. global: false
  494. }
  495. },
  496. },
  497. ]
  498. },
  499. dataOption: {
  500. tooltip: {
  501. show: true,
  502. trigger: 'axis',
  503. axisPointer: {
  504. type: 'shadow'
  505. }
  506. },
  507. grid: [{
  508. left: '10%',
  509. width: '40%',
  510. containLabel: true,
  511. bottom
  512. }, {
  513. left: '8%',
  514. width: '0%',
  515. bottom: bottom + 16
  516. }, {
  517. right: '10%',
  518. width: '40%',
  519. containLabel: true,
  520. bottom
  521. }].map(item => _.merge({
  522. top
  523. }, item)),
  524. xAxis: [{
  525. type: 'value',
  526. inverse: true,
  527. axisLabel: {
  528. color: '#fff',
  529. },
  530. axisLine: {
  531. show: true,
  532. lineStyle: {
  533. color: '#fff'
  534. }
  535. },
  536. axisTick: {
  537. show: false
  538. },
  539. splitLine: {
  540. show: false
  541. },
  542. }, {
  543. gridIndex: 1,
  544. show: true
  545. }, {
  546. gridIndex: 2,
  547. type: 'value',
  548. axisLabel: {
  549. color: '#fff'
  550. },
  551. axisLine: {
  552. show: true,
  553. lineStyle: {
  554. color: '#fff'
  555. }
  556. },
  557. axisTick: {
  558. show: false
  559. },
  560. splitLine: {
  561. show: false
  562. }
  563. }].map((item) => _.merge(item, {
  564. axisLabel: {
  565. color: '#fff',
  566. margin: 10
  567. },
  568. splitLine: {
  569. lineStyle: {
  570. color: '#E0E0E0',
  571. type: 'dashed'
  572. }
  573. },
  574. })),
  575. yAxis: [{
  576. position: 'right',
  577. axisLabel: {
  578. show: false
  579. },
  580. axisLine: {
  581. show: true
  582. }
  583. },
  584. {
  585. gridIndex: 1,
  586. position: 'center',
  587. axisLabel: {
  588. align: 'center',
  589. padding: [8, 0, 0, 0],
  590. fontSize: 12,
  591. color: `#fff`
  592. },
  593. axisLine: {
  594. show: false
  595. }
  596. },
  597. {
  598. gridIndex: 2,
  599. position: 'left',
  600. axisLabel: {
  601. show: false
  602. },
  603. axisLine: {
  604. show: true
  605. }
  606. }
  607. ].map((item) => {
  608. return _.merge(item, {
  609. type: 'category',
  610. inverse: false,
  611. axisLine: {
  612. lineStyle: {
  613. color: '#E0E0E0'
  614. }
  615. },
  616. axisTick: {
  617. show: false
  618. },
  619. data: yAxisData
  620. });
  621. }),
  622. series: [{
  623. name: _.get(data, 'male.name'),
  624. label: {
  625. position: 'left'
  626. },
  627. itemStyle: {
  628. color: '#2D67E3',
  629. barBorderRadius: [4, 0, 0, 4]
  630. },
  631. data: _.map(_.get(data, 'male.data'), d => d.value)
  632. },
  633. {
  634. xAxisIndex: 2,
  635. yAxisIndex: 2,
  636. name: _.get(data, 'female.name'),
  637. label: {
  638. position: 'right'
  639. },
  640. itemStyle: {
  641. color: '#E9C042',
  642. barBorderRadius: [0, 4, 4, 0]
  643. },
  644. data: _.map(_.get(data, 'female.data'), d => d.value)
  645. }
  646. ].map(item => _.merge(item, {
  647. type: 'bar',
  648. barWidth: 11,
  649. label: {
  650. show: false,
  651. fontFamily: 'Rubik-Medium',
  652. fontSize: 14,
  653. distance: 10
  654. }
  655. }))
  656. },
  657. pieOption: {
  658. color: ["#E5983E", "#8249C9 ", "#B03377"],
  659. series: [
  660. {
  661. name: "异常行李",
  662. radius: ["40%", "100%"],
  663. left: '-5%',
  664. top: '10%',
  665. right: '10%',
  666. bottom: '10%',
  667. data: [
  668. { value: 1048, key: "roleCount", name: "多收" },
  669. { value: 735, key: "defRoleCunt", name: "少收" },
  670. { value: 735, key: "unuseRole", name: "破损" },
  671. ],
  672. },
  673. ],
  674. },
  675. boxMap: {
  676. title: [{
  677. show: true,
  678. text: '区域运输TOP',
  679. left: 20,
  680. top: 20,
  681. textStyle: {
  682. color: '#fff'
  683. },
  684. },],
  685. tooltip: {
  686. trigger: "item"
  687. },
  688. legend: {
  689. show: false
  690. },
  691. grid: {
  692. left: 0,
  693. right: 0,
  694. top: 0,
  695. bottom: 0
  696. },
  697. visualMap: {
  698. type: 'continuous',
  699. text: ['高', '低'],
  700. min: 0,
  701. max: 1000,
  702. seriesIndex: [0, 2],
  703. dimension: 0,
  704. realtime: false,
  705. left: 0,
  706. itemWidth: 8,
  707. itemHeight: 93,
  708. calculable: true,
  709. inRange: {
  710. color: ['#124BAA', '#75DDFF'],
  711. symbolSize: [100, 100]
  712. },
  713. textStyle: {
  714. color: '#fff'
  715. },
  716. outOfRange: {
  717. color: ['#eeeeee'],
  718. symbolSize: [100, 100]
  719. },
  720. },
  721. toolbox: {
  722. show: false
  723. },
  724. xAxis: {
  725. show: false
  726. },
  727. yAxis: {
  728. show: false
  729. },
  730. series: [{
  731. name: "人数",
  732. type: "map",
  733. mapType: "china",
  734. left: '100',
  735. width: '40%',
  736. roam: 'move',
  737. mapValueCalculation: "sum",
  738. zoom: 1,
  739. selectedMode: false,
  740. showLegendSymbol: false,
  741. left: '10%',
  742. top: '10%',
  743. width: '80%',
  744. label: {
  745. normal: {
  746. textStyle: {
  747. color: '#666'
  748. }
  749. },
  750. emphasis: {
  751. textStyle: {
  752. color: '#234EA5'
  753. }
  754. }
  755. },
  756. itemStyle: {
  757. normal: {
  758. areaColor: '#EEEEEE',
  759. borderColor: '#FFFFFF'
  760. },
  761. emphasis: {
  762. areaColor: '#E5F39B'
  763. }
  764. },
  765. data: citydata
  766. },
  767. ]
  768. },
  769. domesticOption: {
  770. title: [{
  771. text: '国内',
  772. x: 'center',
  773. top: '55%',
  774. textStyle: {
  775. color: '#FFFFFF',
  776. fontSize: 14,
  777. fontWeight: '100',
  778. }
  779. }, {
  780. text: '60%',
  781. x: 'center',
  782. top: '32%',
  783. textStyle: {
  784. fontSize: '24',
  785. color: '#FFFFFF',
  786. fontFamily: 'DINAlternate-Bold, DINAlternate',
  787. foontWeight: '600',
  788. },
  789. }],
  790. tooltip: {
  791. show: false
  792. },
  793. polar: {
  794. radius: ['50%', '100%'],
  795. center: ['50%', '50%'],
  796. },
  797. angleAxis: {
  798. max: 100,
  799. show: false,
  800. },
  801. radiusAxis: {
  802. type: 'category',
  803. show: true,
  804. axisLabel: {
  805. show: false,
  806. },
  807. axisLine: {
  808. show: false,
  809. },
  810. axisTick: {
  811. show: false,
  812. },
  813. },
  814. series: [{
  815. name: '',
  816. type: 'bar',
  817. roundCap: true,
  818. barWidth: 8,
  819. showBackground: true,
  820. backgroundStyle: {
  821. color: '#A4A3BF',
  822. },
  823. data: [60],
  824. coordinateSystem: 'polar',
  825. itemStyle: {
  826. normal: {
  827. color: new this.$echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  828. offset: 0,
  829. color: '#fff',
  830. },
  831. {
  832. offset: 1,
  833. color: '#fff',
  834. },
  835. ]),
  836. },
  837. },
  838. },
  839. {
  840. name: '',
  841. type: 'pie',
  842. startAngle: 80,
  843. radius: ['50%'],
  844. hoverAnimation: false,
  845. center: ['50%', '50%'],
  846. itemStyle: {
  847. color: 'rgba(66, 66, 66, .1)',
  848. borderWidth: 2,
  849. borderColor: '#fff',
  850. },
  851. data: [100],
  852. }
  853. ],
  854. },
  855. internationalOption: {
  856. title: [{
  857. text: '国际',
  858. x: 'center',
  859. top: '55%',
  860. textStyle: {
  861. color: '#FFFFFF',
  862. fontSize: 14,
  863. fontWeight: '100',
  864. }
  865. }, {
  866. text: '10%',
  867. x: 'center',
  868. top: '32%',
  869. textStyle: {
  870. fontSize: '24',
  871. color: '#FFFFFF',
  872. fontFamily: 'DINAlternate-Bold, DINAlternate',
  873. foontWeight: '600',
  874. },
  875. }],
  876. tooltip: {
  877. show: false
  878. },
  879. polar: {
  880. radius: ['50%', '100%'],
  881. center: ['50%', '50%'],
  882. },
  883. angleAxis: {
  884. max: 100,
  885. show: false,
  886. },
  887. radiusAxis: {
  888. type: 'category',
  889. show: true,
  890. axisLabel: {
  891. show: false,
  892. },
  893. axisLine: {
  894. show: false,
  895. },
  896. axisTick: {
  897. show: false,
  898. },
  899. },
  900. series: [{
  901. name: '',
  902. type: 'bar',
  903. roundCap: true,
  904. barWidth: 8,
  905. showBackground: true,
  906. backgroundStyle: {
  907. color: '#A4A3BF',
  908. },
  909. data: [10],
  910. coordinateSystem: 'polar',
  911. itemStyle: {
  912. normal: {
  913. color: new this.$echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  914. offset: 0,
  915. color: '#fff',
  916. },
  917. {
  918. offset: 1,
  919. color: '#fff',
  920. },
  921. ]),
  922. },
  923. },
  924. },
  925. {
  926. name: '',
  927. type: 'pie',
  928. startAngle: 80,
  929. radius: ['50%'],
  930. hoverAnimation: false,
  931. center: ['50%', '50%'],
  932. itemStyle: {
  933. color: 'rgba(66, 66, 66, .1)',
  934. borderWidth: 2,
  935. borderColor: '#fff',
  936. },
  937. data: [100],
  938. }
  939. ],
  940. },
  941. terminalData: [
  942. {
  943. id: 1,
  944. name: 'PEK',
  945. num: 903133,
  946. percentage: 20
  947. },
  948. {
  949. id: 2,
  950. name: 'CTU',
  951. num: 572570,
  952. percentage: 25
  953. },
  954. {
  955. id: 3,
  956. name: 'TFU',
  957. num: 263859,
  958. percentage: 30
  959. },
  960. {
  961. id: 4,
  962. name: 'CKG',
  963. num: 260811,
  964. percentage: 20
  965. },
  966. {
  967. id: 5,
  968. name: 'HGH',
  969. num: 184195,
  970. percentage: 50
  971. },
  972. {
  973. id: 6,
  974. name: 'PVG',
  975. num: 104716,
  976. percentage: 70
  977. },
  978. {
  979. id: 7,
  980. name: 'SZX',
  981. num: 104371,
  982. percentage: 90
  983. },
  984. {
  985. id: 8,
  986. name: 'CKG',
  987. num: 260811,
  988. percentage: 20
  989. },
  990. {
  991. id: 9,
  992. name: 'HGH',
  993. num: 184195,
  994. percentage: 50
  995. },
  996. {
  997. id: 10,
  998. name: 'PVG',
  999. num: 104716,
  1000. percentage: 70
  1001. },
  1002. {
  1003. id: 11,
  1004. name: 'SZX',
  1005. num: 104371,
  1006. percentage: 90
  1007. }
  1008. ],
  1009. customColor: '#6EADE8'
  1010. }
  1011. },
  1012. computed: {
  1013. defaultOption () {
  1014. return {
  1015. step: 0.5, //数值越大速度滚动越快
  1016. limitMoveNum: 0, //开始无缝滚动的数据量 //this.fourDatata.length
  1017. hoverStop: true, //是否开启鼠标悬停stop
  1018. direction: 1, // 0向下 1向上 2向左 3向右
  1019. openWatch: true, //开启数据实时监控刷新dom
  1020. singleHeight: 0, //单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
  1021. singleWidth: 0, //单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
  1022. waitTime: 1000 //单步运动停止的时间(默认值1000ms)
  1023. }
  1024. }
  1025. },
  1026. watch: {
  1027. countEnterNum () {
  1028. this.getCountEnterNum();
  1029. }
  1030. },
  1031. created () {
  1032. this.getDataInit()
  1033. },
  1034. methods: {
  1035. //获取运输总量
  1036. async getOrderNum () {
  1037. const { code, returnData } = await Query({
  1038. id: 18012,
  1039. dataContent: []
  1040. })
  1041. if (code == 0) {
  1042. const { listValues } = returnData
  1043. this.countEnterNum = listValues[0]['bagsnum']
  1044. } else {
  1045. this.countEnterNum = '000000000'
  1046. }
  1047. },
  1048. //获取运输总量-统计图
  1049. async getOrderNumChart () {
  1050. const { code, returnData } = await Query({
  1051. id: 18013,
  1052. dataContent: []
  1053. })
  1054. if (code == 0) {
  1055. const { listValues } = returnData
  1056. const [mouth, bagsnum, passengers] = [[], [], []]
  1057. listValues.forEach(item => {
  1058. mouth.push(item.month)
  1059. bagsnum.push(item.bagsnum)
  1060. passengers.push(item.passengers)
  1061. })
  1062. this.totalOption.xAxis.data = mouth
  1063. this.totalOption.series.map(item => {
  1064. if (item.key == 'bagsnum') {
  1065. item.data = bagsnum
  1066. } else if (item.key == 'passengers') {
  1067. item.data = passengers
  1068. }
  1069. })
  1070. } else {
  1071. }
  1072. },
  1073. //获取统计数据
  1074. async getStatistical () {
  1075. const { code, returnData } = await Query({
  1076. id: 18014,
  1077. dataContent: []
  1078. })
  1079. if (code == 0) {
  1080. const { listValues } = returnData
  1081. const { avgbag, transnum } = listValues[0]
  1082. this.statisticalData.map(item => {
  1083. if (item.key == 'avgbag') {
  1084. item.info = avgbag
  1085. } else if (item.key == 'transnum') {
  1086. item.info = transnum
  1087. } else {
  1088. item.info = '-'
  1089. }
  1090. })
  1091. } else {
  1092. this.statisticalData.map(item => {
  1093. item.info = '-'
  1094. })
  1095. }
  1096. },
  1097. //获取航班数
  1098. async getFignts () {
  1099. const { code, returnData } = await Query({
  1100. id: 18015,
  1101. dataContent: []
  1102. })
  1103. if (code == 0) {
  1104. const { listValues } = returnData
  1105. } else {
  1106. }
  1107. },
  1108. //获取中转数
  1109. async getSpeed () {
  1110. const result = await Query({
  1111. id: 18016,
  1112. dataContent: []
  1113. })
  1114. console.log(result)
  1115. },
  1116. //获取初始数据
  1117. getDataInit () {
  1118. this.getOrderNum()
  1119. this.getOrderNumChart()
  1120. this.getStatistical()
  1121. this.getFignts()
  1122. this.getSpeed()
  1123. },
  1124. getCountEnterNum () {
  1125. this.$nextTick(() => {
  1126. this.toOrderNum(this.countEnterNum); // 这里输入数字即可调用
  1127. this.setNumberTransform();
  1128. });
  1129. },
  1130. toOrderNum (num) {
  1131. num = num.toString()
  1132. if (num.length < 9) {
  1133. num = '0' + num // 如未满八位数,添加"0"补位
  1134. this.toOrderNum(num) // 递归添加"0"补位
  1135. } else if (num.length >= 9) {
  1136. this.orderNum = num.split('') // 将其便变成数据,渲染至滚动数组
  1137. } else {
  1138. // 订单总量数字超过八位显示异常
  1139. this.$message.warning('总量数字过大')
  1140. }
  1141. },
  1142. setNumberTransform () {
  1143. const numberItems = this.$refs.numberItem // 拿到数字的ref,计算元素数量
  1144. const numberArr = this.orderNum.filter(item => !isNaN(item))
  1145. // 结合CSS 对数字字符进行滚动,显示订单数量
  1146. for (let index = 0; index < numberItems.length; index++) {
  1147. const elem = numberItems[index]
  1148. elem.style.transform = `translate(-50%, -${numberArr[index] * 10}%)`
  1149. }
  1150. },
  1151. },
  1152. }
  1153. </script>
  1154. <style lang="scss" scoped>
  1155. .statisticalAnalysisContent {
  1156. color: #fff;
  1157. padding: 30px 24px 40px 24px;
  1158. min-height: calc(100vh - 80px);
  1159. background-image: url("../../../assets/analysis/bg.png");
  1160. background-repeat: no-repeat;
  1161. background-size: 100% 100%;
  1162. .manageTitle {
  1163. color: #fff;
  1164. }
  1165. .mt36 {
  1166. margin-top: 36px;
  1167. }
  1168. .content {
  1169. margin-top: 28px;
  1170. margin-left: 0;
  1171. &-list {
  1172. &-box {
  1173. width: 33%;
  1174. overflow: hidden;
  1175. margin-right: 36px;
  1176. background-image: linear-gradient(
  1177. #fff 2px,
  1178. transparent 2px,
  1179. transparent calc(100% - 2px),
  1180. #fff calc(100% - 2px),
  1181. #fff 100%
  1182. ),
  1183. linear-gradient(
  1184. 90deg,
  1185. #fff 2px,
  1186. transparent 2px,
  1187. transparent calc(100% - 2px),
  1188. #fff calc(100% - 2px),
  1189. #fff 100%
  1190. ),
  1191. linear-gradient(
  1192. #fff 2px,
  1193. transparent 2px,
  1194. transparent calc(100% - 2px),
  1195. #fff calc(100% - 2px),
  1196. #fff 100%
  1197. ),
  1198. linear-gradient(
  1199. 90deg,
  1200. #fff 2px,
  1201. transparent 2px,
  1202. transparent calc(100% - 2px),
  1203. #fff calc(100% - 2px),
  1204. #fff 100%
  1205. );
  1206. background-repeat: no-repeat;
  1207. background-position: top left, top left, bottom right, bottom right;
  1208. background-size: 10px 100%, 100% 10px;
  1209. &-bp {
  1210. padding: 36px;
  1211. position: relative;
  1212. height: 100%;
  1213. border: 1px solid rgba($color: #fff, $alpha: 0.3);
  1214. &-title {
  1215. height: 20px;
  1216. font-size: 20px;
  1217. font-family: Microsoft YaHei;
  1218. font-weight: bold;
  1219. color: #ffffff;
  1220. }
  1221. .total-transportation {
  1222. &-info {
  1223. &-icons {
  1224. display: flex;
  1225. }
  1226. &-icons-list {
  1227. margin-right: 20px;
  1228. .icon {
  1229. width: 14px;
  1230. height: 14px;
  1231. border-radius: 2px;
  1232. display: inline-block;
  1233. margin-right: 8px;
  1234. position: relative;
  1235. top: 2px;
  1236. }
  1237. .icon1 {
  1238. background: #f5bb3d;
  1239. }
  1240. .icon2 {
  1241. background: #73d970;
  1242. }
  1243. .icon3 {
  1244. background: #6a9dd9;
  1245. }
  1246. .text {
  1247. font-size: 14px;
  1248. font-family: Microsoft YaHei;
  1249. font-weight: 400;
  1250. color: #ffffff;
  1251. }
  1252. &:last-child {
  1253. margin-right: 0;
  1254. }
  1255. }
  1256. }
  1257. &-content {
  1258. height: 100%;
  1259. flex: 1;
  1260. position: relative;
  1261. }
  1262. }
  1263. .statistical-data {
  1264. .el-col {
  1265. margin-top: 28px;
  1266. .icon {
  1267. width: 56px;
  1268. height: 56px;
  1269. background: #1e3c6f;
  1270. border-radius: 50%;
  1271. margin-right: 24px;
  1272. }
  1273. .info {
  1274. &-time {
  1275. &-xq {
  1276. font-size: 36px;
  1277. font-family: Helvetica;
  1278. font-weight: bold;
  1279. color: #f7c15a;
  1280. }
  1281. &-dw {
  1282. font-size: 24px;
  1283. font-family: DIN;
  1284. font-weight: bold;
  1285. color: #ffffff;
  1286. margin-left: 14px;
  1287. }
  1288. }
  1289. &-msg {
  1290. font-size: 14px;
  1291. font-family: Microsoft YaHei;
  1292. font-weight: bold;
  1293. color: #ffffff;
  1294. }
  1295. }
  1296. }
  1297. }
  1298. .total-data {
  1299. &-info {
  1300. width: 100px;
  1301. &-list {
  1302. font-size: 14px;
  1303. margin-bottom: 20px;
  1304. .icon {
  1305. display: inline-block;
  1306. width: 4px;
  1307. height: 14px;
  1308. margin-right: 8px;
  1309. }
  1310. .icon1 {
  1311. background: #2d67e3;
  1312. }
  1313. .icon2 {
  1314. background: #e9c042;
  1315. }
  1316. }
  1317. }
  1318. &-charts {
  1319. flex: 1;
  1320. position: relative;
  1321. min-height: 200px;
  1322. }
  1323. }
  1324. .pie-data {
  1325. margin-top: 24px;
  1326. .total-data-info {
  1327. flex: 1;
  1328. }
  1329. &-list {
  1330. font-size: 14px;
  1331. margin-bottom: 20px;
  1332. font-weight: bold;
  1333. .icon {
  1334. display: inline-block;
  1335. width: 4px;
  1336. height: 14px;
  1337. margin-right: 8px;
  1338. }
  1339. .icon1 {
  1340. background: #e5983e;
  1341. }
  1342. .icon2 {
  1343. background: #8249c9;
  1344. }
  1345. .icon3 {
  1346. background: #b03377;
  1347. }
  1348. }
  1349. .total-data-charts {
  1350. position: relative;
  1351. min-height: 140px;
  1352. overflow: hidden;
  1353. margin-right: 24px;
  1354. }
  1355. }
  1356. &::after {
  1357. position: absolute;
  1358. content: "";
  1359. width: 11px;
  1360. height: 11px;
  1361. background-image: url("../../../assets/analysis/pic_triangle_conner.png");
  1362. background-repeat: no-repeat;
  1363. background-size: 100% 100%;
  1364. left: 10px;
  1365. top: 10px;
  1366. }
  1367. }
  1368. &:last-child {
  1369. margin-right: 0;
  1370. }
  1371. }
  1372. .dbTy {
  1373. .content-list-box-bp {
  1374. height: auto;
  1375. }
  1376. }
  1377. }
  1378. }
  1379. .box-item {
  1380. margin-top: 36px;
  1381. position: relative;
  1382. height: 66px;
  1383. font-size: 18px;
  1384. line-height: 32px;
  1385. text-align: center;
  1386. list-style: none;
  1387. color: #2d7cff;
  1388. display: flex;
  1389. justify-content: center;
  1390. text-orientation: upright;
  1391. /*文字禁止编辑*/
  1392. -moz-user-select: none; /*火狐*/
  1393. -webkit-user-select: none; /*webkit浏览器*/
  1394. -ms-user-select: none; /*IE10*/
  1395. -khtml-user-select: none; /*早期浏览器*/
  1396. user-select: none;
  1397. /* overflow: hidden; */
  1398. p {
  1399. line-height: 32px;
  1400. writing-mode: horizontal-tb !important;
  1401. text-orientation: none !important;
  1402. /*文字禁止编辑*/
  1403. -moz-user-select: none; /*火狐*/
  1404. -webkit-user-select: none; /*webkit浏览器*/
  1405. -ms-user-select: none; /*IE10*/
  1406. -khtml-user-select: none; /*早期浏览器*/
  1407. user-select: none;
  1408. margin-top: 5px;
  1409. }
  1410. }
  1411. /* 默认逗号设置 */
  1412. .mark-item {
  1413. width: 10px;
  1414. height: 32px;
  1415. margin-right: 5px;
  1416. line-height: 10px;
  1417. font-size: 18px;
  1418. position: relative;
  1419. & > span {
  1420. position: absolute;
  1421. width: 100%;
  1422. bottom: 0;
  1423. writing-mode: vertical-rl;
  1424. text-orientation: upright;
  1425. }
  1426. }
  1427. /*滚动数字设置*/
  1428. .number-item {
  1429. width: 42px;
  1430. height: 66px;
  1431. background: #1e3c6f;
  1432. list-style: none;
  1433. margin-right: 10px;
  1434. & > span {
  1435. position: relative;
  1436. display: inline-block;
  1437. margin-right: 10px;
  1438. width: 100%;
  1439. height: 100%;
  1440. writing-mode: vertical-rl;
  1441. text-orientation: upright;
  1442. overflow: hidden;
  1443. & > i {
  1444. font-size: 48px;
  1445. font-family: DIN;
  1446. font-weight: bold;
  1447. color: #ffffff;
  1448. font-style: normal;
  1449. position: absolute;
  1450. top: 11px;
  1451. left: 50%;
  1452. transform: translate(-50%, -1%);
  1453. transition: transform 1s ease-in-out;
  1454. letter-spacing: 10px;
  1455. }
  1456. }
  1457. }
  1458. .number-item:last-child {
  1459. margin-right: 0;
  1460. }
  1461. .boxMap {
  1462. background-image: none;
  1463. position: relative;
  1464. &-box {
  1465. justify-content: center;
  1466. position: absolute;
  1467. bottom: 10px;
  1468. left: 0;
  1469. width: 100%;
  1470. }
  1471. &-pie {
  1472. position: relative;
  1473. width: 145px;
  1474. height: 145px;
  1475. margin-right: 55px;
  1476. &:last-child {
  1477. margin-right: 0;
  1478. }
  1479. }
  1480. }
  1481. .terminal-transportation {
  1482. .scrollTable {
  1483. max-height: 500px;
  1484. overflow: hidden;
  1485. }
  1486. &-list {
  1487. margin-top: 36px;
  1488. .name {
  1489. font-size: 14px;
  1490. font-family: Helvetica;
  1491. font-weight: bold;
  1492. color: #ffffff;
  1493. }
  1494. ::v-deep .progress {
  1495. min-width: 300px;
  1496. margin: 0 36px;
  1497. .el-progress-bar {
  1498. padding-right: 0;
  1499. .el-progress-bar__outer {
  1500. background-color: #534e75;
  1501. }
  1502. }
  1503. .el-progress__text {
  1504. display: none;
  1505. }
  1506. }
  1507. }
  1508. }
  1509. }
  1510. </style>>