PassengerFlow.vue 29 KB

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