CehicleOperation.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368
  1. <template>
  2. <Layout>
  3. <template #left>
  4. <div class="left">
  5. <Box
  6. :width="560"
  7. :height="1224"
  8. :name="'线路基本情况'"
  9. class="left-left"
  10. >
  11. <div class="linebase">
  12. <div class="car">
  13. <div class="top">
  14. <Icon
  15. name="1-1"
  16. :size="80"
  17. style="margin-right: 20px;"
  18. />
  19. <div class="name bold">
  20. 1
  21. </div>
  22. <div class="road">
  23. </div>
  24. </div>
  25. <div class="current">
  26. 当前线路
  27. </div>
  28. </div>
  29. <div class="info">
  30. <div
  31. v-for="item in lineInfo"
  32. :key="item.label"
  33. >
  34. <div class="label">
  35. {{ item.label }}
  36. </div>
  37. <div class="val">
  38. {{ item.value }}
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="header">
  44. <div>
  45. <Icon
  46. name="1-2"
  47. :size="30"
  48. />
  49. 起讫点
  50. </div>
  51. <div>
  52. <Icon
  53. name="1-3"
  54. :size="30"
  55. />
  56. 运营时间
  57. </div>
  58. </div>
  59. <div class="detail">
  60. <div>
  61. <div class="row">
  62. <div class="type orange">
  63. 上行
  64. </div>
  65. <div class="name">
  66. 始发点名称 → 终点站名称
  67. </div>
  68. <div class="value">
  69. 06:00~22:00
  70. </div>
  71. </div>
  72. <div class="row">
  73. <div class="type">
  74. 下行
  75. </div>
  76. <div class="name">
  77. 始发点名称 → 终点站名称
  78. </div>
  79. <div class="value">
  80. 06:00~22:00
  81. </div>
  82. </div>
  83. </div>
  84. <div>
  85. <div class="row">
  86. <div class="type orange">
  87. </div>
  88. <div class="name">
  89. 线路上行里程
  90. </div>
  91. <div class="value">
  92. 20km
  93. </div>
  94. </div>
  95. <div class="row">
  96. <div class="type">
  97. </div>
  98. <div class="name">
  99. 线路下行里程
  100. </div>
  101. <div class="value">
  102. 20km
  103. </div>
  104. </div>
  105. <div class="row">
  106. <Icon
  107. name="1-4"
  108. :size="38"
  109. />
  110. <div class="name">
  111. 票价
  112. </div>
  113. <div class="value">
  114. 2元
  115. </div>
  116. </div>
  117. </div>
  118. <div>
  119. <div class="title">
  120. <div class="flex">
  121. <Icon
  122. name="1-5"
  123. :size="30"
  124. />
  125. <div class="name">
  126. 驾驶员数量
  127. </div>
  128. </div>
  129. <div class="value">
  130. <div
  131. class="bold"
  132. style="font-size: 40px"
  133. >
  134. 10
  135. </div>
  136. <div class="">
  137. </div>
  138. </div>
  139. </div>
  140. <div class="starlist">
  141. <div
  142. v-for="item in starlist"
  143. :key="item.label"
  144. class="star"
  145. >
  146. <div>{{ item.label }}</div>
  147. <div class="flex">
  148. <span class="num bold">{{ item.value }}</span>人
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. <div style="border: 0;">
  154. <div class="title">
  155. <div class="flex">
  156. <Icon
  157. name="1-1"
  158. :size="30"
  159. />
  160. <div class="name">
  161. 车辆数占比
  162. </div>
  163. </div>
  164. <div class="value">
  165. <div
  166. class="bold"
  167. style="font-size: 40px"
  168. >
  169. 10
  170. </div>
  171. </div>
  172. </div>
  173. <Echart
  174. style="width: 560px;height:318px"
  175. :option="leftContent.leftOp"
  176. />
  177. </div>
  178. </div>
  179. </Box>
  180. <Box
  181. :width="560"
  182. :height="1224"
  183. :name="'线路发班情况'"
  184. class="left-right"
  185. >
  186. <div class="filter">
  187. <div class="name bold">
  188. 筛选
  189. </div>
  190. <div class="odds">
  191. <div
  192. v-for="item in odds"
  193. :key="item.label"
  194. class="odd"
  195. >
  196. {{ item.label }} {{ item.value }}
  197. </div>
  198. </div>
  199. </div>
  200. <div class="frequency">
  201. <div class="title bold">
  202. 上行
  203. </div>
  204. <div class="content">
  205. <div
  206. v-for="item in status"
  207. :key="item"
  208. class="bus"
  209. >
  210. <img
  211. src="../../../../assets/img/1-1.png"
  212. alt="bus"
  213. >
  214. <div
  215. :class="item"
  216. class="status"
  217. >
  218. 执行中
  219. </div>
  220. <div class="info">
  221. <div>
  222. <div class="bold">
  223. 1路
  224. </div>
  225. <div class="busNum">
  226. 川T 12345
  227. </div>
  228. </div>
  229. <div>司机:小A </div>
  230. <div>电量: </div>
  231. </div>
  232. <div class="table">
  233. <div>
  234. <div class="label">
  235. 调度时间
  236. </div>
  237. <div class="value">
  238. 06:30:00
  239. </div>
  240. </div>
  241. <div>
  242. <div class="label">
  243. 实际发车时间
  244. </div>
  245. <div class="value">
  246. 06:30:00
  247. </div>
  248. </div>
  249. <div>
  250. <div class="label">
  251. 发车间隔
  252. </div>
  253. <div class="value">
  254. 1 分钟
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. <div class="page">
  261. <n-pagination :item-count="30">
  262. <template #prefix="{ itemCount }">
  263. 总共 {{ itemCount }} 个项目
  264. </template>
  265. </n-pagination>
  266. </div>
  267. </div>
  268. <div class="frequency">
  269. <div class="title bold">
  270. 下行
  271. </div>
  272. <div class="content">
  273. <div
  274. v-for="item in 3"
  275. :key="item"
  276. class="bus"
  277. >
  278. <img
  279. src="../../../../assets/img/1-1.png"
  280. alt="bus"
  281. >
  282. <div
  283. :class="item"
  284. class="status"
  285. >
  286. 执行中
  287. </div>
  288. <div class="info">
  289. <div>
  290. <div class="bold">
  291. 1路
  292. </div>
  293. <div class="busNum">
  294. 川T 12345
  295. </div>
  296. </div>
  297. <div>司机:小A </div>
  298. <div>电量: </div>
  299. </div>
  300. <div class="table">
  301. <div>
  302. <div class="label">
  303. 调度时间
  304. </div>
  305. <div class="value">
  306. 06:30:00
  307. </div>
  308. </div>
  309. <div>
  310. <div class="label">
  311. 实际发车时间
  312. </div>
  313. <div class="value">
  314. 06:30:00
  315. </div>
  316. </div>
  317. <div>
  318. <div class="label">
  319. 发车间隔
  320. </div>
  321. <div class="value">
  322. 1 分钟
  323. </div>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. <div class="page">
  329. <n-pagination :item-count="30">
  330. <template #prefix="{ itemCount }">
  331. 总共 {{ itemCount }} 个项目
  332. </template>
  333. </n-pagination>
  334. </div>
  335. </div>
  336. </Box>
  337. </div>
  338. </template>
  339. <template #center>
  340. <div>2222</div>
  341. </template>
  342. <template #right>
  343. <div class="right">
  344. <div class="right-top">
  345. <Box
  346. v-for="(item, index) in rightContent?.top"
  347. :key="index"
  348. :width="438"
  349. :height="570"
  350. :name="item.name"
  351. >
  352. <Echart :option="item.option" />
  353. </Box>
  354. </div>
  355. <div class="right-bottom">
  356. <Box
  357. :width="663"
  358. :height="570"
  359. :name="'车辆监控'"
  360. >
  361. <div class="carmonitor">
  362. <div class="control">
  363. <div
  364. v-for="item in controlList"
  365. :key="item.label"
  366. class="item"
  367. >
  368. <div class="label">
  369. {{ item.label }}
  370. </div>
  371. <n-select
  372. :value="1"
  373. :options="item.options"
  374. />
  375. </div>
  376. </div>
  377. <n-table
  378. striped
  379. size="large"
  380. :bordered="false"
  381. single-column
  382. :bottom-bordered="false"
  383. class="table"
  384. >
  385. <thead>
  386. <tr>
  387. <th> 状态 </th>
  388. <th> 车牌号 </th>
  389. <th> 驾驶员 </th>
  390. <th> 拥挤度 </th>
  391. <th> 情景 </th>
  392. </tr>
  393. </thead>
  394. <tbody>
  395. <tr
  396. v-for="item in 10"
  397. :key="item"
  398. :class="{ no: item === 1 }"
  399. >
  400. <td>
  401. <div class="index" /> 运营中
  402. </td>
  403. <td> 川T 12345 </td>
  404. <td> 小A </td>
  405. <td> 舒适 </td>
  406. <td>{{ item === 1 ? '维保' : '行驶中' }} </td>
  407. </tr>
  408. </tbody>
  409. </n-table>
  410. </div>
  411. </Box>
  412. <Box
  413. :width="663"
  414. :height="570"
  415. :name="'车辆状态'"
  416. >
  417. <div class="carstatus">
  418. <div class="up">
  419. <div class="title">
  420. 上行
  421. </div>
  422. <div class="content">
  423. <div
  424. v-for="item in carstatusList"
  425. :key="item.label"
  426. >
  427. <div class="label">
  428. {{ item.label }}
  429. </div>
  430. <div class="value">
  431. {{ item.value }}
  432. </div>
  433. </div>
  434. </div>
  435. </div>
  436. <div class="down">
  437. <div class="title">
  438. 下行
  439. </div>
  440. <div class="content">
  441. <div
  442. v-for="item in carstatusList"
  443. :key="item.label"
  444. >
  445. <div class="label">
  446. {{ item.label }}
  447. </div>
  448. <div class="value">
  449. {{ item.value }}
  450. </div>
  451. </div>
  452. </div>
  453. </div>
  454. <div class="line" />
  455. </div>
  456. </Box>
  457. </div>
  458. </div>
  459. </template>
  460. </Layout>
  461. </template>
  462. <script setup lang='ts'>
  463. import Layout from '@/components/layout.vue'
  464. import Box from '@/components/box.vue'
  465. import Echart from '@/components/chart.vue'
  466. import { ref } from 'vue'
  467. import { graphic } from 'echarts'
  468. /* 线路类型:干线公交 车辆总数: 运 营 中:9 辆 非 运 营:1 辆 */
  469. const lineInfo = ref([
  470. { label: '线路类型:', value: '干线公交' },
  471. { label: '车辆总数:', value: '10 辆' },
  472. { label: '运 营 中:', value: '9 辆' },
  473. { label: '非 运 营:', value: '1 辆' }
  474. ])
  475. const starlist = ref([
  476. { label: '五星', value: '1' },
  477. { label: '四星', value: '2' },
  478. { label: '三星', value: '3' },
  479. { label: '二星', value: '4' },
  480. { label: '一星', value: '5' }
  481. ])
  482. const odds = ref([
  483. { label: '全部', value: '10' },
  484. { label: '已完成', value: '4' },
  485. { label: '执行中', value: '1' },
  486. { label: '已处理', value: '1' },
  487. { label: '已下发', value: '1' },
  488. { label: '待发', value: '1' },
  489. { label: '调停', value: '1' },
  490. { label: '非运营', value: '1' }
  491. ])
  492. const status = [ 'success', 'warning', 'error' ]
  493. const controlList = [
  494. {
  495. label: '状态:',
  496. options: [
  497. { label: '全部', value: 1 },
  498. { label: '运营中', value: 2 },
  499. { label: '非运营', value: 3 }
  500. ]
  501. },
  502. {
  503. label: '电量:',
  504. options: [
  505. { label: '0%-30%', value: 1 },
  506. { label: '31%-60%', value: 2 },
  507. { label: '61%-100%', value: 3 }
  508. ]
  509. },
  510. {
  511. label: '情景:',
  512. options: [
  513. { label: '全部', value: 1 },
  514. { label: '维保', value: 2 },
  515. { label: '充电', value: 3 },
  516. { label: '停驶', value: 4 },
  517. { label: '行驶中', value: 5 }
  518. ]
  519. }
  520. ]
  521. const carstatusList = [
  522. { label: '平均速度', value: '15.16' },
  523. { label: '最大车速', value: '17.82' },
  524. { label: '最小车速', value: '10.93' },
  525. { label: '平均间距', value: '14.03' },
  526. { label: '最大间距', value: '15' },
  527. { label: '最小间距', value: '12' },
  528. { label: '高峰平均时间', value: '69分钟' },
  529. { label: '平峰平均时间', value: '72分钟' },
  530. { label: '单程平均时间', value: '71分钟' }
  531. ]
  532. const leftContent = ref({
  533. leftOp: {
  534. grid: {
  535. containLabel: true
  536. },
  537. // 图表图例
  538. legend: {
  539. show: true,
  540. type: 'scroll',
  541. orient: 'horizontal', // 图例排列方向
  542. icon: 'circle', // 图例样式为圆形
  543. itemWidth: 10, // 图例图形的宽度
  544. itemHeight: 16, // 图例图形的高度
  545. itemGap: 10, // 图例项之间的间隔
  546. left: 'center', // 图例距离容器右侧的距离
  547. bottom: 0, // 图例垂直居中
  548. textStyle: {
  549. color: 'white', // 图例文字颜色
  550. fontSize: 16
  551. }
  552. },
  553. // color: [ '#6386e0', '#fb9a55', '#6bd98d', '#8dfd15', '#6bd98d', '#fff' ],
  554. series: [
  555. {
  556. type: 'pie', // 图表类型为饼图
  557. radius: '60%', // 控制内外圆环的半径,30%代表内圆,60%代表外圆
  558. avoidLabelOverlap: true, // 是否启用防止标签重叠策略
  559. showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
  560. label: {
  561. show: true,
  562. fontSize: 16,
  563. formatter: '{b}: {c}条',
  564. color: 'white'
  565. },
  566. data: [
  567. { key: 2, name: '2023', value: 130 },
  568. { key: 2, name: '2022', value: 50 },
  569. { key: 2, name: '2021', value: 50 },
  570. { key: 2, name: '2020', value: 50 },
  571. { key: 2, name: '2019', value: 50 }
  572. ]
  573. }
  574. ]
  575. }
  576. })
  577. const rightContent = ref({
  578. top: [
  579. {
  580. name: '乘客类型',
  581. option: {
  582. title: {
  583. text: '总', // 图标内容文本
  584. subtext: '196000',
  585. left: 'center', // 图标内容水平居中
  586. top: 'center', // 图标内容垂直居中
  587. // 文本样式
  588. textStyle: {
  589. color: '#fff', // 图标内容文字颜色
  590. fontSize: '16px', // 图标内容文字大小
  591. fontWeight: 'normal'
  592. },
  593. subtextStyle: {
  594. color: '#fff', // 图标内容文字颜色
  595. fontSize: '20px', // 图标内容文字大小
  596. fontWeight: 'normal'
  597. }
  598. },
  599. grid: {
  600. containLabel: true
  601. },
  602. // 图表图例
  603. legend: {
  604. show: true,
  605. type: 'scroll',
  606. orient: 'horizontal', // 图例排列方向
  607. icon: 'circle', // 图例样式为圆形
  608. itemWidth: 10, // 图例图形的宽度
  609. itemHeight: 16, // 图例图形的高度
  610. itemGap: 40, // 图例项之间的间隔
  611. left: 'center', // 图例距离容器右侧的距离
  612. bottom: 0, // 图例垂直居中
  613. textStyle: {
  614. color: 'white', // 图例文字颜色
  615. fontSize: 20
  616. }
  617. },
  618. // color: [ '#6386e0', '#fb9a55', '#6bd98d', '#8dfd15', '#6bd98d', '#fff' ],
  619. series: [
  620. {
  621. type: 'pie', // 图表类型为饼图
  622. radius: [ '55%', '75%' ], // 控制内外圆环的半径,30%代表内圆,60%代表外圆
  623. avoidLabelOverlap: true, // 是否启用防止标签重叠策略
  624. showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
  625. label: {
  626. show: true,
  627. formatter: '{d}%',
  628. color: 'white'
  629. },
  630. data: [
  631. { key: 2, name: '老年卡', value: 180 },
  632. { key: 2, name: '电子钱包', value: 50 },
  633. { key: 2, name: '现金', value: 30 },
  634. { key: 2, name: '学生卡', value: 20 },
  635. { key: 2, name: '成人次卡', value: 10 },
  636. { key: 2, name: '其他', value: 10 },
  637. { key: 2, name: '免费人次', value: 10 }
  638. ]
  639. }
  640. ]
  641. }
  642. },
  643. {
  644. name: '客流情况',
  645. option: {
  646. grid: {
  647. containLabel: true,
  648. right: 30,
  649. left: 50
  650. },
  651. legend: {
  652. show: true,
  653. left: 'center',
  654. top: '10',
  655. icon: 'stack',
  656. itemWidth: 15,
  657. itemHeight: 10,
  658. textStyle: {
  659. color: '#646464',
  660. fontSize: 18
  661. }
  662. },
  663. xAxis: [ {
  664. type: 'category',
  665. axisLine: {
  666. show: false
  667. },
  668. axisLabel: {
  669. color: '#fff',
  670. fontSize: 18
  671. // formatter: (value: number) => format( 1'时')
  672. },
  673. splitLine: {
  674. show: false
  675. },
  676. axisTick: {
  677. show: false
  678. },
  679. data: [ '1时', '2时', '3时', '4时', '5时', '6时', '7时', '8时', '9时', '10时', '11时', '12时' ]
  680. } ],
  681. yAxis: [ {
  682. name: '客流量/人次',
  683. nameLocation: 'center',
  684. nameGap: 50,
  685. nameTextStyle: {
  686. color: '#fff',
  687. fontSize: 18
  688. },
  689. padding: 5,
  690. // max: 1000,
  691. splitLine: {
  692. show: true,
  693. lineStyle: {
  694. color: '#A1A7B3'
  695. // type: 'dashed'
  696. }
  697. },
  698. axisLine: {
  699. show: false
  700. },
  701. axisLabel: {
  702. show: true,
  703. margin: 10,
  704. textStyle: {
  705. color: '#fff'
  706. }
  707. },
  708. axisTick: {
  709. show: false
  710. }
  711. }
  712. ],
  713. series: [ {
  714. name: '客流量',
  715. type: 'line',
  716. smooth: true,
  717. symbolSize: 0,
  718. itemStyle: {
  719. normal: {
  720. // color: '#FFD35D',
  721. lineStyle: {
  722. color: new graphic.LinearGradient(0, 0, 0, 1, [
  723. {
  724. offset: 0,
  725. color: '#FFD35D66'
  726. },
  727. {
  728. offset: 0.5,
  729. color: '#7ec2f366'
  730. },
  731. {
  732. offset: 1,
  733. color: '#1890ff'
  734. }
  735. ], false),
  736. width: 1
  737. }
  738. }
  739. },
  740. areaStyle: {
  741. normal: {
  742. color: new graphic.LinearGradient(0, 0, 0, 1, [
  743. {
  744. offset: 0,
  745. color: '#FFD35D66'
  746. },
  747. {
  748. offset: 0.5,
  749. color: '#7ec2f366'
  750. },
  751. {
  752. offset: 1,
  753. color: '#1890ff'
  754. }
  755. ], false)
  756. }
  757. },
  758. data: [ 120, 132, 101, 134, 90, 230, 210, 182, 191, 234, 290, 330 ]
  759. } ],
  760. dataZoom: {}
  761. }
  762. },
  763. {
  764. name: '里程情况',
  765. option: {
  766. grid: {
  767. containLabel: true,
  768. right: 30,
  769. left: 50
  770. },
  771. legend: {
  772. show: true,
  773. left: 'center',
  774. top: '10',
  775. icon: 'stack',
  776. itemWidth: 15,
  777. itemHeight: 10,
  778. textStyle: {
  779. color: '#646464',
  780. fontSize: 18
  781. }
  782. },
  783. xAxis: [ {
  784. type: 'category',
  785. axisLine: {
  786. show: false
  787. },
  788. axisLabel: {
  789. color: '#fff',
  790. fontSize: 18
  791. // formatter: (value: number) => format( 1'时')
  792. },
  793. splitLine: {
  794. show: false
  795. },
  796. axisTick: {
  797. show: false
  798. },
  799. data: [ '1时', '2时', '3时', '4时', '5时', '6时', '7时', '8时', '9时', '10时', '11时', '12时' ]
  800. } ],
  801. yAxis: [ {
  802. name: '里程/km',
  803. nameLocation: 'center',
  804. nameGap: 50,
  805. nameTextStyle: {
  806. color: '#fff',
  807. fontSize: 18
  808. },
  809. padding: 5,
  810. // max: 1000,
  811. splitLine: {
  812. show: true,
  813. lineStyle: {
  814. color: '#A1A7B3'
  815. // type: 'dashed'
  816. }
  817. },
  818. axisLine: {
  819. show: false
  820. },
  821. axisLabel: {
  822. show: true,
  823. margin: 10,
  824. textStyle: {
  825. color: '#fff'
  826. }
  827. },
  828. axisTick: {
  829. show: false
  830. }
  831. }
  832. ],
  833. series: [ {
  834. name: '里程',
  835. type: 'line',
  836. smooth: true,
  837. symbolSize: 0,
  838. itemStyle: {
  839. normal: {
  840. // color: '#4293FD',
  841. lineStyle: {
  842. // color: '#FFD35D',
  843. width: 1,
  844. color: new graphic.LinearGradient(0, 0, 0, 1, [
  845. {
  846. offset: 0,
  847. color: '#6A5BF066'
  848. },
  849. {
  850. offset: 0.5,
  851. color: '#7ec2f366'
  852. },
  853. {
  854. offset: 1,
  855. color: '#1890ff'
  856. }
  857. ], false)
  858. }
  859. }
  860. },
  861. areaStyle: {
  862. normal: {
  863. color: new graphic.LinearGradient(0, 0, 0, 1, [
  864. {
  865. offset: 0,
  866. color: '#6A5BF066'
  867. },
  868. {
  869. offset: 0.5,
  870. color: '#7ec2f366'
  871. },
  872. {
  873. offset: 1,
  874. color: '#1890ff'
  875. }
  876. ], false)
  877. }
  878. },
  879. data: [ 120, 132, 101, 134, 90, 230, 210, 182, 191, 234, 290, 330 ]
  880. } ],
  881. dataZoom: {}
  882. }
  883. }
  884. ],
  885. bottom: {
  886. }
  887. })
  888. </script>
  889. <style lang="scss" scoped>
  890. .left {
  891. display: flex;
  892. justify-content: space-between;
  893. gap: 10px;
  894. color: #fff;
  895. font-size: 18px;
  896. &-left {
  897. .linebase {
  898. height: 216px;
  899. padding: 20px 60px 35px 60px;
  900. display: flex;
  901. align-items: center;
  902. gap: 70px;
  903. .car {
  904. .top {
  905. display: flex;
  906. position: relative;
  907. font-size: 18px;
  908. .name {
  909. width: 63px;
  910. height: 74px;
  911. line-height: 74px;
  912. text-align: center;
  913. border: 2px solid #2185E8;
  914. font-size: 50px;
  915. border-radius: 10px;
  916. background: rgba(33, 133, 232, 0.298);
  917. }
  918. .road {
  919. position: absolute;
  920. bottom: 0;
  921. right: -25px;
  922. }
  923. }
  924. .current {
  925. text-align: center;
  926. text-shadow: 1px 1px 10px rgba(0, 255, 255, 0.698);
  927. margin-top: 10px;
  928. }
  929. }
  930. .info {
  931. width: 100%;
  932. >div {
  933. display: flex;
  934. gap: 10px;
  935. margin: 15.2px 0;
  936. .label {
  937. color: #80FFFF
  938. }
  939. }
  940. }
  941. }
  942. .header {
  943. height: 50px;
  944. background: rgba(33, 133, 232, 0.298);
  945. display: flex;
  946. >div {
  947. width: 50%;
  948. display: flex;
  949. align-items: center;
  950. justify-content: center;
  951. gap: 10px;
  952. }
  953. }
  954. .detail {
  955. padding: 0 20px 0 30px;
  956. >div {
  957. border-bottom: 1px solid rgba(128, 255, 255, 0.298);
  958. padding-bottom: 30px;
  959. padding-top: 16px;
  960. .value {
  961. color: #80FFFF;
  962. width: 200px;
  963. text-align: center;
  964. }
  965. .row {
  966. height: 50px;
  967. display: flex;
  968. align-items: center;
  969. .type {
  970. border: 1px solid #80FFFF;
  971. background: rgba(128, 255, 255, 0.098);
  972. border-radius: 5px;
  973. color: #80FFFF;
  974. padding: 5px 9px;
  975. &.orange {
  976. border: 1px solid #FAAD0E;
  977. background: rgba(250, 173, 14, 0.098);
  978. color: #FAAD0E;
  979. }
  980. }
  981. .name {
  982. flex: 1;
  983. margin-left: 10px;
  984. }
  985. }
  986. .title {
  987. display: flex;
  988. justify-content: space-between;
  989. align-items: center;
  990. .name {
  991. font-size: 24px;
  992. margin-left: 10px;
  993. }
  994. .value {
  995. display: flex;
  996. justify-content: center;
  997. align-items: flex-end;
  998. gap: 10px;
  999. }
  1000. }
  1001. .starlist {
  1002. display: flex;
  1003. justify-content: space-around;
  1004. margin-top: 17px;
  1005. .star {
  1006. color: #80FFFF;
  1007. .num {
  1008. font-size: 24px;
  1009. }
  1010. }
  1011. }
  1012. }
  1013. }
  1014. }
  1015. &-right {
  1016. flex: 1;
  1017. font-size: 18px;
  1018. .filter {
  1019. display: flex;
  1020. align-items: center;
  1021. padding: 20px 40px;
  1022. .name {
  1023. width: 120px;
  1024. }
  1025. .odds {
  1026. display: flex;
  1027. gap: 10px;
  1028. flex-wrap: wrap;
  1029. .odd {
  1030. border-radius: 5px;
  1031. border: 1px solid #2185E8;
  1032. background: rgba(0, 191, 191, 0);
  1033. padding: 2px 8px;
  1034. min-width: 90px;
  1035. text-align: center;
  1036. &.checkd {
  1037. background: #2185E8;
  1038. }
  1039. }
  1040. }
  1041. }
  1042. .frequency {
  1043. margin-top: 15px;
  1044. .title {
  1045. background: rgba(24, 145, 255, 0.498);
  1046. height: 40px;
  1047. line-height: 40px;
  1048. font-size: 20px;
  1049. text-align: center;
  1050. text-shadow: 1px 1px 10px rgba(0, 255, 255, 0.698);
  1051. }
  1052. .content {
  1053. display: flex;
  1054. justify-content: space-between;
  1055. gap: 10px;
  1056. padding: 10px 13px;
  1057. .bus {
  1058. width: 236px;
  1059. height: 401px;
  1060. flex: 1;
  1061. border: 1px solid #1891FF;
  1062. background: rgba(27, 175, 255, 0.098);
  1063. overflow: hidden;
  1064. position: relative;
  1065. .status {
  1066. position: absolute;
  1067. height: 31px;
  1068. line-height: 31px;
  1069. text-align: right;
  1070. width: 100%;
  1071. top: 119px;
  1072. padding-right: 10px;
  1073. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 1%, #333333 100%);
  1074. &.success {
  1075. background: linear-gradient(90deg, rgba(0, 238, 200, 0) 4%, #00EEC8 100%);
  1076. }
  1077. &.warning {
  1078. background: linear-gradient(90deg, rgba(250, 173, 14, 0) 1%, #FAAD0E 100%);
  1079. }
  1080. &.error {
  1081. background: linear-gradient(90deg, rgba(231, 61, 65, 0) 1%, #E73D41 100%);
  1082. }
  1083. }
  1084. img {
  1085. height: 150px;
  1086. width: 100%;
  1087. }
  1088. .info {
  1089. padding: 10px;
  1090. >div {
  1091. display: flex;
  1092. height: 35px;
  1093. align-items: center;
  1094. .bold {
  1095. font-size: 24px;
  1096. }
  1097. .busNum {
  1098. border: 2px solid #FFFFFF;
  1099. border-radius: 3px;
  1100. background: #1891FF;
  1101. padding: 2px 5px;
  1102. margin-left: 10px;
  1103. }
  1104. }
  1105. }
  1106. .table {
  1107. >div {
  1108. display: flex;
  1109. height: 40px;
  1110. align-items: center;
  1111. .label {
  1112. width: 135px;
  1113. height: 40px;
  1114. line-height: 40px;
  1115. background: rgba(33, 133, 232, 0.298);
  1116. color: #80FFFF;
  1117. text-align: right;
  1118. padding-right: 10px;
  1119. }
  1120. .value {
  1121. text-align: center;
  1122. flex: 1;
  1123. }
  1124. }
  1125. }
  1126. }
  1127. }
  1128. .page {
  1129. display: flex;
  1130. justify-content: flex-end;
  1131. margin-top: 25px;
  1132. }
  1133. }
  1134. }
  1135. .flex {
  1136. display: flex;
  1137. gap: 10px;
  1138. align-items: center;
  1139. }
  1140. .bold {
  1141. color: #fff;
  1142. font-weight: bold;
  1143. font-family: Impact Normal;
  1144. }
  1145. }
  1146. .right {
  1147. &-top {
  1148. color: #fff;
  1149. display: flex;
  1150. gap: 10px;
  1151. justify-content: space-between;
  1152. }
  1153. &-bottom {
  1154. color: #fff;
  1155. gap: 10px;
  1156. display: flex;
  1157. justify-content: space-between;
  1158. .carmonitor {
  1159. padding: 10px;
  1160. .control {
  1161. display: flex;
  1162. font-size: 20px;
  1163. gap: 20px;
  1164. .item {
  1165. display: flex;
  1166. flex: 1;
  1167. align-items: center;
  1168. gap: 20px;
  1169. .label {
  1170. min-width: 60px;
  1171. }
  1172. }
  1173. }
  1174. .table {
  1175. margin-top: 20px;
  1176. text-align: center;
  1177. th {
  1178. border: 0;
  1179. background: rgba(33, 133, 232, 0.6);
  1180. text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6471);
  1181. font-weight: bold;
  1182. }
  1183. tr {
  1184. td {
  1185. color: #fff;
  1186. }
  1187. .index {
  1188. width: 14px;
  1189. height: 14px;
  1190. line-height: 14px;
  1191. background: #8DFF53;
  1192. border-radius: 50%;
  1193. display: inline-block;
  1194. color: #333333;
  1195. }
  1196. &.no {
  1197. td {
  1198. background: linear-gradient(180deg, #00A8F0 0%, #02B3B3 100%);
  1199. }
  1200. .index {
  1201. background: #D7D7D7;
  1202. }
  1203. }
  1204. }
  1205. }
  1206. }
  1207. .carstatus {
  1208. display: flex;
  1209. align-items: center;
  1210. justify-content: center;
  1211. position: relative;
  1212. .line{
  1213. position: absolute;
  1214. width: 1px;
  1215. height: 397px;
  1216. background-color: rgba(128, 255, 255, 0.298);
  1217. left: 50%;
  1218. top: 120px;
  1219. }
  1220. >div {
  1221. flex: 1;
  1222. display: flex;
  1223. flex-wrap: wrap;
  1224. justify-content: center;
  1225. >div{
  1226. width: 100%;
  1227. }
  1228. .title {
  1229. width: 136px;
  1230. height: 59px;
  1231. line-height: 59px;
  1232. border-radius: 5px;
  1233. text-align: center;
  1234. font-size: 24px;
  1235. text-shadow: 1px 1px 5px rgba(0, 255, 255, 0.6471);
  1236. margin: 30px 0 ;
  1237. }
  1238. }
  1239. .up .title {
  1240. background: rgba(27, 175, 255, 0.298);
  1241. border: 1px solid #81D3F8;
  1242. box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.349), inset 0px 0px 30px 1px rgba(24, 145, 255, 0.9961);
  1243. }
  1244. .down .title {
  1245. background: rgba(231, 61, 65, 0.298);
  1246. border: 1px solid #F9A15A;
  1247. box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.349), inset 0px 0px 30px 1px rgba(231, 61, 65, 0.9882);
  1248. }
  1249. .content{
  1250. display: flex;
  1251. flex-wrap: wrap;
  1252. justify-content: center;
  1253. gap: 20px;
  1254. >div{
  1255. width: 100%;
  1256. display: flex;
  1257. justify-content: center;
  1258. align-items: center;
  1259. gap: 20px;
  1260. >div{
  1261. flex: 1;
  1262. }
  1263. .label{
  1264. font-size: 18px;
  1265. color: #81D3F8;
  1266. text-align: right;
  1267. text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6471);
  1268. }
  1269. .value{
  1270. font-size: 24px;
  1271. text-shadow: 1px 1px 5px rgba(0, 255, 255, 0.6471);
  1272. }
  1273. }
  1274. }
  1275. }
  1276. }
  1277. }
  1278. </style>