StationManagement.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869
  1. <template>
  2. <Layout>
  3. <template #left>
  4. <div class="left">
  5. <Box
  6. :width="665"
  7. :height="396"
  8. :name="'安全行驶'"
  9. style="margin-bottom: 25px;"
  10. >
  11. <div class="body">
  12. <div class="total">
  13. <img
  14. src="../../../../assets/img/1-1.png"
  15. alt=""
  16. >
  17. <p>40</p>
  18. <div>总量</div>
  19. </div>
  20. <Echart :option="option" />
  21. </div>
  22. </Box>
  23. <Box
  24. v-for="item in leftTitle"
  25. :key="item.name"
  26. :width="665"
  27. :height="396"
  28. :name="item.name"
  29. style="margin-bottom: 25px;"
  30. >
  31. <div class="body">
  32. <div
  33. v-if="item.name === '类型分布'"
  34. class="text"
  35. >
  36. 站场总数
  37. <p>100</p>
  38. </div>
  39. <Echart
  40. v-if="item.option"
  41. :option="item.option"
  42. />
  43. </div>
  44. </Box>
  45. <Box
  46. :width="665"
  47. :height="396"
  48. :name="'使用情况'"
  49. >
  50. <div class="usage">
  51. <div class="list">
  52. <img
  53. src="../../../../assets/img/1-1.png"
  54. alt=""
  55. >
  56. <div class="value">
  57. 0
  58. </div>
  59. <p>规划</p>
  60. </div>
  61. <div class="list">
  62. <img
  63. src="../../../../assets/img/1-1.png"
  64. alt=""
  65. >
  66. <div class="value">
  67. 0
  68. </div>
  69. <p>在建</p>
  70. </div>
  71. <div class="list">
  72. <img
  73. src="../../../../assets/img/1-1.png"
  74. alt=""
  75. >
  76. <div class="value">
  77. 0
  78. </div>
  79. <p>使用</p>
  80. </div>
  81. </div>
  82. </Box>
  83. </div>
  84. </template>
  85. <template #center>
  86. <div>666</div>
  87. </template>
  88. <template #right>
  89. <div class="right">
  90. <Box
  91. :width="1340"
  92. :height="393"
  93. :name="'运营保障'"
  94. style="margin-bottom: 23px;"
  95. >
  96. <div class="commercial">
  97. <div class="commercial-vehicles">
  98. <div class="title">
  99. 营运车
  100. </div>
  101. <div class="top">
  102. <div class="list">
  103. <div>100 <span>辆/次</span></div>
  104. <p>进场车次</p>
  105. </div>
  106. <div class="list">
  107. <div>100 <span>辆/次</span></div>
  108. <p>出场车次</p>
  109. </div>
  110. <div class="list">
  111. <div>100 <span>辆/次</span></div>
  112. <p>泊车车次</p>
  113. </div>
  114. </div>
  115. <div class="bottom">
  116. <div class="list">
  117. <div>100 <span>辆/次</span></div>
  118. <p>凌晨两点泊车</p>
  119. </div>
  120. <div class="list">
  121. <div style="color: #E73D41;">
  122. 100 <span>辆/次</span>
  123. </div>
  124. <p>长期滞留车辆(大于7天)</p>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="commercial-vehicles">
  129. <div class="title">
  130. 非营运车
  131. </div>
  132. <div class="top">
  133. <div class="list">
  134. <div>100 <span>辆/次</span></div>
  135. <p>进场车次</p>
  136. </div>
  137. <div class="list">
  138. <div>100 <span>辆/次</span></div>
  139. <p>出场车次</p>
  140. </div>
  141. <div class="list">
  142. <div>100 <span>辆/次</span></div>
  143. <p>泊车车次</p>
  144. </div>
  145. </div>
  146. <div class="bottom">
  147. <div class="list">
  148. <div>100 <span>辆/次</span></div>
  149. <p>凌晨两点泊车</p>
  150. </div>
  151. <div class="list">
  152. <div style="color: #E73D41;">
  153. 100 <span>辆/次</span>
  154. </div>
  155. <p>长期滞留车辆(大于7天)</p>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </Box>
  161. <div class="chart-box">
  162. <Box
  163. :width="665"
  164. :height="396"
  165. :name="'充电趋势'"
  166. >
  167. <div class="contet">
  168. <div class="title">
  169. 充电量\kw.h
  170. </div>
  171. <div class="chart">
  172. <Echart :option="powerChart" />
  173. </div>
  174. </div>
  175. </Box>
  176. <Box
  177. :width="665"
  178. :height="396"
  179. :name="'机场装机容量'"
  180. >
  181. <div class="airport">
  182. <div class="text">
  183. 站场总数
  184. <p>100</p>
  185. </div>
  186. <Echart :option="airportChart" />
  187. </div>
  188. </Box>
  189. </div>
  190. <div class="chart-box">
  191. <Box
  192. :width="665"
  193. :height="396"
  194. :name="'充电桩服务情况'"
  195. >
  196. <ul class="hd">
  197. <li
  198. v-for="item in 4"
  199. :key="item"
  200. >
  201. <img
  202. src="../../../../assets/img/1-1.png"
  203. alt=""
  204. >
  205. <div class="txt">
  206. <p>100</p>
  207. <div>进厂车次</div>
  208. </div>
  209. </li>
  210. </ul>
  211. <ul class="percentage">
  212. <li>
  213. <div class="tt">
  214. <p>今日充电车次</p>
  215. <div>73 <span>/100</span> </div>
  216. </div>
  217. <n-progress
  218. type="line"
  219. :percentage="60"
  220. :show-indicator="false"
  221. :indicator-placement="'inside'"
  222. processing
  223. :stroke-width="15"
  224. />
  225. </li>
  226. <li>
  227. <div class="tt">
  228. <p>今日充电电量 kw.h</p>
  229. <div>73 <span>/100</span> </div>
  230. </div>
  231. <n-progress
  232. type="line"
  233. :percentage="60"
  234. :show-indicator="false"
  235. :indicator-placement="'inside'"
  236. processing
  237. :stroke-width="15"
  238. />
  239. </li>
  240. </ul>
  241. </Box>
  242. <Box
  243. :width="665"
  244. :height="396"
  245. :name="'资源使用率'"
  246. >
  247. <ul class="btn">
  248. <li>各场站入场率</li>
  249. <li>各充电场站充电量</li>
  250. <li>各维保场维修保养车辆数</li>
  251. <li>运维驿站使用率</li>
  252. </ul>
  253. </Box>
  254. </div>
  255. </div>
  256. </template>
  257. </Layout>
  258. </template>
  259. <script setup lang='ts'>
  260. import Layout from '@/components/layout.vue'
  261. import Box from '@/components/box.vue'
  262. import { ref } from 'vue'
  263. import Echart from '@/components/chart.vue'
  264. const leftTitle = [ {
  265. name: '类型分布',
  266. option: {
  267. color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
  268. tooltip: {
  269. trigger: 'item'
  270. },
  271. legend: {
  272. orient: 'horizontal',
  273. bottom: '0',
  274. icon: 'circle',
  275. textStyle: {
  276. color: '#fff',
  277. fontSize: 16
  278. }
  279. },
  280. series: [
  281. {
  282. type: 'pie',
  283. radius: [ '55%', '75%' ],
  284. label: {
  285. show: true,
  286. color: '#fff',
  287. formatter: '{b}: {c}个',
  288. fontSize: 14
  289. },
  290. data: [
  291. { value: 1048, name: '首末班' },
  292. { value: 735, name: '枢纽站' },
  293. { value: 580, name: '停车场' },
  294. { value: 580, name: '保养场' }
  295. ]
  296. }
  297. ]
  298. }
  299. }, {
  300. name: '面积分布',
  301. option: {
  302. color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
  303. tooltip: {
  304. trigger: 'item'
  305. },
  306. legend: {
  307. orient: 'horizontal',
  308. bottom: '0',
  309. icon: 'circle',
  310. textStyle: {
  311. color: '#fff',
  312. fontSize: 16
  313. }
  314. },
  315. series: [
  316. {
  317. type: 'pie',
  318. radius: '70%',
  319. label: {
  320. show: true,
  321. color: '#fff',
  322. formatter: '{b}: {c}个',
  323. fontSize: 14
  324. },
  325. data: [
  326. { value: 1048, name: '<=500m' },
  327. { value: 735, name: '500~2000' },
  328. { value: 580, name: '2000~5000' },
  329. { value: 580, name: '5000~10000' }
  330. ]
  331. }
  332. ]
  333. }
  334. }, {
  335. name: '战场权属分布',
  336. option: {
  337. color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
  338. tooltip: {
  339. trigger: 'item'
  340. },
  341. legend: {
  342. orient: 'horizontal',
  343. bottom: '0',
  344. icon: 'circle',
  345. textStyle: {
  346. color: '#fff',
  347. fontSize: 16
  348. }
  349. },
  350. series: [
  351. {
  352. type: 'pie',
  353. radius: '70%',
  354. label: {
  355. show: true,
  356. color: '#fff',
  357. formatter: '{b}: {c}个',
  358. fontSize: 14
  359. },
  360. data: [
  361. { value: 1048, name: '自有' },
  362. { value: 735, name: '临时使用' },
  363. { value: 580, name: '先借后租' },
  364. { value: 580, name: '租用' }
  365. ]
  366. }
  367. ]
  368. }
  369. }, {
  370. name: '建设时间',
  371. option: {
  372. tooltip: {
  373. trigger: 'axis',
  374. axisPointer: {
  375. type: 'shadow'
  376. }
  377. },
  378. grid: {
  379. left: '1%',
  380. right: '4%',
  381. bottom: '3%',
  382. containLabel: true
  383. },
  384. legend: {
  385. show: true,
  386. textStyle: {
  387. color: '#fff'
  388. }
  389. },
  390. xAxis: [
  391. {
  392. type: 'category',
  393. data: [ '超过十年', '5-7年', '近3年', '3-5年' ],
  394. axisLabel: {
  395. color: '#fff',
  396. fontSize: 16
  397. },
  398. axisTick: {
  399. alignWithLabel: true
  400. },
  401. splitLine: {
  402. show: false
  403. }
  404. }
  405. ],
  406. yAxis: [
  407. {
  408. type: 'value',
  409. axisLabel: {
  410. color: '#fff'
  411. },
  412. splitLine: {
  413. show: true,
  414. lineStyle: {
  415. color: 'rgb(34,43,57)'
  416. }
  417. }
  418. }
  419. ],
  420. series: [
  421. {
  422. name: '数量',
  423. type: 'bar',
  424. barWidth: '40%',
  425. itemStyle: {
  426. color: {
  427. type: 'linear',
  428. x: 0,
  429. y: 0,
  430. x2: 0,
  431. y2: 1,
  432. colorStops: [ {
  433. offset: 0, color: '#00fdff' // 0% 处的颜色
  434. }, {
  435. offset: 1, color: '#00aaff08' // 100% 处的颜色
  436. } ],
  437. global: false // 缺省为 false
  438. }
  439. },
  440. data: [ 10, 52, 200, 334, 390, 330, 220 ]
  441. }
  442. ]
  443. }
  444. } ]
  445. // 区域分布
  446. const option = {
  447. tooltip: {
  448. trigger: 'axis',
  449. axisPointer: {
  450. type: 'shadow'
  451. }
  452. },
  453. grid: {
  454. left: '1%',
  455. right: '4%',
  456. bottom: '3%',
  457. containLabel: true
  458. },
  459. legend: {
  460. show: false,
  461. textStyle: {
  462. color: '#fff'
  463. }
  464. },
  465. yAxis: [
  466. {
  467. type: 'category',
  468. data: [ '吊挂式', '独立式', '嵌入式' ],
  469. axisLabel: {
  470. color: '#fff',
  471. fontSize: 16
  472. },
  473. axisTick: {
  474. alignWithLabel: true
  475. },
  476. splitLine: {
  477. show: false
  478. }
  479. }
  480. ],
  481. xAxis: [
  482. {
  483. type: 'value',
  484. axisLabel: {
  485. color: '#fff'
  486. },
  487. splitLine: {
  488. show: true,
  489. lineStyle: {
  490. color: 'rgb(34,43,57)'
  491. }
  492. }
  493. }
  494. ],
  495. series: [
  496. {
  497. name: '数量',
  498. type: 'bar',
  499. barWidth: '40%',
  500. itemStyle: {
  501. color: 'rgb(86,137,239)',
  502. barBorderRadius: [ 0, 20, 20, 0 ]
  503. },
  504. label: {
  505. show: true,
  506. position: 'inside',
  507. color: '#fff'
  508. },
  509. data: [ 10, 52, 200, 334, 390, 330, 220 ]
  510. }
  511. ]
  512. }
  513. const powerChart = {
  514. tooltip: {
  515. trigger: 'axis'
  516. },
  517. xAxis: {
  518. type: 'category',
  519. boundaryGap: false,
  520. axisLabel: {
  521. color: '#fff',
  522. fontSize: 16
  523. },
  524. data: [ 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun' ]
  525. },
  526. yAxis: {
  527. type: 'value',
  528. splitLine: {
  529. show: true,
  530. lineStyle: {
  531. color: 'rgb(34,43,57)'
  532. }
  533. },
  534. axisLabel: {
  535. color: '#fff',
  536. fontSize: 16
  537. }
  538. },
  539. dataZoom: {
  540. show: true,
  541. type: 'slider'
  542. },
  543. series: [
  544. {
  545. data: [ 820, 932, 901, 934, 1290, 1330, 1320 ],
  546. type: 'line',
  547. areaStyle: {
  548. color: {
  549. type: 'linear',
  550. x: 0,
  551. y: 0,
  552. x2: 0,
  553. y2: 1,
  554. colorStops: [ {
  555. offset: 0, color: '#FFD35D ' // 0% 处的颜色
  556. }, {
  557. offset: 0.5, color: '#7ec2f3 ' // 100% 处的颜色
  558. }, {
  559. offset: 1, color: '#1890ff ' // 100% 处的颜色
  560. } ],
  561. global: false // 缺省为 false
  562. }
  563. }
  564. }
  565. ]
  566. }
  567. const airportChart = {
  568. color: [ 'rgb(86,137,239)', 'rgb(85,206,160)', 'rgb(88,107,141)', 'rgb(234,181,23)' ],
  569. tooltip: {
  570. trigger: 'item'
  571. },
  572. legend: {
  573. orient: 'horizontal',
  574. bottom: '0',
  575. icon: 'circle',
  576. textStyle: {
  577. color: '#fff',
  578. fontSize: 16
  579. }
  580. },
  581. series: [
  582. {
  583. type: 'pie',
  584. radius: [ '55%', '75%' ],
  585. label: {
  586. show: true,
  587. color: '#fff',
  588. formatter: '{b}: {c}个',
  589. fontSize: 14
  590. },
  591. data: [
  592. { value: 1048, name: '<=500m' },
  593. { value: 735, name: '500~2000' },
  594. { value: 580, name: '2000~5000' },
  595. { value: 580, name: '5000~10000' }
  596. ]
  597. }
  598. ]
  599. }
  600. </script>
  601. <style lang="scss" scoped>
  602. .left {
  603. color: #fff;
  604. display: flex;
  605. justify-content: space-between;
  606. flex-wrap: wrap;
  607. .usage {
  608. width: 100%;
  609. height: 100%;
  610. display: flex;
  611. padding: 0 120px;
  612. justify-content: space-between;
  613. align-items: center;
  614. .list {
  615. text-align: center;
  616. img {
  617. width: 80px;
  618. height: 80px;
  619. }
  620. .value {
  621. color: #00FFFF;
  622. font-size: 50px;
  623. }
  624. p {
  625. font-size: 24px;
  626. }
  627. }
  628. }
  629. .body {
  630. width: 100%;
  631. height: 100%;
  632. display: flex;
  633. position: relative;
  634. .total {
  635. width: 136px;
  636. text-align: center;
  637. img {
  638. margin-top: 80px;
  639. width: 100px;
  640. height: 100px;
  641. }
  642. p {
  643. font-size: 60px;
  644. }
  645. div {
  646. font-size: 24px;
  647. }
  648. }
  649. .plot {
  650. flex: 1;
  651. }
  652. .text {
  653. position: absolute;
  654. left: 42%;
  655. top: 40%;
  656. font-size: 28px;
  657. text-align: center;
  658. }
  659. }
  660. }
  661. .right {
  662. width: 1340px;
  663. color: #fff;
  664. ul {
  665. margin: 0;
  666. padding: 0;
  667. li {
  668. list-style: none;
  669. }
  670. }
  671. .commercial {
  672. display: flex;
  673. justify-content: space-between;
  674. .commercial-vehicles {
  675. width: 49%;
  676. .title {
  677. color: #F59A23;
  678. font-size: 24px;
  679. line-height: 74px;
  680. text-indent: 10px;
  681. }
  682. .list {
  683. width: 33.33333%;
  684. border: 1px solid rgba(0, 255, 255, 0.298);
  685. height: 137px;
  686. text-align: center;
  687. display: flex;
  688. flex-direction: column;
  689. justify-content: center;
  690. div {
  691. font-size: 50px;
  692. display: flex;
  693. align-items: center;
  694. justify-content: center;
  695. span {
  696. font-size: 20px;
  697. line-height: 50px;
  698. margin-left: 10px;
  699. color: #fff;
  700. }
  701. }
  702. p {
  703. color: #80FFFF;
  704. }
  705. }
  706. .top {
  707. display: flex;
  708. }
  709. .bottom {
  710. display: flex;
  711. .list {
  712. width: 50%;
  713. }
  714. }
  715. }
  716. }
  717. .chart-box {
  718. display: flex;
  719. justify-content: space-between;
  720. .airport {
  721. width: 100%;
  722. height: 100%;
  723. position: relative;
  724. .text {
  725. position: absolute;
  726. left: 42%;
  727. top: 40%;
  728. font-size: 28px;
  729. text-align: center;
  730. }
  731. }
  732. .contet {
  733. width: 100%;
  734. height: 100%;
  735. display: flex;
  736. .title {
  737. font-size: 16px;
  738. writing-mode: vertical-lr;
  739. /* 从上到下排列,默认为从左到右 */
  740. text-orientation: sideways;
  741. transform: rotate(180deg);
  742. text-align: center;
  743. height: 100%;
  744. }
  745. .chart {
  746. flex: 1;
  747. }
  748. }
  749. .hd {
  750. display: flex;
  751. margin-top: 18px;
  752. li {
  753. display: flex;
  754. width: 25%;
  755. height: 137px;
  756. border: 1px solid rgba(0, 255, 255, 0.298);
  757. display: flex;
  758. justify-content: center;
  759. align-items: center;
  760. img {
  761. width: 40px;
  762. height: 40px;
  763. }
  764. .txt {
  765. margin-left: 10px;
  766. p {
  767. font-size: 26px;
  768. line-height: 40px;
  769. }
  770. div {
  771. font-size: 18px;
  772. color: #80FFFF;
  773. }
  774. }
  775. }
  776. }
  777. .percentage {
  778. padding-right: 40px;
  779. li {
  780. margin-top: 30px;
  781. .tt {
  782. display: flex;
  783. justify-content: space-between;
  784. line-height: 40px;
  785. font-size: 20px;
  786. margin-bottom: 10px;
  787. div {
  788. font-size: 34px;
  789. color: #80FFFF;
  790. span {
  791. font-size: 24px;
  792. color: #fff;
  793. }
  794. }
  795. }
  796. }
  797. }
  798. }
  799. }
  800. </style>