statistics.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. <template>
  2. <view>
  3. <!-- 导航栏 -->
  4. <view class="navbar">
  5. <view class="title">
  6. 能源中心 (电力110)
  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 != 0">
  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 != 0">
  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="8/15*100" width="88">
  46. </u-circle-progress>
  47. </view>
  48. <view class="number">
  49. <view class="normal">
  50. 正常:8台
  51. </view>
  52. <view class="abnormal">
  53. 异常:7台
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 累计 -->
  58. <view class="total">
  59. 本月累计报警 <text class="total-number">12</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="12/20*100" width="88">
  66. </u-circle-progress>
  67. </view>
  68. <view class="number">
  69. <view class="normal">
  70. 未处理:8
  71. </view>
  72. <view class="abnormal">
  73. 已处理:12
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 累计 -->
  78. <view class="total">
  79. 本月累计工单 <text class="total-number">20</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">
  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"></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. },
  307. // 单位
  308. getCompanyInfoList() {
  309. this.merchantList1 = [];
  310. this.merchantList2 = [];
  311. uni.showLoading({
  312. title: "加载中",
  313. mask: true,
  314. })
  315. API.deviceCompanyList().then((response) => {
  316. uni.hideLoading();
  317. this.companyList = response.data.companyInfoList;
  318. if(this.companyList.length >3) {
  319. this.merchantList1.push(this.companyList.slice(0, 3));
  320. this.merchantList2.push(this.companyList.slice(3));
  321. } else {
  322. this.merchantList1 = this.companyList;
  323. }
  324. this.merchantList1.unshift({id: '', name: '全部'});
  325. }).catch(error => {
  326. uni.showToast({
  327. title: error,
  328. icon: "none"
  329. })
  330. })
  331. },
  332. // 商户ID
  333. getfindByOpenId() {
  334. uni.showLoading({
  335. title: "加载中",
  336. mask: true,
  337. })
  338. API.findByOpenId({
  339. openId: this.carhelp.getOpenId()
  340. }).then((response) => {
  341. uni.hideLoading();
  342. this.codes = response.data.regUser.codes;
  343. }).catch(error => {
  344. uni.showToast({
  345. title: error,
  346. icon: "none"
  347. })
  348. })
  349. },
  350. // 设备数据监测
  351. getEquipmentDataMonitoring(pl) {
  352. this.eRotation = true;
  353. this.pageIndexe = this.pageIndexe + pl;
  354. if (this.pageIndexe > this.totalPagee) {
  355. this.pageIndexe = 1;
  356. }
  357. API.homePageDeviceData({
  358. pageIndex: this.pageIndexe,
  359. pageSize: 3,
  360. companyId: this.companyId
  361. }).then((response) => {
  362. uni.hideLoading();
  363. this.eRotation = false;
  364. this.deviceList = response.data.data;
  365. this.totalPagee = response.data.totalPage;
  366. }).catch(error => {
  367. uni.showToast({
  368. title: error,
  369. icon: "none"
  370. })
  371. })
  372. },
  373. // 异常告警记录
  374. getAbnormalAlarmRecord() {
  375. },
  376. // 用电量
  377. getPowerConsumption(pl) {
  378. this.pRotation = true;
  379. this.pageIndexp = this.pageIndexp + pl;
  380. if (this.pageIndexp > this.totalPagep) {
  381. this.pageIndexp = 1;
  382. }
  383. API.homePageKwh({
  384. pageIndex: this.pageIndexp,
  385. pageSize: 3,
  386. companyId: this.companyId
  387. }).then((response) => {
  388. uni.hideLoading();
  389. this.pRotation = false;
  390. this.kWhList = response.data.data;
  391. this.totalPagep = response.data.totalPage;
  392. }).catch(error => {
  393. uni.showToast({
  394. title: error,
  395. icon: "none"
  396. })
  397. })
  398. },
  399. // 累计工单
  400. getAccumulatedWorkOrders() {
  401. },
  402. // 累计报警
  403. getAccumulatedAlarms() {
  404. },
  405. change(index) {
  406. this.current = index;
  407. this.companyId = this.merchantList1[index].id;
  408. this.getPowerConsumption(0);
  409. this.getEquipmentDataMonitoring(0);
  410. },
  411. toDataMonitoringList() {
  412. uni.navigateTo({
  413. url: '/pages/equipmentDataMonitoring/dataMonitoring-list'
  414. })
  415. },
  416. toWorkOrderManagement() {
  417. uni.navigateTo({
  418. url: '/pages/workOrderManagement/workOrderManagement'
  419. })
  420. },
  421. toEquipmentElectricity() {
  422. uni.navigateTo({
  423. url: '/pages/equipmentDataMonitoring/equipmentElectricity'
  424. })
  425. },
  426. toElectronicMonitoring(item) {
  427. uni.navigateTo({
  428. url: '/pages/equipmentDataMonitoring/electronicMonitoring'
  429. })
  430. }
  431. }
  432. }
  433. </script>
  434. <style lang="scss" scoped>
  435. .rotation-img {
  436. animation: rotation 2s linear infinite;
  437. }
  438. @keyframes rotation {
  439. from {
  440. transform: rotate(0deg)
  441. }
  442. to {
  443. transform: rotate(360deg)
  444. }
  445. }
  446. page {
  447. padding-bottom: 200rpx;
  448. }
  449. /deep/.u-drawer-content {
  450. margin-top: 88rpx;
  451. }
  452. .popup-tabs {
  453. background-color: #fff;
  454. display: flex;
  455. align-items: center;
  456. justify-content: space-between;
  457. padding-top: 32rpx;
  458. padding-right: 32rpx;
  459. color: rgba(51, 51, 51, 1);
  460. font-size: 32rpx;
  461. .tabs {
  462. width: 80%;
  463. }
  464. }
  465. .tabs-options {
  466. display: flex;
  467. padding: 24rpx 32rpx 0;
  468. flex-wrap: wrap;
  469. .item {
  470. width: 25%;
  471. margin-bottom: 40rpx;
  472. }
  473. }
  474. // 导航栏
  475. .navbar {
  476. background-color: rgba(22, 119, 255, 1);
  477. color: #fff;
  478. line-height: 88rpx;
  479. display: flex;
  480. justify-content: space-between;
  481. align-items: center;
  482. padding: 0 32rpx;
  483. color: rgba(255, 255, 255, 1);
  484. font-size: 36rpx;
  485. position: fixed;
  486. left: 0;
  487. right: 0;
  488. top: 0;
  489. z-index: 999999;
  490. .img {
  491. width: 48rpx;
  492. height: 48rpx;
  493. vertical-align: middle;
  494. }
  495. }
  496. // 标签
  497. .tabs-box {
  498. padding: 32rpx 0;
  499. margin-top: 88rpx;
  500. padding-right: 32rpx;
  501. background-color: rgba(22, 119, 255, 1);
  502. display: flex;
  503. align-items: center;
  504. justify-content: space-between;
  505. .tabs {
  506. width: 80%;
  507. }
  508. }
  509. .main {
  510. border-radius: 16px 16px 0px 0px;
  511. background: linear-gradient(180deg, rgba(242, 244, 246, 1) 61%, rgba(255, 255, 255, 0) 100%);
  512. margin-top: -24rpx;
  513. padding: 32rpx;
  514. .statistics {
  515. border-radius: 8px;
  516. background-color: rgba(255, 255, 255, 1);
  517. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  518. margin-top: 24rpx;
  519. padding: 40rpx;
  520. .title {
  521. display: flex;
  522. align-items: center;
  523. margin-bottom: 20rpx;
  524. .img {
  525. width: 36rpx;
  526. height: 36rpx;
  527. vertical-align: middle;
  528. }
  529. .change {
  530. display: flex;
  531. align-items: center;
  532. .change-img {
  533. width: 32rpx;
  534. height: 32rpx;
  535. vertical-align: middle;
  536. }
  537. text {
  538. margin-left: 8rpx;
  539. }
  540. }
  541. .text {
  542. color: rgba(16, 16, 16, 1);
  543. font-size: 36rpx;
  544. margin-left: 16rpx;
  545. font-weight: bold;
  546. }
  547. .change {
  548. margin-left: 16rpx;
  549. font-size: 24rpx;
  550. color: #838383;
  551. }
  552. .check-all {
  553. margin-left: auto;
  554. color: rgba(131, 131, 131, 1);
  555. font-size: 24rpx;
  556. }
  557. }
  558. }
  559. // 用电量
  560. .statistics-e {
  561. .electricity {
  562. background-color: #fff;
  563. .item {
  564. padding: 16rpx 0;
  565. display: flex;
  566. align-items: center;
  567. border-bottom: 1px solid rgba(245, 245, 245, 1);
  568. .equipment {
  569. width: 30%;
  570. .equipment1 {
  571. color: rgba(51, 51, 51, 1);
  572. font-size: 32rpx;
  573. font-weight: bold;
  574. }
  575. .equipment2 {
  576. color: rgba(119, 119, 119, 1);
  577. }
  578. }
  579. .electricity {
  580. display: flex;
  581. justify-content: space-between;
  582. flex: 1;
  583. margin-left: 48rpx;
  584. text-align: center;
  585. .electricity-item {
  586. .number {
  587. color: rgba(51, 51, 51, 1);
  588. font-size: 32rpx;
  589. font-weight: bold;
  590. }
  591. .date {
  592. color: rgba(119, 119, 119, 1);
  593. margin-top: 4rpx;
  594. }
  595. }
  596. }
  597. }
  598. }
  599. }
  600. // 统计1
  601. .statistics-1 {
  602. display: flex;
  603. align-items: center;
  604. justify-content: space-between;
  605. .item {
  606. width: 330rpx;
  607. padding: 24rpx;
  608. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  609. border-radius: 8px;
  610. background-color: rgba(255, 255, 255, 1);
  611. .item-top {
  612. display: flex;
  613. align-items: center;
  614. .img {
  615. width: 88rpx;
  616. height: 88rpx;
  617. margin-right: 24rpx;
  618. vertical-align: middle;
  619. }
  620. .number {
  621. color: rgba(51, 51, 51, 1);
  622. font-size: 32rpx;
  623. .normal {
  624. margin-bottom: 12rpx;
  625. }
  626. }
  627. }
  628. .total {
  629. margin-top: 28rpx;
  630. text-align: center;
  631. color: rgba(119, 119, 119, 1);
  632. }
  633. .total-number {
  634. color: #EE3138;
  635. margin: 0 8rpx;
  636. }
  637. }
  638. }
  639. // 统计2异常报警记录
  640. .statistics-2 {
  641. .abnormal-item {
  642. display: flex;
  643. justify-content: space-between;
  644. align-items: center;
  645. padding: 16rpx;
  646. border-bottom: 1px solid rgba(245, 245, 245, 1);
  647. .item-title {
  648. color: rgba(51, 51, 51, 1);
  649. .img {
  650. width: 32rpx;
  651. height: 32rpx;
  652. margin-right: 8rpx;
  653. }
  654. .name {
  655. color: rgba(51, 51, 51, 1);
  656. }
  657. .date {
  658. color: rgba(119, 119, 119, 1);
  659. font-size: 24rpx;
  660. }
  661. }
  662. .item-value {
  663. text-align: right;
  664. .value1 {
  665. font-weight: bold;
  666. color: rgba(51, 51, 51, 1);
  667. }
  668. .value2 {
  669. color: rgba(119, 119, 119, 1);
  670. font-size: 24rpx;
  671. }
  672. }
  673. }
  674. }
  675. // 统计3设备实时监控
  676. .statistics-3 {
  677. .monitoring-item {
  678. padding: 16rpx 0;
  679. border-bottom: 1px solid rgba(245, 245, 245, 1);
  680. .item-title {
  681. display: flex;
  682. align-items: center;
  683. .text1 {
  684. color: rgba(51, 51, 51, 1);
  685. }
  686. .text2 {
  687. color: rgba(119, 119, 119, 1);
  688. font-size: 24rpx;
  689. margin-left: 8rpx;
  690. }
  691. }
  692. .state {
  693. margin-left: auto;
  694. display: flex;
  695. .state1,
  696. .state2 {
  697. display: flex;
  698. align-items: center;
  699. margin-left: 24rpx;
  700. }
  701. .img {
  702. width: 32rpx;
  703. height: 32rpx;
  704. vertical-align: middle;
  705. margin-right: 8rpx;
  706. }
  707. }
  708. // 监控信息
  709. .infos {
  710. margin-top: 8rpx;
  711. display: flex;
  712. align-items: center;
  713. justify-content: space-between;
  714. .infos-item {
  715. display: flex;
  716. align-items: center;
  717. }
  718. .text {
  719. margin-left: 4rpx;
  720. }
  721. }
  722. }
  723. }
  724. // 设备状态
  725. .statistics-4 {
  726. .chat-img {
  727. width: 100%;
  728. height: 620rpx;
  729. }
  730. }
  731. // 故障类型
  732. .statistics-5,
  733. .statistics-6 {
  734. .chat-img {
  735. width: 100%;
  736. height: 410rpx;
  737. }
  738. }
  739. // 异常设备排名
  740. .statistics-ranking {
  741. .total {
  742. color: rgba(16, 16, 16, 1);
  743. text {
  744. color: #1677FF;
  745. padding: 0 8rpx;
  746. }
  747. }
  748. .ranking-main {
  749. margin-top: 48rpx;
  750. border-radius: 16px;
  751. background-color: #fff;
  752. .item {
  753. display: flex;
  754. align-items: center;
  755. margin-bottom: 32rpx;
  756. .ranking {
  757. color: rgba(16, 16, 16, 1);
  758. font-weight: bold;
  759. }
  760. .icon {
  761. width: 72rpx;
  762. height: 72rpx;
  763. border-radius: 4px;
  764. background-color: rgba(219, 234, 255, 1);
  765. display: flex;
  766. align-items: center;
  767. justify-content: center;
  768. margin-left: 24rpx;
  769. .img {
  770. width: 48rpx;
  771. height: 48rpx;
  772. }
  773. }
  774. .name {
  775. margin-left: 16rpx;
  776. .name1 {
  777. color: rgba(51, 51, 51, 1);
  778. font-weight: bold;
  779. }
  780. .name2 {
  781. color: rgba(119, 119, 119, 1);
  782. font-size: 24rpx;
  783. margin-top: 4rpx;
  784. }
  785. }
  786. .time {
  787. color: rgba(16, 16, 16, 1);
  788. margin-left: auto;
  789. font-weight: bold;
  790. }
  791. }
  792. }
  793. // 查看全部排名
  794. .check-all {
  795. text-align: center;
  796. color: rgba(119, 119, 119, 1);
  797. font-size: 12px;
  798. }
  799. }
  800. }
  801. </style>