index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  1. <template>
  2. <a-spin :spinning="loading">
  3. <div class="energy-overView">
  4. <commonSearch hasAreaSearch ref="commonSearch" type="nodate" @search="handleSearch"></commonSearch>
  5. <div class="top-container u-flex">
  6. <div class="louyu u-flex common-box">
  7. <div class="common-title">区域基本信息</div>
  8. <img src="../../../../assets/louyu.png" alt="" />
  9. <a-descriptions :column="2">
  10. <a-descriptions-item label="建筑名称">{{ energySpace.name }}</a-descriptions-item>
  11. <a-descriptions-item label="建筑面积">{{ energySpace.builtarea }} ㎡</a-descriptions-item>
  12. <a-descriptions-item label="空调面积">{{ energySpace.aircondarea }} ㎡</a-descriptions-item>
  13. <a-descriptions-item label="采暖面积">{{ energySpace.heatarea }} ㎡</a-descriptions-item>
  14. <!-- <el-descriptions-item label="用能人数">{{energySpace.}}</el-descriptions-item> -->
  15. <!-- <el-descriptions-item label="建筑年代">{{energySpace.}}</el-descriptions-item> -->
  16. <!-- <el-descriptions-item label="建筑用途">{{energySpace.}}</el-descriptions-item> -->
  17. </a-descriptions>
  18. </div>
  19. <div class="sort-top5-container common-box">
  20. <div class="common-title">当月用电量TOP5(kWh)</div>
  21. <div class="sort-top5" ref="sortTop5"></div>
  22. </div>
  23. <div class="info-total">
  24. <div class="yongdian-xuliang common-box">
  25. <div class="common-title">用电需量(kVA)</div>
  26. <div class="info-container u-flex-jaa">
  27. <div class="item-info">
  28. <div class="name">即时需量</div>
  29. <div class="value">{{ demandStatistics.jishi }}</div>
  30. </div>
  31. <!-- <a-divider direction="vertical"></a-divider> -->
  32. <div class="item-info">
  33. <div class="name">需量峰值</div>
  34. <div class="value">{{ demandStatistics.fengzhi }}</div>
  35. </div>
  36. <!-- <a-divider direction="vertical"></a-divider> -->
  37. <div class="item-info">
  38. <div class="name">目标需量</div>
  39. <div class="value">{{ demandStatistics.mubiao }}</div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="u-flex co2-tianqi">
  44. <div class="co2 common-box">
  45. <div class="common-title">CO2排放</div>
  46. <div class="info-container u-flex-jaa">
  47. <div class="item-info">
  48. <div class="name">本月排放(Kg)</div>
  49. <div class="value">{{ demandStatistics.co2 }}</div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="tianqi common-box">
  54. <div class="common-title">环境信息</div>
  55. <div class="info-container u-flex-jaa">
  56. <div class="item-info">
  57. <div class="name">湿度(%)</div>
  58. <div class="value">{{ demandStatistics.shidu }}</div>
  59. </div>
  60. <!-- <a-divider direction="vertical"></a-divider> -->
  61. <div class="item-info">
  62. <div class="name">温度(℃)</div>
  63. <div class="value">{{ demandStatistics.wendu }}</div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="bottom-container u-flex">
  71. <div class="xiaohao common-box">
  72. <div class="common-title">当月能源消耗总标煤(kg)</div>
  73. <div class="zongbiao-chart" ref="zongbiao"></div>
  74. <!-- <div class="legend">
  75. <div class="u-flex item" v-for="(item, index) in dataLists" :key="index">
  76. <div class="text">{{item.name}}</div>
  77. <div class="number">{{item.number}}tec</div>
  78. <div class="pieValue">{{item.pieValue}}%</div>
  79. </div>
  80. </div> -->
  81. </div>
  82. <div class="qushi common-box">
  83. <div class="common-title">总用电趋势图(kWh)</div>
  84. <div class="totalEle-trend" ref="totalEleTrend"></div>
  85. </div>
  86. </div>
  87. </div>
  88. </a-spin>
  89. </template>
  90. <script>
  91. import * as echarts from 'echarts'
  92. import commonSearch from '../components/commonSearch'
  93. import { httpAction, getAction } from '@/api/manage'
  94. // import { emsdata } from '../emsdata';
  95. export default {
  96. name: 'energyDashboard',
  97. components: {
  98. commonSearch,
  99. },
  100. data() {
  101. return {
  102. description: '能耗总览',
  103. loading: true,
  104. energySpace: {},
  105. demandStatistics: {
  106. jishi: null,
  107. fengzhi: null,
  108. mubiao: null,
  109. co2: null,
  110. shidu: null,
  111. wendu: null,
  112. },
  113. dataLists: [
  114. { name: '空调用电', number: 80, pieValue: 20 },
  115. { name: '动力用电', number: 100, pieValue: 25 },
  116. { name: '照明用电', number: 140, pieValue: 35 },
  117. { name: '其他用电', number: 80, pieValue: 20 },
  118. ],
  119. sortTop5Name: [],
  120. nowMonthData: [],
  121. lastMonthData: [],
  122. // sortTop5Name: ['电信盘','烧机设备', '插座', '全空气机组', '照明', ],
  123. // nowMonthData: [7773.50, 8809.40, 10065.20, 17371.00, 20478.60],
  124. // lastMonthData: [-6979.80, -6458.10 -13762.10, -16628.50, -8037.70],
  125. totalEleTrend: {
  126. daysplit: [],
  127. kongtiao: [],
  128. zhaoming: [],
  129. dongli: [],
  130. qita: [],
  131. },
  132. zongbiao: [],
  133. url: {
  134. list: '/emsStatistics/energyOverview',
  135. },
  136. }
  137. },
  138. created() {},
  139. mounted() {
  140. this.$nextTick(() => {
  141. this.getEnergyoverview()
  142. })
  143. },
  144. methods: {
  145. getEnergyoverview() {
  146. // {spaceId: 277797283102721}
  147. this.loading = true
  148. var data = this.$refs.commonSearch.queryParams
  149. getAction(this.url.list, data).then((res) => {
  150. if(res.success){
  151. var listData = res.result
  152. // 用电需量
  153. this.demandStatistics.jishi = listData.demandStatistics.find((item) => item.type === '即时需量').howManyValue
  154. this.demandStatistics.fengzhi = listData.demandStatistics.find((item) => item.type === '需量峰值').howManyValue
  155. this.demandStatistics.mubiao = listData.demandStatistics.find((item) => item.type === '目标需量').howManyValue
  156. // co2+气象
  157. this.demandStatistics.co2 = listData.environmentStatistics.find((item) => item.type === 'CO2排放').howManyValue
  158. this.demandStatistics.shidu = listData.environmentStatistics.find((item) => item.type === '室外湿度')
  159. ? listData.environmentStatistics.find((item) => item.type === '室外湿度').howManyValue
  160. : ''
  161. this.demandStatistics.wendu = listData.environmentStatistics.find((item) => item.type === '室外温度')
  162. ? listData.environmentStatistics.find((item) => item.type === '室外温度').howManyValue
  163. : ''
  164. // top5
  165. this.sortTop5Name = []
  166. this.nowMonthData = []
  167. this.lastMonthData = []
  168. listData.top5Statistics.forEach((res) => {
  169. this.sortTop5Name.push(res.equipmentname)
  170. this.nowMonthData.push(res.howManyValue)
  171. this.lastMonthData.push(res.howManyValue2)
  172. })
  173. // 总标煤
  174. this.zongbiao = listData.kgceStatistics.map((res) => {
  175. var item = {
  176. name: res.type,
  177. value: res.howManyValue,
  178. }
  179. return item
  180. })
  181. this.totalEleTrend.daysplit = listData.daysplit
  182. this.totalEleTrend.kongtiao = listData.kongtiao
  183. this.totalEleTrend.dongli = listData.dongli
  184. this.totalEleTrend.zhaoming = listData.zhaoming
  185. this.totalEleTrend.qita = listData.qita
  186. this.energySpace = listData.energySpace
  187. // this.$message.success(res.message);
  188. }else{
  189. this.$message.warning(res.message);
  190. }
  191. }).finally(() => {
  192. this.$nextTick(() => {
  193. this.initSortTop5()
  194. this.initPieDianliang()
  195. this.initTotalEleTrend()
  196. })
  197. this.loading = false;
  198. })
  199. },
  200. handleSearch(param) {
  201. this.getEnergyoverview()
  202. },
  203. // 当月用电量TOP5 柱状图
  204. initSortTop5() {
  205. var _this = this
  206. var chartDom = this.$refs.sortTop5
  207. var myChart = echarts.init(chartDom)
  208. var option
  209. option = {
  210. tooltip: {
  211. trigger: 'axis',
  212. axisPointer: {
  213. type: 'shadow',
  214. },
  215. },
  216. legend: {
  217. bottom: 0,
  218. data: ['上月', '当月'],
  219. },
  220. // grid: {
  221. // left: '3%',
  222. // right: '4%',
  223. // bottom: '12%',
  224. // top: '0%',
  225. // containLabel: true
  226. // },
  227. grid: [
  228. // 左边柱子
  229. {
  230. show: false,
  231. left: '10%',
  232. top: '10%',
  233. bottom: '20',
  234. containLabel: true,
  235. width: '25%',
  236. },
  237. // 中间
  238. {
  239. show: false,
  240. left: '51%',
  241. top: '10%',
  242. bottom: '20',
  243. width: '30%',
  244. },
  245. // 右边柱子
  246. {
  247. show: false,
  248. right: '10%',
  249. top: '10%',
  250. bottom: '20',
  251. containLabel: true,
  252. width: '25%',
  253. },
  254. ],
  255. xAxis: [
  256. {
  257. type: 'value',
  258. inverse: true,
  259. axisLine: {
  260. show: false,
  261. },
  262. axisTick: {
  263. show: false,
  264. },
  265. axisLabel: {
  266. show: false,
  267. },
  268. splitLine: {
  269. show: false,
  270. },
  271. },
  272. {
  273. gridIndex: 1,
  274. show: false,
  275. },
  276. {
  277. gridIndex: 2,
  278. axisLine: {
  279. show: false,
  280. },
  281. axisTick: {
  282. show: false,
  283. },
  284. axisLabel: {
  285. show: false,
  286. },
  287. splitLine: {
  288. show: false,
  289. },
  290. },
  291. // {
  292. // type: 'value'
  293. // }
  294. ],
  295. yAxis: [
  296. {
  297. type: 'category',
  298. inverse: true,
  299. position: 'right',
  300. axisLine: {
  301. show: false,
  302. },
  303. axisTick: {
  304. show: false,
  305. },
  306. axisLabel: {
  307. show: false,
  308. },
  309. data: this.sortTop5Name,
  310. },
  311. {
  312. gridIndex: 1,
  313. type: 'category',
  314. inverse: true,
  315. position: 'center',
  316. axisLine: {
  317. show: false,
  318. },
  319. axisTick: {
  320. show: false,
  321. },
  322. axisLabel: {
  323. show: true,
  324. align: 'center',
  325. // color: '#CDD7D7',
  326. fontSize: 14,
  327. },
  328. data: this.sortTop5Name,
  329. },
  330. {
  331. gridIndex: 2,
  332. type: 'category',
  333. inverse: true,
  334. position: 'left',
  335. axisLine: {
  336. show: false,
  337. },
  338. axisTick: {
  339. show: false,
  340. },
  341. axisLabel: {
  342. show: false,
  343. },
  344. data: this.sortTop5Name,
  345. },
  346. // {
  347. // type: 'category',
  348. // axisTick: {
  349. // show: false
  350. // },
  351. // data: this.sortTop5Name
  352. // }
  353. ],
  354. series: [
  355. {
  356. name: '当月',
  357. type: 'bar',
  358. xAxisIndex: 2,
  359. yAxisIndex: 2,
  360. barWidth: 15,
  361. stack: 'Total',
  362. // barWidth: '50%',
  363. label: {
  364. show: true,
  365. position: 'right',
  366. // color: '#4BE6E6'
  367. },
  368. emphasis: {
  369. focus: 'series',
  370. },
  371. data: this.nowMonthData,
  372. },
  373. {
  374. name: '上月',
  375. type: 'bar',
  376. stack: 'Total',
  377. xAxisIndex: 0,
  378. yAxisIndex: 0,
  379. barWidth: 15,
  380. label: {
  381. show: true,
  382. position: 'left',
  383. // color: '#F29740'
  384. },
  385. emphasis: {
  386. focus: 'series',
  387. },
  388. data: this.lastMonthData,
  389. },
  390. ],
  391. }
  392. option && myChart.setOption(option)
  393. window.addEventListener('resize', function () {
  394. myChart.resize()
  395. })
  396. },
  397. // 当月能源消耗总标煤 饼图
  398. initPieDianliang1() {
  399. var chartDom = this.$refs.zongbiao
  400. var myChart = echarts.init(chartDom)
  401. var option
  402. option = {
  403. series: [
  404. {
  405. type: 'gauge',
  406. radius: '70%',
  407. center: ['50%', '50%'],
  408. clockwise: true, // 仪表盘刻度是否是顺时针增长
  409. startAngle: '90', // 开始角度
  410. endAngle: '-269.9999', // 结束角度
  411. splitNumber: 36, // 仪表盘刻度的分割段数
  412. detail: {
  413. offsetCenter: [0, -20],
  414. formatter: ' ',
  415. },
  416. detail: {
  417. // 仪表盘详情,用于显示数据-value
  418. show: true, // 是否显示详情,默认 true
  419. offsetCenter: [0, -4], // 相对于仪表盘中心的偏移位置
  420. color: '#000',
  421. fontWeight: '600',
  422. fontSize: '18',
  423. formatter: '{value}', // 格式化函数或者字符串
  424. },
  425. title: {
  426. //仪表盘标题-name。
  427. show: true, //是否显示标题,默认 true
  428. offsetCenter: [0, 16], // 相对于仪表盘中心的偏移位置
  429. color: '#000',
  430. fontWeight: '100',
  431. fontSize: '14',
  432. },
  433. pointer: {
  434. // 指针
  435. show: false,
  436. },
  437. axisLine: {
  438. show: true,
  439. lineStyle: {
  440. color: [
  441. [0.3437, '#5470C6'],
  442. [0.6269, '#91CC75'],
  443. [0.8648, '#FAC858'],
  444. [1, '#EE6666'],
  445. // [0.3437, '#e2e14f'],
  446. // [0.6269, '#00a7fb'],
  447. // [0.8648, '#00e0fb'],
  448. // [1, '#00ffb4']
  449. ],
  450. width: 18,
  451. },
  452. },
  453. axisTick: {
  454. // 刻度线
  455. show: false,
  456. },
  457. splitLine: {
  458. // 分割线
  459. show: true,
  460. distance: -18, // 分割线与轴线的距离(在哪儿显示)
  461. length: 18,
  462. lineStyle: {
  463. color: '#f1f1f1',
  464. width: 2,
  465. },
  466. },
  467. axisLabel: {
  468. show: false,
  469. },
  470. data: [
  471. {
  472. value: 400,
  473. name: 'tce',
  474. },
  475. ],
  476. },
  477. {
  478. type: 'pie',
  479. name: '内层细圆环',
  480. radius: ['52%', '53%'],
  481. center: ['50%', '50%'],
  482. hoverAnimation: false,
  483. startAngle: 200,
  484. itemStyle: {
  485. color: '#E3EBFA',
  486. },
  487. label: {
  488. show: false,
  489. },
  490. data: [100],
  491. },
  492. {
  493. type: 'pie',
  494. name: '外层细圆环',
  495. radius: ['72%', '71%'],
  496. center: ['50%', '50%'],
  497. hoverAnimation: false,
  498. startAngle: 200,
  499. itemStyle: {
  500. color: '#E3EBFA',
  501. },
  502. label: {
  503. show: false,
  504. },
  505. data: [100],
  506. },
  507. ],
  508. }
  509. option && myChart.setOption(option)
  510. window.addEventListener('resize', function () {
  511. myChart.resize()
  512. })
  513. },
  514. // 总用电趋势图 柱状图
  515. initPieDianliang() {
  516. var chartDom = this.$refs.zongbiao
  517. var myChart = echarts.init(chartDom)
  518. var option
  519. option = {
  520. tooltip: {
  521. trigger: 'item',
  522. },
  523. legend: {
  524. // orient: 'vertical',
  525. // top: '10%',
  526. // right: 10,
  527. bottom: 0,
  528. },
  529. series: [
  530. {
  531. name: '',
  532. type: 'pie',
  533. radius: ['30%', '48%'], // 内圈 外圈
  534. center: ['50%', '45%'],
  535. avoidLabelOverlap: false,
  536. itemStyle: {
  537. borderRadius: 10,
  538. borderColor: '#fff',
  539. borderWidth: 2,
  540. },
  541. label: {
  542. show: true,
  543. formatter(param) {
  544. // return param.name + '\n (' + param.percent + '%)';
  545. return param.name + '\n' + param.value + ' (' + param.percent + '%)'
  546. },
  547. // formatter: '{a} <br/>{b}: {c} ({d}%)'
  548. // position: 'center'
  549. },
  550. labelLine: {
  551. show: true,
  552. },
  553. emphasis: {
  554. label: {
  555. // 饼图每一个的名称显示
  556. show: true,
  557. // fontSize: 40,
  558. // fontWeight: 'bold'
  559. },
  560. },
  561. data: this.zongbiao,
  562. },
  563. ],
  564. }
  565. option && myChart.setOption(option)
  566. window.addEventListener('resize', function () {
  567. myChart.resize()
  568. })
  569. },
  570. initTotalEleTrend() {
  571. console.log(this.totalEleTrend.daysplit)
  572. var _this = this
  573. var chartDom = this.$refs.totalEleTrend
  574. var myChart = echarts.init(chartDom)
  575. var option
  576. option = {
  577. // title: {
  578. // text: '用能趋势',
  579. // left: 'center'
  580. // },
  581. tooltip: {
  582. trigger: 'axis',
  583. axisPointer: {
  584. type: 'shadow',
  585. },
  586. },
  587. legend: {
  588. bottom: 0,
  589. },
  590. grid: {
  591. top: '10%',
  592. left: '3%',
  593. right: '4%',
  594. bottom: '25px',
  595. containLabel: true,
  596. },
  597. xAxis: {
  598. type: 'category',
  599. // data: ['6月','7月','8月','9月','10月','11月','12月','1月','2月','3月','4月','5月',]
  600. data: this.totalEleTrend.daysplit,
  601. },
  602. yAxis: {
  603. type: 'value',
  604. },
  605. toolbox: {
  606. show: true,
  607. feature: {
  608. saveAsImage: {},
  609. },
  610. },
  611. series: [
  612. {
  613. name: '动力用电',
  614. type: 'bar',
  615. stack: 'total',
  616. color: '#5470C6',
  617. emphasis: {
  618. focus: 'series',
  619. },
  620. // data: [150, 212, 201, 154, 190, 330, 410, 320, 199, 254, 324, 225]
  621. data: this.totalEleTrend.dongli,
  622. },
  623. {
  624. name: '空调用电',
  625. type: 'bar',
  626. stack: 'total',
  627. color: '#91CC75',
  628. // label: { // 是否显示柱形图上数字
  629. // show: true
  630. // },
  631. // emphasis: { // 悬浮时是否模糊其他柱形图
  632. // focus: 'series'
  633. // },
  634. // data: [120, 132, 101, 134, 90, 230, 210, 209, 150, 140, 152, 143]
  635. data: this.totalEleTrend.kongtiao,
  636. },
  637. {
  638. name: '照明用电',
  639. type: 'bar',
  640. stack: 'total',
  641. color: '#EE6666',
  642. // emphasis: {
  643. // focus: 'series'
  644. // },
  645. // data: [220, 182, 191, 234, 290, 330, 310, 320, 145, 222, 245, 301]
  646. data: this.totalEleTrend.zhaoming,
  647. },
  648. {
  649. name: '其他用电',
  650. type: 'bar',
  651. stack: 'total',
  652. color: '#FAC858',
  653. // barWidth: '50%',
  654. // emphasis: {
  655. // focus: 'series'
  656. // },
  657. // data: [320, 302, 301, 334, 390, 330, 320, 300, 310, 316, 304, 322]
  658. data: this.totalEleTrend.qita,
  659. },
  660. ],
  661. }
  662. option && myChart.setOption(option)
  663. window.addEventListener('resize', function () {
  664. myChart.resize()
  665. })
  666. },
  667. },
  668. }
  669. </script>
  670. <style lang="less" scoped>
  671. @import '~@/assets/less/uStyle.less';
  672. </style>
  673. <style lang="less" scoped>
  674. .energy-overView {
  675. min-height: calc(100vh - 84px);
  676. padding: 0 10px;
  677. .common-title {
  678. text-align: center;
  679. font-weight: bold;
  680. font-size: 18px;
  681. color: #1b2128;
  682. }
  683. .common-box {
  684. box-shadow: 0 2px 10px rgba(153, 153, 153, 0.1);
  685. padding: 1.1vh 1.2vh;
  686. background-color: #fff;
  687. // padding: 16px 20px;
  688. }
  689. .info-container {
  690. width: 100%;
  691. .item-info {
  692. padding: 1.4vh 0;
  693. // padding: 22px 0;
  694. text-align: center;
  695. .name {
  696. font-size: 14px;
  697. }
  698. .value {
  699. margin-top: 15px;
  700. font-size: 20px;
  701. }
  702. }
  703. }
  704. .top-container {
  705. height: calc(50vh - 124px);
  706. .louyu {
  707. flex: 1;
  708. margin-right: 10px;
  709. flex-direction: column;
  710. justify-content: space-between;
  711. align-items: center;
  712. padding-bottom: 1.2vh;
  713. // padding-bottom: 30px;
  714. img {
  715. object-fit: contain;
  716. }
  717. .ant-descriptions {
  718. background-color: #ffffff;
  719. }
  720. }
  721. .sort-top5-container {
  722. flex: 1.2;
  723. .sort-top5 {
  724. height: calc(100% - 20px);
  725. padding-top: 16px;
  726. }
  727. }
  728. .info-total {
  729. flex: 1.5;
  730. padding-left: 10px;
  731. .yongdian-xuliang {
  732. height: 50%;
  733. }
  734. .co2-tianqi {
  735. height: calc(50% - 10px);
  736. margin-top: 10px;
  737. }
  738. .co2 {
  739. flex: 1;
  740. margin-right: 10px;
  741. }
  742. .tianqi {
  743. flex: 1;
  744. }
  745. }
  746. }
  747. .bottom-container {
  748. height: calc(50vh - 60px);
  749. margin-top: 10px;
  750. .xiaohao {
  751. flex: 1;
  752. margin-right: 10px;
  753. .zongbiao-chart {
  754. height: 90%;
  755. }
  756. .legend {
  757. height: calc(50% - 25px);
  758. display: flex;
  759. flex-direction: column;
  760. justify-content: space-around;
  761. // align-items: start;
  762. align-items: flex-start;
  763. padding: 20px;
  764. font-size: 14px;
  765. .item {
  766. width: 100%;
  767. align-items: center;
  768. justify-content: space-around;
  769. .example {
  770. width: 20px;
  771. height: 10px;
  772. background: #000;
  773. margin-right: 10px;
  774. }
  775. .text {
  776. min-width: 50px;
  777. }
  778. .number {
  779. min-width: 40px;
  780. // margin-right: 22px;
  781. }
  782. .pieValue {
  783. }
  784. }
  785. }
  786. }
  787. .qushi {
  788. flex: 2.7;
  789. .totalEle-trend {
  790. height: calc(100% - 25px);
  791. }
  792. }
  793. }
  794. }
  795. </style>