statistics.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910
  1. <template>
  2. <view>
  3. <!-- 导航栏 -->
  4. <view class="navbar">
  5. <view class="title">
  6. 能源中心
  7. </view>
  8. <view class="icon" @click="toDataMonitoringList">
  9. <image class="img" src="@/assets/img/riLine-equalizer-line.svg" mode=""></image>
  10. </view>
  11. </view>
  12. <!-- 标签 -->
  13. <view class="tabs-box" >
  14. <view class="tabs" v-if="companyList.length >2">
  15. <u-tabs :list="merchantList1" :is-scroll="false" active-color="#fff" inactive-color="#CCE2FF" bg-color="#1677FF"
  16. :current="current" @change="change"></u-tabs>
  17. </view>
  18. <view class="more" @click="popShow=true" v-if="companyList.length >2">
  19. <u-icon name="arrow-down" color="#fff" size="40"></u-icon>
  20. </view>
  21. </view>
  22. <!-- 标签弹出层 -->
  23. <u-popup v-model="popShow" duration="10" mode="top" :negative-top="88" border-radius="16">
  24. <view class="popup-tabs">
  25. <view class="tabs">
  26. <u-tabs :list="merchantList1" :is-scroll="false" :current="current" @change="change"></u-tabs>
  27. </view>
  28. <view class="more">
  29. <u-icon name="arrow-up" color="#777777" size="40" @click="popShow=false"></u-icon>
  30. </view>
  31. </view>
  32. <view class="tabs-options">
  33. <view class="item" v-for="(item, index) in merchantList2" :key="index"
  34. @click="merchantChange(item,index)">
  35. {{item.name}}
  36. </view>
  37. </view>
  38. </u-popup>
  39. <view class="main">
  40. <!-- 统计1 -->
  41. <view class="statistics-1">
  42. <view class="item" @click="toDataMonitoringList">
  43. <view class="item-top">
  44. <view class="img-box">
  45. <u-circle-progress active-color="#2979ff" :percent="0" width="88">
  46. </u-circle-progress>
  47. </view>
  48. <view class="number">
  49. <view class="normal">
  50. 正常:0台
  51. </view>
  52. <view class="abnormal">
  53. 异常:0台
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 累计 -->
  58. <view class="total">
  59. 本月累计报警 <text class="total-number">0</text> 次
  60. </view>
  61. </view>
  62. <view class="item" @click="toWorkOrderManagement()">
  63. <view class="item-top">
  64. <view class="img-box">
  65. <u-circle-progress active-color="#2979ff" :percent="0" width="88">
  66. </u-circle-progress>
  67. </view>
  68. <view class="number">
  69. <view class="normal">
  70. 未处理:0
  71. </view>
  72. <view class="abnormal">
  73. 已处理:0
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 累计 -->
  78. <view class="total">
  79. 本月累计工单 <text class="total-number">0</text> 条
  80. </view>
  81. </view>
  82. </view>
  83. <!-- 用电量 -->
  84. <view class="statistics-e statistics" v-if="codes.indexOf('reading') != -1">
  85. <view class="title">
  86. <view class="icon">
  87. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  88. </view>
  89. <view class="text">
  90. 用电量 (度)
  91. </view>
  92. <view class="change" @click="getPowerConsumption(1)">
  93. <image class="change-img" :class="pRotation ? 'rotation-img' : ''" src="@/assets/img/refresh-line.svg"
  94. mode=""></image>
  95. <text>换一批</text>
  96. </view>
  97. <view class="check-all" @click="toEquipmentElectricity">
  98. 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
  99. </view>
  100. </view>
  101. <view class="electricity">
  102. <view class="item" v-for="(item, index) in kWhList" :key="index"
  103. @click="toElectronicMonitoring(item)">
  104. <view class="equipment">
  105. <view class="equipment1">
  106. {{item.name}}
  107. </view>
  108. <view class="equipment2">
  109. {{item.companyName}}
  110. </view>
  111. </view>
  112. <view class="electricity">
  113. <view class="electricity-item">
  114. <view class="number">
  115. {{item.yesterdayKwh}}
  116. </view>
  117. <view class="date">
  118. 昨日
  119. </view>
  120. </view>
  121. <view class="electricity-item">
  122. <view class="number">
  123. {{item.thisMonthKwh}}
  124. </view>
  125. <view class="date">
  126. 本月
  127. </view>
  128. </view>
  129. <view class="electricity-item">
  130. <view class="number">
  131. {{item.lastMonthKwh}}
  132. </view>
  133. <view class="date">
  134. 上月
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 统计2 异常告警记录 -->
  142. <view class="statistics-2 statistics" v-if="false">
  143. <view class="title">
  144. <view class="icon">
  145. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  146. </view>
  147. <view class="text">
  148. 异常告警记录
  149. </view>
  150. <view class="check-all">
  151. 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
  152. </view>
  153. </view>
  154. <!-- 异常 -->
  155. <view class="abnormal-item" v-for="item in 3">
  156. <view class="item-title">
  157. <!-- <image class="img" src="@/assets/img/riFill-error-warning-fill 1.svg"></image> -->
  158. <view class="name">
  159. 温度异常
  160. </view>
  161. <view class="date">
  162. 2024-02-14 09:00:01
  163. </view>
  164. </view>
  165. <view class="item-value">
  166. <view class="value1">
  167. 荆鹏软件园01
  168. </view>
  169. <view class="value2">
  170. 荆鹏集团
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. <!-- 统计3 设备数据监测-->
  176. <view class="statistics-3 statistics" v-if="codes.indexOf('detector') != -1">
  177. <view class="title">
  178. <view class="icon">
  179. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  180. </view>
  181. <view class="text">
  182. 设备数据监测
  183. </view>
  184. <view class="change" @click="getEquipmentDataMonitoring(1)">
  185. <image class="change-img" :class="eRotation ? 'rotation-img' : ''" src="@/assets/img/refresh-line.svg"
  186. mode=""></image>
  187. <text>换一批</text>
  188. </view>
  189. <view class="check-all" @click="toDataMonitoringList">
  190. 查看全部<u-icon name="arrow-right" size="24" color="#838383"></u-icon>
  191. </view>
  192. </view>
  193. <view class="monitoring-item" v-for="(item, index) in deviceList" :key="index"
  194. @click="toElectronicMonitoring(item)">
  195. <view class="item-title">
  196. <view class="text1">
  197. {{item.name}}
  198. </view>
  199. <view class="text2">
  200. {{item.companyName}}
  201. </view>
  202. <view class="state">
  203. <view class="state1">
  204. <view class="icon">
  205. <image class="img" src="@/assets/img/antFill-alert.svg" mode=""></image>
  206. </view>
  207. {{item.temperatureStatus=='1' ? '正常' : '异常'}}
  208. </view>
  209. <view class="state2">
  210. <view class="icon">
  211. <image class="img" src="@/assets/img/smoke.svg" mode=""></image>
  212. </view>
  213. {{item.smokeStatus=='1' ? '正常' : '异常'}}
  214. </view>
  215. </view>
  216. </view>
  217. <!-- 监控信息 -->
  218. <view class="infos">
  219. <view class="infos-item">
  220. <view class="icon">
  221. <img src="../../assets/img/iconPark-electric-wave 1.svg" alt="" />
  222. </view>
  223. <view class="text">
  224. {{item.remoteMonitorRecord.dcaTotal.toFixed(2)}}A
  225. </view>
  226. </view>
  227. <view class="infos-item">
  228. <view class="icon">
  229. <img src="../../assets/img/voltage.svg" alt="" />
  230. </view>
  231. <view class="text">
  232. {{item.remoteMonitorRecord.dcvTop.toFixed(2)}}V
  233. </view>
  234. </view>
  235. <view class="infos-item">
  236. <view class="icon">
  237. <img src="../../assets/img/iconPark-thermometer.svg" alt="" />
  238. </view>
  239. <view class="text">
  240. {{item.remoteMonitorRecord.temperatureTop}}℃
  241. </view>
  242. </view>
  243. <view class="infos-item">
  244. <view class="icon">
  245. <img src="../../assets/img/power.svg" alt="" />
  246. </view>
  247. <view class="text">
  248. {{(item.remoteMonitorRecord.totalPower).toFixed(2)}}kW
  249. </view>
  250. </view>
  251. <view class="infos-item">
  252. <view class="icon">
  253. <img src="../../assets/img/powerFactor.svg" alt="" />
  254. </view>
  255. <view class="text">
  256. {{item.remoteMonitorRecord.averPowerFactor}} /
  257. {{item.remoteMonitorRecord.averPowerFactorHistory}}
  258. </view>
  259. </view>
  260. </view>
  261. </view>
  262. </view>
  263. </view>
  264. <energyCenterTabbar :current="0" v-if="0"></energyCenterTabbar>
  265. </view>
  266. </template>
  267. <script>
  268. import energyCenterTabbar from '@/components/energyCenterTabbar.vue'
  269. import * as echarts from 'echarts';
  270. import * as API from '@/apis/pagejs/energy/index.js'
  271. export default {
  272. components: {
  273. energyCenterTabbar
  274. },
  275. data() {
  276. return {
  277. companyId: '',
  278. pageIndexe: 1, // 设备数据检测
  279. totalPagee: 1,
  280. deviceList: [],
  281. pageIndexp: 1, // 用电量
  282. totalPagep: 1,
  283. kWhList: [],
  284. codes: '', // 判断:reading用电量 detector设备数据检测
  285. merchantList1: [], // 商户
  286. merchantList2: [],
  287. companyList: [],
  288. pRotation: false,
  289. eRotation: false,
  290. popShow: false,
  291. current: 0
  292. }
  293. },
  294. onReady() {
  295. this.getfindByOpenId();
  296. this.getPowerConsumption(0);
  297. this.getEquipmentDataMonitoring(0);
  298. this.getCompanyInfoList()
  299. },
  300. methods: {
  301. merchantChange(item,index) {
  302. var m = item;
  303. var n = this.merchantList1[this.current];
  304. this.merchantList1[this.current] = m;
  305. this.merchantList2[index] = n;
  306. this.companyId = item.id;
  307. this.getPowerConsumption(0);
  308. this.getEquipmentDataMonitoring(0);
  309. this.popShow = false;
  310. },
  311. // 单位
  312. getCompanyInfoList() {
  313. this.merchantList1 = [];
  314. this.merchantList2 = [];
  315. uni.showLoading({
  316. title: "加载中",
  317. mask: true,
  318. })
  319. API.deviceCompanyList().then((response) => {
  320. uni.hideLoading();
  321. this.companyList = response.data.companyInfoList;
  322. if(this.companyList.length >3) {
  323. this.merchantList1.push(this.companyList.slice(0, 3));
  324. this.merchantList2.push(this.companyList.slice(3));
  325. } else {
  326. this.merchantList1 = this.companyList;
  327. }
  328. this.merchantList1.unshift({id: '', name: '全部'});
  329. }).catch(error => {
  330. uni.showToast({
  331. title: error,
  332. icon: "none"
  333. })
  334. })
  335. },
  336. // 商户ID
  337. getfindByOpenId() {
  338. uni.showLoading({
  339. title: "加载中",
  340. mask: true,
  341. })
  342. API.findByOpenId({
  343. openId: this.carhelp.getOpenId()
  344. }).then((response) => {
  345. uni.hideLoading();
  346. this.codes = response.data.regUser.codes;
  347. }).catch(error => {
  348. uni.showToast({
  349. title: error,
  350. icon: "none"
  351. })
  352. })
  353. },
  354. // 设备数据监测
  355. getEquipmentDataMonitoring(pl) {
  356. this.eRotation = true;
  357. this.pageIndexe = this.pageIndexe + pl;
  358. if (this.pageIndexe > this.totalPagee) {
  359. this.pageIndexe = 1;
  360. }
  361. API.homePageDeviceData({
  362. pageIndex: this.pageIndexe,
  363. pageSize: 3,
  364. companyId: this.companyId
  365. }).then((response) => {
  366. uni.hideLoading();
  367. this.eRotation = false;
  368. this.deviceList = response.data.data;
  369. this.totalPagee = response.data.totalPage;
  370. }).catch(error => {
  371. uni.showToast({
  372. title: error,
  373. icon: "none"
  374. })
  375. })
  376. },
  377. // 异常告警记录
  378. getAbnormalAlarmRecord() {
  379. },
  380. // 用电量
  381. getPowerConsumption(pl) {
  382. this.pRotation = true;
  383. this.pageIndexp = this.pageIndexp + pl;
  384. if (this.pageIndexp > this.totalPagep) {
  385. this.pageIndexp = 1;
  386. }
  387. API.homePageKwh({
  388. pageIndex: this.pageIndexp,
  389. pageSize: 3,
  390. companyId: this.companyId
  391. }).then((response) => {
  392. uni.hideLoading();
  393. this.pRotation = false;
  394. this.kWhList = response.data.data;
  395. this.totalPagep = response.data.totalPage;
  396. }).catch(error => {
  397. uni.showToast({
  398. title: error,
  399. icon: "none"
  400. })
  401. })
  402. },
  403. // 累计工单
  404. getAccumulatedWorkOrders() {
  405. },
  406. // 累计报警
  407. getAccumulatedAlarms() {
  408. },
  409. change(index) {
  410. this.current = index;
  411. this.companyId = this.merchantList1[index].id;
  412. this.getPowerConsumption(0);
  413. this.getEquipmentDataMonitoring(0);
  414. },
  415. toDataMonitoringList() {
  416. return
  417. uni.navigateTo({
  418. url: '/pages/equipmentDataMonitoring/dataMonitoring-list'
  419. })
  420. },
  421. toWorkOrderManagement() {
  422. return
  423. uni.navigateTo({
  424. url: '/pages/workOrderManagement/workOrderManagement'
  425. })
  426. },
  427. toEquipmentElectricity() {
  428. return
  429. uni.navigateTo({
  430. url: '/pages/equipmentDataMonitoring/equipmentElectricity'
  431. })
  432. },
  433. toElectronicMonitoring(item) {
  434. return
  435. uni.navigateTo({
  436. url: '/pages/equipmentDataMonitoring/electronicMonitoring'
  437. })
  438. }
  439. }
  440. }
  441. </script>
  442. <style lang="scss" scoped>
  443. .rotation-img {
  444. animation: rotation 2s linear infinite;
  445. }
  446. @keyframes rotation {
  447. from {
  448. transform: rotate(0deg)
  449. }
  450. to {
  451. transform: rotate(360deg)
  452. }
  453. }
  454. page {
  455. padding-bottom: 200rpx;
  456. }
  457. /deep/.u-drawer-content {
  458. margin-top: 88rpx;
  459. }
  460. .popup-tabs {
  461. background-color: #fff;
  462. display: flex;
  463. align-items: center;
  464. justify-content: space-between;
  465. padding-top: 32rpx;
  466. padding-right: 32rpx;
  467. color: rgba(51, 51, 51, 1);
  468. font-size: 32rpx;
  469. .tabs {
  470. width: 80%;
  471. }
  472. }
  473. .tabs-options {
  474. display: flex;
  475. padding: 24rpx 32rpx 0;
  476. flex-wrap: wrap;
  477. .item {
  478. width: 25%;
  479. margin-bottom: 40rpx;
  480. }
  481. }
  482. // 导航栏
  483. .navbar {
  484. background-color: rgba(22, 119, 255, 1);
  485. color: #fff;
  486. line-height: 88rpx;
  487. display: flex;
  488. justify-content: space-between;
  489. align-items: center;
  490. padding: 0 32rpx;
  491. color: rgba(255, 255, 255, 1);
  492. font-size: 36rpx;
  493. position: fixed;
  494. left: 0;
  495. right: 0;
  496. top: 0;
  497. z-index: 999999;
  498. .img {
  499. width: 48rpx;
  500. height: 48rpx;
  501. vertical-align: middle;
  502. }
  503. }
  504. // 标签
  505. .tabs-box {
  506. padding: 32rpx 0;
  507. margin-top: 88rpx;
  508. padding-right: 32rpx;
  509. background-color: rgba(22, 119, 255, 1);
  510. display: flex;
  511. align-items: center;
  512. justify-content: space-between;
  513. .tabs {
  514. width: 80%;
  515. }
  516. }
  517. .main {
  518. border-radius: 16px 16px 0px 0px;
  519. background: linear-gradient(180deg, rgba(242, 244, 246, 1) 61%, rgba(255, 255, 255, 0) 100%);
  520. margin-top: -24rpx;
  521. padding: 32rpx;
  522. .statistics {
  523. border-radius: 8px;
  524. background-color: rgba(255, 255, 255, 1);
  525. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  526. margin-top: 24rpx;
  527. padding: 40rpx;
  528. .title {
  529. display: flex;
  530. align-items: center;
  531. margin-bottom: 20rpx;
  532. .img {
  533. width: 36rpx;
  534. height: 36rpx;
  535. vertical-align: middle;
  536. }
  537. .change {
  538. display: flex;
  539. align-items: center;
  540. .change-img {
  541. width: 32rpx;
  542. height: 32rpx;
  543. vertical-align: middle;
  544. }
  545. text {
  546. margin-left: 8rpx;
  547. }
  548. }
  549. .text {
  550. color: rgba(16, 16, 16, 1);
  551. font-size: 36rpx;
  552. margin-left: 16rpx;
  553. font-weight: bold;
  554. }
  555. .change {
  556. margin-left: 16rpx;
  557. font-size: 24rpx;
  558. color: #838383;
  559. }
  560. .check-all {
  561. margin-left: auto;
  562. color: rgba(131, 131, 131, 1);
  563. font-size: 24rpx;
  564. }
  565. }
  566. }
  567. // 用电量
  568. .statistics-e {
  569. .electricity {
  570. background-color: #fff;
  571. .item {
  572. padding: 16rpx 0;
  573. display: flex;
  574. align-items: center;
  575. border-bottom: 1px solid rgba(245, 245, 245, 1);
  576. .equipment {
  577. width: 30%;
  578. .equipment1 {
  579. color: rgba(51, 51, 51, 1);
  580. font-size: 32rpx;
  581. font-weight: bold;
  582. }
  583. .equipment2 {
  584. color: rgba(119, 119, 119, 1);
  585. }
  586. }
  587. .electricity {
  588. display: flex;
  589. justify-content: space-between;
  590. flex: 1;
  591. margin-left: 48rpx;
  592. text-align: center;
  593. .electricity-item {
  594. .number {
  595. color: rgba(51, 51, 51, 1);
  596. font-size: 32rpx;
  597. font-weight: bold;
  598. }
  599. .date {
  600. color: rgba(119, 119, 119, 1);
  601. margin-top: 4rpx;
  602. }
  603. }
  604. }
  605. }
  606. }
  607. }
  608. // 统计1
  609. .statistics-1 {
  610. display: flex;
  611. align-items: center;
  612. justify-content: space-between;
  613. .item {
  614. width: 330rpx;
  615. padding: 24rpx;
  616. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  617. border-radius: 8px;
  618. background-color: rgba(255, 255, 255, 1);
  619. .item-top {
  620. display: flex;
  621. align-items: center;
  622. .img {
  623. width: 88rpx;
  624. height: 88rpx;
  625. margin-right: 24rpx;
  626. vertical-align: middle;
  627. }
  628. .number {
  629. color: rgba(51, 51, 51, 1);
  630. font-size: 32rpx;
  631. .normal {
  632. margin-bottom: 12rpx;
  633. }
  634. }
  635. }
  636. .total {
  637. margin-top: 28rpx;
  638. text-align: center;
  639. color: rgba(119, 119, 119, 1);
  640. }
  641. .total-number {
  642. color: #EE3138;
  643. margin: 0 8rpx;
  644. }
  645. }
  646. }
  647. // 统计2异常报警记录
  648. .statistics-2 {
  649. .abnormal-item {
  650. display: flex;
  651. justify-content: space-between;
  652. align-items: center;
  653. padding: 16rpx;
  654. border-bottom: 1px solid rgba(245, 245, 245, 1);
  655. .item-title {
  656. color: rgba(51, 51, 51, 1);
  657. .img {
  658. width: 32rpx;
  659. height: 32rpx;
  660. margin-right: 8rpx;
  661. }
  662. .name {
  663. color: rgba(51, 51, 51, 1);
  664. }
  665. .date {
  666. color: rgba(119, 119, 119, 1);
  667. font-size: 24rpx;
  668. }
  669. }
  670. .item-value {
  671. text-align: right;
  672. .value1 {
  673. font-weight: bold;
  674. color: rgba(51, 51, 51, 1);
  675. }
  676. .value2 {
  677. color: rgba(119, 119, 119, 1);
  678. font-size: 24rpx;
  679. }
  680. }
  681. }
  682. }
  683. // 统计3设备实时监控
  684. .statistics-3 {
  685. .monitoring-item {
  686. padding: 16rpx 0;
  687. border-bottom: 1px solid rgba(245, 245, 245, 1);
  688. .item-title {
  689. display: flex;
  690. align-items: center;
  691. .text1 {
  692. color: rgba(51, 51, 51, 1);
  693. }
  694. .text2 {
  695. color: rgba(119, 119, 119, 1);
  696. font-size: 24rpx;
  697. margin-left: 8rpx;
  698. }
  699. }
  700. .state {
  701. margin-left: auto;
  702. display: flex;
  703. .state1,
  704. .state2 {
  705. display: flex;
  706. align-items: center;
  707. margin-left: 24rpx;
  708. }
  709. .img {
  710. width: 32rpx;
  711. height: 32rpx;
  712. vertical-align: middle;
  713. margin-right: 8rpx;
  714. }
  715. }
  716. // 监控信息
  717. .infos {
  718. margin-top: 8rpx;
  719. display: flex;
  720. align-items: center;
  721. justify-content: space-between;
  722. .infos-item {
  723. display: flex;
  724. align-items: center;
  725. }
  726. .text {
  727. margin-left: 4rpx;
  728. }
  729. }
  730. }
  731. }
  732. // 设备状态
  733. .statistics-4 {
  734. .chat-img {
  735. width: 100%;
  736. height: 620rpx;
  737. }
  738. }
  739. // 故障类型
  740. .statistics-5,
  741. .statistics-6 {
  742. .chat-img {
  743. width: 100%;
  744. height: 410rpx;
  745. }
  746. }
  747. // 异常设备排名
  748. .statistics-ranking {
  749. .total {
  750. color: rgba(16, 16, 16, 1);
  751. text {
  752. color: #1677FF;
  753. padding: 0 8rpx;
  754. }
  755. }
  756. .ranking-main {
  757. margin-top: 48rpx;
  758. border-radius: 16px;
  759. background-color: #fff;
  760. .item {
  761. display: flex;
  762. align-items: center;
  763. margin-bottom: 32rpx;
  764. .ranking {
  765. color: rgba(16, 16, 16, 1);
  766. font-weight: bold;
  767. }
  768. .icon {
  769. width: 72rpx;
  770. height: 72rpx;
  771. border-radius: 4px;
  772. background-color: rgba(219, 234, 255, 1);
  773. display: flex;
  774. align-items: center;
  775. justify-content: center;
  776. margin-left: 24rpx;
  777. .img {
  778. width: 48rpx;
  779. height: 48rpx;
  780. }
  781. }
  782. .name {
  783. margin-left: 16rpx;
  784. .name1 {
  785. color: rgba(51, 51, 51, 1);
  786. font-weight: bold;
  787. }
  788. .name2 {
  789. color: rgba(119, 119, 119, 1);
  790. font-size: 24rpx;
  791. margin-top: 4rpx;
  792. }
  793. }
  794. .time {
  795. color: rgba(16, 16, 16, 1);
  796. margin-left: auto;
  797. font-weight: bold;
  798. }
  799. }
  800. }
  801. // 查看全部排名
  802. .check-all {
  803. text-align: center;
  804. color: rgba(119, 119, 119, 1);
  805. font-size: 12px;
  806. }
  807. }
  808. }
  809. </style>