statistics.vue 20 KB

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