CehicleOperation.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374
  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. :bordered="false"
  373. size="large"
  374. :value="1"
  375. :options="item.options"
  376. />
  377. </div>
  378. </div>
  379. <n-table
  380. striped
  381. size="large"
  382. :bordered="false"
  383. single-column
  384. :bottom-bordered="false"
  385. class="table"
  386. >
  387. <thead>
  388. <tr>
  389. <th> 状态 </th>
  390. <th> 车牌号 </th>
  391. <th> 驾驶员 </th>
  392. <th> 拥挤度 </th>
  393. <th> 情景 </th>
  394. </tr>
  395. </thead>
  396. <tbody>
  397. <tr
  398. v-for="item in 10"
  399. :key="item"
  400. :class="{ no: item === 1 }"
  401. >
  402. <td>
  403. <div class="index" /> 运营中
  404. </td>
  405. <td> 川T 12345 </td>
  406. <td> 小A </td>
  407. <td> 舒适 </td>
  408. <td>{{ item === 1 ? '维保' : '行驶中' }} </td>
  409. </tr>
  410. </tbody>
  411. </n-table>
  412. </div>
  413. </Box>
  414. <Box
  415. :width="663"
  416. :height="570"
  417. :name="'车辆状态'"
  418. >
  419. <div class="carstatus">
  420. <div class="up">
  421. <div class="title">
  422. 上行
  423. </div>
  424. <div class="content">
  425. <div
  426. v-for="item in carstatusList"
  427. :key="item.label"
  428. >
  429. <div class="label">
  430. {{ item.label }}
  431. </div>
  432. <div class="value">
  433. {{ item.value }}
  434. </div>
  435. </div>
  436. </div>
  437. </div>
  438. <div class="down">
  439. <div class="title">
  440. 下行
  441. </div>
  442. <div class="content">
  443. <div
  444. v-for="item in carstatusList"
  445. :key="item.label"
  446. >
  447. <div class="label">
  448. {{ item.label }}
  449. </div>
  450. <div class="value">
  451. {{ item.value }}
  452. </div>
  453. </div>
  454. </div>
  455. </div>
  456. <div class="line" />
  457. </div>
  458. </Box>
  459. </div>
  460. </div>
  461. </template>
  462. </Layout>
  463. </template>
  464. <script setup lang='ts'>
  465. import Layout from '@/components/layout.vue'
  466. import Box from '@/components/box.vue'
  467. import Echart from '@/components/chart.vue'
  468. import { ref } from 'vue'
  469. import { graphic } from 'echarts'
  470. /* 线路类型:干线公交 车辆总数: 运 营 中:9 辆 非 运 营:1 辆 */
  471. const lineInfo = ref([
  472. { label: '线路类型:', value: '干线公交' },
  473. { label: '车辆总数:', value: '10 辆' },
  474. { label: '运 营 中:', value: '9 辆' },
  475. { label: '非 运 营:', value: '1 辆' }
  476. ])
  477. const starlist = ref([
  478. { label: '五星', value: '1' },
  479. { label: '四星', value: '2' },
  480. { label: '三星', value: '3' },
  481. { label: '二星', value: '4' },
  482. { label: '一星', value: '5' }
  483. ])
  484. const odds = ref([
  485. { label: '全部', value: '10' },
  486. { label: '已完成', value: '4' },
  487. { label: '执行中', value: '1' },
  488. { label: '已处理', value: '1' },
  489. { label: '已下发', value: '1' },
  490. { label: '待发', value: '1' },
  491. { label: '调停', value: '1' },
  492. { label: '非运营', value: '1' }
  493. ])
  494. const status = [ 'success', 'warning', 'error' ]
  495. const controlList = [
  496. {
  497. label: '状态:',
  498. options: [
  499. { label: '全部', value: 1 },
  500. { label: '运营中', value: 2 },
  501. { label: '非运营', value: 3 }
  502. ]
  503. },
  504. {
  505. label: '电量:',
  506. options: [
  507. { label: '0%-30%', value: 1 },
  508. { label: '31%-60%', value: 2 },
  509. { label: '61%-100%', value: 3 }
  510. ]
  511. },
  512. {
  513. label: '情景:',
  514. options: [
  515. { label: '全部', value: 1 },
  516. { label: '维保', value: 2 },
  517. { label: '充电', value: 3 },
  518. { label: '停驶', value: 4 },
  519. { label: '行驶中', value: 5 }
  520. ]
  521. }
  522. ]
  523. const carstatusList = [
  524. { label: '平均速度', value: '15.16' },
  525. { label: '最大车速', value: '17.82' },
  526. { label: '最小车速', value: '10.93' },
  527. { label: '平均间距', value: '14.03' },
  528. { label: '最大间距', value: '15' },
  529. { label: '最小间距', value: '12' },
  530. { label: '高峰平均时间', value: '69分钟' },
  531. { label: '平峰平均时间', value: '72分钟' },
  532. { label: '单程平均时间', value: '71分钟' }
  533. ]
  534. const leftContent = ref({
  535. leftOp: {
  536. grid: {
  537. containLabel: true
  538. },
  539. // 图表图例
  540. legend: {
  541. show: true,
  542. type: 'scroll',
  543. orient: 'horizontal', // 图例排列方向
  544. icon: 'circle', // 图例样式为圆形
  545. itemWidth: 10, // 图例图形的宽度
  546. itemHeight: 16, // 图例图形的高度
  547. itemGap: 10, // 图例项之间的间隔
  548. left: 'center', // 图例距离容器右侧的距离
  549. bottom: 0, // 图例垂直居中
  550. textStyle: {
  551. color: 'white', // 图例文字颜色
  552. fontSize: 16
  553. }
  554. },
  555. // color: [ '#6386e0', '#fb9a55', '#6bd98d', '#8dfd15', '#6bd98d', '#fff' ],
  556. series: [
  557. {
  558. type: 'pie', // 图表类型为饼图
  559. radius: '60%', // 控制内外圆环的半径,30%代表内圆,60%代表外圆
  560. avoidLabelOverlap: true, // 是否启用防止标签重叠策略
  561. showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
  562. label: {
  563. show: true,
  564. fontSize: 16,
  565. formatter: '{b}: {c}条',
  566. color: 'white'
  567. },
  568. data: [
  569. { key: 2, name: '2023', value: 130 },
  570. { key: 2, name: '2022', value: 50 },
  571. { key: 2, name: '2021', value: 50 },
  572. { key: 2, name: '2020', value: 50 },
  573. { key: 2, name: '2019', value: 50 }
  574. ]
  575. }
  576. ]
  577. }
  578. })
  579. const rightContent = ref({
  580. top: [
  581. {
  582. name: '乘客类型',
  583. option: {
  584. title: {
  585. text: '总', // 图标内容文本
  586. subtext: '196000',
  587. left: 'center', // 图标内容水平居中
  588. top: 'center', // 图标内容垂直居中
  589. // 文本样式
  590. textStyle: {
  591. color: '#fff', // 图标内容文字颜色
  592. fontSize: '16px', // 图标内容文字大小
  593. fontWeight: 'normal'
  594. },
  595. subtextStyle: {
  596. color: '#fff', // 图标内容文字颜色
  597. fontSize: '20px', // 图标内容文字大小
  598. fontWeight: 'normal'
  599. }
  600. },
  601. grid: {
  602. containLabel: true
  603. },
  604. // 图表图例
  605. legend: {
  606. show: true,
  607. type: 'scroll',
  608. orient: 'horizontal', // 图例排列方向
  609. icon: 'circle', // 图例样式为圆形
  610. itemWidth: 10, // 图例图形的宽度
  611. itemHeight: 16, // 图例图形的高度
  612. itemGap: 40, // 图例项之间的间隔
  613. left: 'center', // 图例距离容器右侧的距离
  614. bottom: 0, // 图例垂直居中
  615. textStyle: {
  616. color: 'white', // 图例文字颜色
  617. fontSize: 20
  618. }
  619. },
  620. // color: [ '#6386e0', '#fb9a55', '#6bd98d', '#8dfd15', '#6bd98d', '#fff' ],
  621. series: [
  622. {
  623. type: 'pie', // 图表类型为饼图
  624. radius: [ '55%', '75%' ], // 控制内外圆环的半径,30%代表内圆,60%代表外圆
  625. avoidLabelOverlap: true, // 是否启用防止标签重叠策略
  626. showEmptyCircle: true, // 是否在无数据的时候显示一个占位圆
  627. label: {
  628. show: true,
  629. formatter: '{d}%',
  630. color: 'white'
  631. },
  632. data: [
  633. { key: 2, name: '老年卡', value: 180 },
  634. { key: 2, name: '电子钱包', value: 50 },
  635. { key: 2, name: '现金', value: 30 },
  636. { key: 2, name: '学生卡', value: 20 },
  637. { key: 2, name: '成人次卡', value: 10 },
  638. { key: 2, name: '其他', value: 10 },
  639. { key: 2, name: '免费人次', value: 10 }
  640. ]
  641. }
  642. ]
  643. }
  644. },
  645. {
  646. name: '客流情况',
  647. option: {
  648. grid: {
  649. containLabel: true,
  650. right: 30,
  651. left: 50
  652. },
  653. legend: {
  654. show: true,
  655. left: 'center',
  656. top: '10',
  657. icon: 'stack',
  658. itemWidth: 15,
  659. itemHeight: 10,
  660. textStyle: {
  661. color: '#646464',
  662. fontSize: 18
  663. }
  664. },
  665. xAxis: [ {
  666. type: 'category',
  667. axisLine: {
  668. show: false
  669. },
  670. axisLabel: {
  671. color: '#fff',
  672. fontSize: 18
  673. // formatter: (value: number) => format( 1'时')
  674. },
  675. splitLine: {
  676. show: false
  677. },
  678. axisTick: {
  679. show: false
  680. },
  681. data: [ '1时', '2时', '3时', '4时', '5时', '6时', '7时', '8时', '9时', '10时', '11时', '12时' ]
  682. } ],
  683. yAxis: [ {
  684. name: '客流量/人次',
  685. nameLocation: 'center',
  686. nameGap: 50,
  687. nameTextStyle: {
  688. color: '#fff',
  689. fontSize: 18
  690. },
  691. padding: 5,
  692. // max: 1000,
  693. splitLine: {
  694. show: true,
  695. lineStyle: {
  696. color: '#A1A7B3'
  697. // type: 'dashed'
  698. }
  699. },
  700. axisLine: {
  701. show: false
  702. },
  703. axisLabel: {
  704. show: true,
  705. margin: 10,
  706. textStyle: {
  707. color: '#fff'
  708. }
  709. },
  710. axisTick: {
  711. show: false
  712. }
  713. }
  714. ],
  715. series: [ {
  716. name: '客流量',
  717. type: 'line',
  718. smooth: true,
  719. symbolSize: 0,
  720. itemStyle: {
  721. normal: {
  722. // color: '#FFD35D',
  723. lineStyle: {
  724. color: new graphic.LinearGradient(0, 0, 0, 1, [
  725. {
  726. offset: 0,
  727. color: '#FFD35D66'
  728. },
  729. {
  730. offset: 0.5,
  731. color: '#7ec2f366'
  732. },
  733. {
  734. offset: 1,
  735. color: '#1890ff'
  736. }
  737. ], false),
  738. width: 1
  739. }
  740. }
  741. },
  742. areaStyle: {
  743. normal: {
  744. color: new graphic.LinearGradient(0, 0, 0, 1, [
  745. {
  746. offset: 0,
  747. color: '#FFD35D66'
  748. },
  749. {
  750. offset: 0.5,
  751. color: '#7ec2f366'
  752. },
  753. {
  754. offset: 1,
  755. color: '#1890ff'
  756. }
  757. ], false)
  758. }
  759. },
  760. data: [ 120, 132, 101, 134, 90, 230, 210, 182, 191, 234, 290, 330 ]
  761. } ],
  762. dataZoom: {}
  763. }
  764. },
  765. {
  766. name: '里程情况',
  767. option: {
  768. grid: {
  769. containLabel: true,
  770. right: 30,
  771. left: 50
  772. },
  773. legend: {
  774. show: true,
  775. left: 'center',
  776. top: '10',
  777. icon: 'stack',
  778. itemWidth: 15,
  779. itemHeight: 10,
  780. textStyle: {
  781. color: '#646464',
  782. fontSize: 18
  783. }
  784. },
  785. xAxis: [ {
  786. type: 'category',
  787. axisLine: {
  788. show: false
  789. },
  790. axisLabel: {
  791. color: '#fff',
  792. fontSize: 18
  793. // formatter: (value: number) => format( 1'时')
  794. },
  795. splitLine: {
  796. show: false
  797. },
  798. axisTick: {
  799. show: false
  800. },
  801. data: [ '1时', '2时', '3时', '4时', '5时', '6时', '7时', '8时', '9时', '10时', '11时', '12时' ]
  802. } ],
  803. yAxis: [ {
  804. name: '里程/km',
  805. nameLocation: 'center',
  806. nameGap: 50,
  807. nameTextStyle: {
  808. color: '#fff',
  809. fontSize: 18
  810. },
  811. padding: 5,
  812. // max: 1000,
  813. splitLine: {
  814. show: true,
  815. lineStyle: {
  816. color: '#A1A7B3'
  817. // type: 'dashed'
  818. }
  819. },
  820. axisLine: {
  821. show: false
  822. },
  823. axisLabel: {
  824. show: true,
  825. margin: 10,
  826. textStyle: {
  827. color: '#fff'
  828. }
  829. },
  830. axisTick: {
  831. show: false
  832. }
  833. }
  834. ],
  835. series: [ {
  836. name: '里程',
  837. type: 'line',
  838. smooth: true,
  839. symbolSize: 0,
  840. itemStyle: {
  841. normal: {
  842. // color: '#4293FD',
  843. lineStyle: {
  844. // color: '#FFD35D',
  845. width: 1,
  846. color: new graphic.LinearGradient(0, 0, 0, 1, [
  847. {
  848. offset: 0,
  849. color: '#6A5BF066'
  850. },
  851. {
  852. offset: 0.5,
  853. color: '#7ec2f366'
  854. },
  855. {
  856. offset: 1,
  857. color: '#1890ff'
  858. }
  859. ], false)
  860. }
  861. }
  862. },
  863. areaStyle: {
  864. normal: {
  865. color: new graphic.LinearGradient(0, 0, 0, 1, [
  866. {
  867. offset: 0,
  868. color: '#6A5BF066'
  869. },
  870. {
  871. offset: 0.5,
  872. color: '#7ec2f366'
  873. },
  874. {
  875. offset: 1,
  876. color: '#1890ff'
  877. }
  878. ], false)
  879. }
  880. },
  881. data: [ 120, 132, 101, 134, 90, 230, 210, 182, 191, 234, 290, 330 ]
  882. } ],
  883. dataZoom: {}
  884. }
  885. }
  886. ],
  887. bottom: {
  888. }
  889. })
  890. </script>
  891. <style lang="scss" scoped>
  892. .left {
  893. display: flex;
  894. justify-content: space-between;
  895. gap: 10px;
  896. color: #fff;
  897. font-size: 18px;
  898. &-left {
  899. .linebase {
  900. height: 216px;
  901. padding: 20px 60px 35px 60px;
  902. display: flex;
  903. align-items: center;
  904. gap: 70px;
  905. .car {
  906. .top {
  907. display: flex;
  908. position: relative;
  909. font-size: 18px;
  910. .name {
  911. width: 63px;
  912. height: 74px;
  913. line-height: 74px;
  914. text-align: center;
  915. border: 2px solid #2185E8;
  916. font-size: 50px;
  917. border-radius: 10px;
  918. background: rgba(33, 133, 232, 0.298);
  919. }
  920. .road {
  921. position: absolute;
  922. bottom: 0;
  923. right: -25px;
  924. }
  925. }
  926. .current {
  927. text-align: center;
  928. text-shadow: 1px 1px 10px rgba(0, 255, 255, 0.698);
  929. margin-top: 10px;
  930. }
  931. }
  932. .info {
  933. width: 100%;
  934. >div {
  935. display: flex;
  936. gap: 10px;
  937. margin: 15.2px 0;
  938. .label {
  939. color: #80FFFF
  940. }
  941. }
  942. }
  943. }
  944. .header {
  945. height: 50px;
  946. background: rgba(33, 133, 232, 0.298);
  947. display: flex;
  948. >div {
  949. width: 50%;
  950. display: flex;
  951. align-items: center;
  952. justify-content: center;
  953. gap: 10px;
  954. }
  955. }
  956. .detail {
  957. padding: 0 20px 0 30px;
  958. >div {
  959. border-bottom: 1px solid rgba(128, 255, 255, 0.298);
  960. padding-bottom: 30px;
  961. padding-top: 16px;
  962. .value {
  963. color: #80FFFF;
  964. width: 200px;
  965. text-align: center;
  966. }
  967. .row {
  968. height: 50px;
  969. display: flex;
  970. align-items: center;
  971. .type {
  972. border: 1px solid #80FFFF;
  973. background: rgba(128, 255, 255, 0.098);
  974. border-radius: 5px;
  975. color: #80FFFF;
  976. padding: 5px 9px;
  977. &.orange {
  978. border: 1px solid #FAAD0E;
  979. background: rgba(250, 173, 14, 0.098);
  980. color: #FAAD0E;
  981. }
  982. }
  983. .name {
  984. flex: 1;
  985. margin-left: 10px;
  986. }
  987. }
  988. .title {
  989. display: flex;
  990. justify-content: space-between;
  991. align-items: center;
  992. .name {
  993. font-size: 24px;
  994. margin-left: 10px;
  995. }
  996. .value {
  997. display: flex;
  998. justify-content: center;
  999. align-items: flex-end;
  1000. gap: 10px;
  1001. }
  1002. }
  1003. .starlist {
  1004. display: flex;
  1005. justify-content: space-around;
  1006. margin-top: 17px;
  1007. .star {
  1008. color: #80FFFF;
  1009. .num {
  1010. font-size: 24px;
  1011. }
  1012. }
  1013. }
  1014. }
  1015. }
  1016. }
  1017. &-right {
  1018. flex: 1;
  1019. font-size: 18px;
  1020. .filter {
  1021. display: flex;
  1022. align-items: center;
  1023. padding: 20px 40px;
  1024. .name {
  1025. width: 120px;
  1026. }
  1027. .odds {
  1028. display: flex;
  1029. gap: 10px;
  1030. flex-wrap: wrap;
  1031. .odd {
  1032. border-radius: 5px;
  1033. border: 1px solid #2185E8;
  1034. background: rgba(0, 191, 191, 0);
  1035. padding: 2px 8px;
  1036. min-width: 90px;
  1037. text-align: center;
  1038. &.checkd {
  1039. background: #2185E8;
  1040. }
  1041. }
  1042. }
  1043. }
  1044. .frequency {
  1045. margin-top: 15px;
  1046. .title {
  1047. background: rgba(24, 145, 255, 0.498);
  1048. height: 40px;
  1049. line-height: 40px;
  1050. font-size: 20px;
  1051. text-align: center;
  1052. text-shadow: 1px 1px 10px rgba(0, 255, 255, 0.698);
  1053. }
  1054. .content {
  1055. display: flex;
  1056. justify-content: space-between;
  1057. gap: 10px;
  1058. padding: 10px 13px;
  1059. .bus {
  1060. width: 236px;
  1061. height: 401px;
  1062. flex: 1;
  1063. border: 1px solid #1891FF;
  1064. background: rgba(27, 175, 255, 0.098);
  1065. overflow: hidden;
  1066. position: relative;
  1067. .status {
  1068. position: absolute;
  1069. height: 31px;
  1070. line-height: 31px;
  1071. text-align: right;
  1072. width: 100%;
  1073. top: 119px;
  1074. padding-right: 10px;
  1075. background: linear-gradient(90deg, rgba(0, 0, 0, 0) 1%, #333333 100%);
  1076. &.success {
  1077. background: linear-gradient(90deg, rgba(0, 238, 200, 0) 4%, #00EEC8 100%);
  1078. }
  1079. &.warning {
  1080. background: linear-gradient(90deg, rgba(250, 173, 14, 0) 1%, #FAAD0E 100%);
  1081. }
  1082. &.error {
  1083. background: linear-gradient(90deg, rgba(231, 61, 65, 0) 1%, #E73D41 100%);
  1084. }
  1085. }
  1086. img {
  1087. height: 150px;
  1088. width: 100%;
  1089. }
  1090. .info {
  1091. padding: 10px;
  1092. >div {
  1093. display: flex;
  1094. height: 35px;
  1095. align-items: center;
  1096. .bold {
  1097. font-size: 24px;
  1098. }
  1099. .busNum {
  1100. border: 2px solid #FFFFFF;
  1101. border-radius: 3px;
  1102. background: #1891FF;
  1103. padding: 2px 5px;
  1104. margin-left: 10px;
  1105. }
  1106. }
  1107. }
  1108. .table {
  1109. >div {
  1110. display: flex;
  1111. height: 40px;
  1112. align-items: center;
  1113. .label {
  1114. width: 135px;
  1115. height: 40px;
  1116. line-height: 40px;
  1117. background: rgba(33, 133, 232, 0.298);
  1118. color: #80FFFF;
  1119. text-align: right;
  1120. padding-right: 10px;
  1121. }
  1122. .value {
  1123. text-align: center;
  1124. flex: 1;
  1125. }
  1126. }
  1127. }
  1128. }
  1129. }
  1130. .page {
  1131. display: flex;
  1132. justify-content: flex-end;
  1133. margin-top: 25px;
  1134. }
  1135. }
  1136. }
  1137. .flex {
  1138. display: flex;
  1139. gap: 10px;
  1140. align-items: center;
  1141. }
  1142. .bold {
  1143. color: #fff;
  1144. font-weight: bold;
  1145. font-family: Impact Normal;
  1146. }
  1147. }
  1148. .right {
  1149. &-top {
  1150. color: #fff;
  1151. display: flex;
  1152. gap: 10px;
  1153. justify-content: space-between;
  1154. }
  1155. &-bottom {
  1156. color: #fff;
  1157. gap: 10px;
  1158. display: flex;
  1159. justify-content: space-between;
  1160. .carmonitor {
  1161. padding: 10px;
  1162. .control {
  1163. display: flex;
  1164. font-size: 20px;
  1165. gap: 20px;
  1166. :deep(.n-select){
  1167. .n-base-selection{
  1168. height: 40px;
  1169. }
  1170. }
  1171. .item {
  1172. display: flex;
  1173. flex: 1;
  1174. align-items: center;
  1175. gap: 20px;
  1176. .label {
  1177. min-width: 60px;
  1178. }
  1179. }
  1180. }
  1181. .table {
  1182. margin-top: 20px;
  1183. text-align: center;
  1184. th {
  1185. border: 0;
  1186. background: rgba(33, 133, 232, 0.6);
  1187. text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6471);
  1188. font-weight: bold;
  1189. }
  1190. tr {
  1191. td {
  1192. color: #fff;
  1193. }
  1194. .index {
  1195. width: 14px;
  1196. height: 14px;
  1197. line-height: 14px;
  1198. background: #8DFF53;
  1199. border-radius: 50%;
  1200. display: inline-block;
  1201. color: #333333;
  1202. }
  1203. &.no {
  1204. td {
  1205. background: linear-gradient(180deg, #00A8F0 0%, #02B3B3 100%);
  1206. }
  1207. .index {
  1208. background: #D7D7D7;
  1209. }
  1210. }
  1211. }
  1212. }
  1213. }
  1214. .carstatus {
  1215. display: flex;
  1216. align-items: center;
  1217. justify-content: center;
  1218. position: relative;
  1219. .line{
  1220. position: absolute;
  1221. width: 1px;
  1222. height: 397px;
  1223. background-color: rgba(128, 255, 255, 0.298);
  1224. left: 50%;
  1225. top: 120px;
  1226. }
  1227. >div {
  1228. flex: 1;
  1229. display: flex;
  1230. flex-wrap: wrap;
  1231. justify-content: center;
  1232. >div{
  1233. width: 100%;
  1234. }
  1235. .title {
  1236. width: 136px;
  1237. height: 59px;
  1238. line-height: 59px;
  1239. border-radius: 5px;
  1240. text-align: center;
  1241. font-size: 24px;
  1242. text-shadow: 1px 1px 5px rgba(0, 255, 255, 0.6471);
  1243. margin: 30px 0 ;
  1244. }
  1245. }
  1246. .up .title {
  1247. background: rgba(27, 175, 255, 0.298);
  1248. border: 1px solid #81D3F8;
  1249. box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.349), inset 0px 0px 30px 1px rgba(24, 145, 255, 0.9961);
  1250. }
  1251. .down .title {
  1252. background: rgba(231, 61, 65, 0.298);
  1253. border: 1px solid #F9A15A;
  1254. box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.349), inset 0px 0px 30px 1px rgba(231, 61, 65, 0.9882);
  1255. }
  1256. .content{
  1257. display: flex;
  1258. flex-wrap: wrap;
  1259. justify-content: center;
  1260. gap: 20px;
  1261. >div{
  1262. width: 100%;
  1263. display: flex;
  1264. justify-content: center;
  1265. align-items: center;
  1266. gap: 20px;
  1267. >div{
  1268. flex: 1;
  1269. }
  1270. .label{
  1271. font-size: 18px;
  1272. color: #81D3F8;
  1273. text-align: right;
  1274. text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6471);
  1275. }
  1276. .value{
  1277. font-size: 24px;
  1278. text-shadow: 1px 1px 5px rgba(0, 255, 255, 0.6471);
  1279. }
  1280. }
  1281. }
  1282. }
  1283. }
  1284. }
  1285. </style>