statistics.vue 21 KB

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