electronicMonitoring.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330
  1. <template>
  2. <view>
  3. <view class="background">
  4. <!-- 设备选择器 -->
  5. <!-- <u-picker title="设备选择" v-model="equipmentShow"
  6. mode="multiSelector" :default-selector='[0, 1]' :range="multiSelector">
  7. </u-picker> -->
  8. <u-picker v-model="tabsFrom.show1" mode="selector" :range="tabsFrom.selector1" range-key="label"
  9. @confirm="selector1confirm"></u-picker>
  10. <u-select v-model="equipmentShow" mode="mutil-column-auto" :list="equipmentList" @confirm="confirm">
  11. </u-select>
  12. <!-- 日期选择器 -->
  13. <u-picker-select title="日期选择" v-model="tabsFrom.show2" :defaultTime="tabsFrom.show2Index" :endYear="endYear"
  14. mode="time" :params="params" @confirm="selector2confirm" @reset="selector2reset"></u-picker-select>
  15. <view class="navbar-c">
  16. <view class="back" @click="backDataMonitoringList">
  17. <u-icon name="arrow-left" color="#fff" size="36"></u-icon>
  18. </view>
  19. <view class="title">
  20. {{tabsFrom.title}}
  21. <!-- <u-icon name="arrow-down" color="#fff" size="24" @click="equipmentShow=true"></u-icon> -->
  22. <u-icon name="arrow-down" color="#fff" size="24" @click="tabsFrom.show1=true"></u-icon>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 用电量 -->
  27. <view class="electricity-consumption">
  28. <view class="title">
  29. 用电量统计 (度)
  30. </view>
  31. <view class="degree">
  32. <view class="item">
  33. <view class="item-text">
  34. 百万
  35. </view>
  36. <view class="item-number" v-text="showTop[0]">
  37. 0
  38. </view>
  39. </view>
  40. <view class="item">
  41. <view class="item-text">
  42. 拾万
  43. </view>
  44. <view class="item-number" v-text="showTop[1]">
  45. 0
  46. </view>
  47. </view>
  48. <view class="item">
  49. <view class="item-text">
  50. </view>
  51. <view class="item-number" v-text="showTop[2]">
  52. 0
  53. </view>
  54. </view>
  55. <view class="item">
  56. <view class="item-text">
  57. </view>
  58. <view class="item-number" v-text="showTop[3]">
  59. 0
  60. </view>
  61. </view>
  62. <view class="item">
  63. <view class="item-text">
  64. </view>
  65. <view class="item-number" v-text="showTop[4]">
  66. 0
  67. </view>
  68. </view>
  69. <view class="item">
  70. <view class="item-text">
  71. </view>
  72. <view class="item-number" v-text="showTop[5]">
  73. 7
  74. </view>
  75. </view>
  76. <view class="item">
  77. <view class="item-text">
  78. 1
  79. </view>
  80. <view class="item-number" v-text="showTop[6]">
  81. 7
  82. </view>
  83. </view>
  84. <view class="item">
  85. <view class="item-text">
  86. 0.1
  87. </view>
  88. <view class="item-number decimal" v-text="showTop[7]">
  89. 7
  90. </view>
  91. </view>
  92. </view>
  93. <view class="radio">
  94. <u-radio-group v-model="value" @change="radioGroupChange">
  95. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.id"
  96. :disabled="item.disabled">
  97. {{item.name}}
  98. </u-radio>
  99. </u-radio-group>
  100. </view>
  101. </view>
  102. <!-- 各时段用电量 -->
  103. <view class="electricity-chart">
  104. <view class="title">
  105. <view class="icon">
  106. </view>
  107. <view class="text">
  108. 各时段用电量 (度)
  109. </view>
  110. <view class="more" @click="tabsFrom.show2=true,params.day=true">
  111. {{queryDay}}<u-icon name="arrow-down"></u-icon>
  112. </view>
  113. </view>
  114. <view class="chart">
  115. <view id="barEcharts" style="min-height:440rpx;">
  116. </view>
  117. <view style="text-align: center;background: white;">当日电量合计:{{sumQuantity}}度</view>
  118. </view>
  119. </view>
  120. <!-- 异常波动 -->
  121. <view class="abnormal" v-if="false">
  122. <view class="headline">
  123. <view class="title">
  124. <view class="icon">
  125. </view>
  126. <view class="text">
  127. 异常告警
  128. </view>
  129. </view>
  130. <view class="more">
  131. 查看全部
  132. <u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  133. </view>
  134. </view>
  135. <view class="details">
  136. <view class="item">
  137. <view class="name">
  138. 温度异常告警
  139. </view>
  140. <view class="time">
  141. 2024-01-25 15:00:00
  142. </view>
  143. </view>
  144. <view class="item">
  145. <view class="name">
  146. 三厢功率因数异常告警
  147. </view>
  148. <view class="time">
  149. 2024-01-05 20:00:00
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. <!-- 能源监测 -->
  155. <view class="energy-inspection" v-if="false">
  156. <view class="title">
  157. <view class="icon">
  158. </view>
  159. <view class="text">
  160. 能源监测
  161. </view>
  162. </view>
  163. <view class="grid">
  164. <u-grid :col="3" :border="false">
  165. <u-grid-item>
  166. <view class="icon icon1">
  167. <image class="img" src="@/assets/img/Image@1.png" mode=""></image>
  168. </view>
  169. <view class="grid-text">三相电流</view>
  170. </u-grid-item>
  171. <u-grid-item>
  172. <view class="icon icon2">
  173. <image class="img" src="@/assets/img/Image@2.png" mode=""></image>
  174. </view>
  175. <view class="grid-text">三相电压</view>
  176. </u-grid-item>
  177. <u-grid-item>
  178. <view class="icon icon3">
  179. <image class="img" src="@/assets/img/Image@3.png" mode=""></image>
  180. </view>
  181. <view class="grid-text">三相温度</view>
  182. </u-grid-item>
  183. <u-grid-item>
  184. <view class="icon icon4">
  185. <image class="img" src="@/assets/img/Image@4.png" mode=""></image>
  186. </view>
  187. <view class="grid-text">三相有功功率</view>
  188. </u-grid-item>
  189. <u-grid-item>
  190. <view class="icon icon5">
  191. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  192. </view>
  193. <view class="grid-text">三相功率因数</view>
  194. </u-grid-item>
  195. <u-grid-item>
  196. <view class="icon icon6">
  197. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  198. </view>
  199. <view class="grid-text">平均功率因数</view>
  200. </u-grid-item>
  201. </u-grid>
  202. </view>
  203. </view>
  204. <!-- 数据分析 -->
  205. <view class="data-analysis" v-if="false">
  206. <view class="title">
  207. <view class="icon">
  208. </view>
  209. <view class="text">
  210. 数据分析
  211. </view>
  212. </view>
  213. <view class="grid">
  214. <u-grid :col="3" :border="false">
  215. <u-grid-item>
  216. <view class="icon icon7">
  217. <image class="img" src="@/assets/img/Image@7.png" mode=""></image>
  218. </view>
  219. <view class="grid-text">同比分析</view>
  220. </u-grid-item>
  221. <u-grid-item>
  222. <view class="icon icon8">
  223. <image class="img" src="@/assets/img/Image@8.png" mode=""></image>
  224. </view>
  225. <view class="grid-text">环比分析</view>
  226. </u-grid-item>
  227. <u-grid-item>
  228. <view class="icon icon9">
  229. <image class="img" src="@/assets/img/Image@9.svg" mode=""></image>
  230. </view>
  231. <view class="grid-text">用电统计</view>
  232. </u-grid-item>
  233. </u-grid>
  234. </view>
  235. </view>
  236. <!-- 设备信息 -->
  237. <view class="equipment-information" v-if="false">
  238. <view class="title">
  239. <view class="icon">
  240. </view>
  241. <view class="text">
  242. 设备信息
  243. </view>
  244. <view class="more" @click="equipmentInfosShow=true">
  245. 查看全部<u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  246. </view>
  247. </view>
  248. <view class="infos">
  249. <view class="item">
  250. <view class="item-title">
  251. 类型
  252. </view>
  253. <view class="item-value">
  254. 变压器
  255. </view>
  256. </view>
  257. <view class="border">
  258. </view>
  259. <view class="item">
  260. <view class="item-title">
  261. 设备编号
  262. </view>
  263. <view class="item-value">
  264. SN9015001
  265. </view>
  266. </view>
  267. <view class="border">
  268. </view>
  269. <view class="item">
  270. <view class="item-title">
  271. 上次故障时间
  272. </view>
  273. <view class="item-value">
  274. 2024-02-14
  275. </view>
  276. </view>
  277. </view>
  278. </view>
  279. <!-- 设备信息弹窗 -->
  280. <view class="equipment-popup">
  281. <u-popup v-model="equipmentInfosShow" mode="bottom" border-radius="12">
  282. <view class="content">
  283. <view class="headline">
  284. 设备信息
  285. </view>
  286. <view class="infos">
  287. <view class="item">
  288. <view class="item-title">
  289. 类型
  290. </view>
  291. <view class="item-value">
  292. 变压器
  293. </view>
  294. </view>
  295. <view class="item">
  296. <view class="item-title">
  297. 编号
  298. </view>
  299. <view class="item-value">
  300. SN9015001
  301. </view>
  302. </view>
  303. <view class="item">
  304. <view class="item-title">
  305. 所属公司
  306. </view>
  307. <view class="item-value">
  308. 荆鹏集团
  309. </view>
  310. </view>
  311. <view class="item">
  312. <view class="item-title">
  313. 地址
  314. </view>
  315. <view class="item-value">
  316. 荆州市沙市区江津东路155号
  317. </view>
  318. </view>
  319. <view class="item">
  320. <view class="item-title">
  321. 上线时间
  322. </view>
  323. <view class="item-value">
  324. 2024-01-01
  325. </view>
  326. </view>
  327. <view class="item">
  328. <view class="item-title">
  329. 上次故障时间
  330. </view>
  331. <view class="item-value">
  332. 2024-02-14
  333. </view>
  334. </view>
  335. </view>
  336. <button class="get" @click="equipmentInfosShow=false">知道了</button>
  337. </view>
  338. </u-popup>
  339. </view>
  340. <!-- 故障上报 -->
  341. <view class="create-order" v-if="false">
  342. <view class="img-box">
  343. <image class="img" src="@/assets/img/fas fa-exclamation-triangle Copy 2@3x.png" mode=""></image>
  344. </view>
  345. <view class="text">
  346. 故障上报
  347. </view>
  348. </view>
  349. </view>
  350. </template>
  351. <script>
  352. import {
  353. parseUnixTime,
  354. beforeTimeStamp,
  355. getWeek
  356. } from '@/apis/utils'
  357. import * as echarts from 'echarts';
  358. import * as API from '@/apis/pagejs/energy/index.js'
  359. export default {
  360. data() {
  361. return {
  362. sumQuantity: 0,
  363. equipmentInfosShow: false,
  364. kWhList: [],
  365. queryDay: '',
  366. showTop: [0, 0, 0, 0, 0, 0, 0, 0],
  367. FormData: {
  368. queryDate: '',
  369. meterId: '',
  370. type: 0
  371. },
  372. FormData2: {
  373. queryDate: '',
  374. meterId: ''
  375. },
  376. myChart: null,
  377. endYear: '',
  378. equipmentShow: false,
  379. multiSelector: [
  380. ['荆鹏集团', '玉桥公园', '全季酒店'],
  381. ['荆鹏软件园01', '青少年宫02', '御河社区03', '荆州院子04']
  382. ],
  383. equipmentList: [{
  384. value: 1,
  385. label: '荆鹏集团',
  386. children: [{
  387. value: 2,
  388. label: '荆鹏集团01',
  389. },
  390. {
  391. value: 3,
  392. label: '荆鹏集团02',
  393. },
  394. {
  395. value: 4,
  396. label: '荆鹏集团03',
  397. }
  398. ]
  399. },
  400. {
  401. value: 5,
  402. label: '荆州院子',
  403. children: [{
  404. value: 6,
  405. label: '荆州院子01',
  406. },
  407. {
  408. value: 7,
  409. label: '荆州院子02',
  410. },
  411. {
  412. value: 8,
  413. label: '荆州院子03',
  414. }
  415. ]
  416. }
  417. ],
  418. params: {
  419. year: true,
  420. month: true,
  421. day: true,
  422. hour: false,
  423. minute: false,
  424. second: false
  425. },
  426. tabsFrom: {
  427. show1: false,
  428. show1Index: 0,
  429. show2Index: '',
  430. show2: false,
  431. show1Text: "全部类型",
  432. show2Text: "全部时间",
  433. selector1: [{
  434. label: '全部类型',
  435. value: '',
  436. },
  437. {
  438. label: '线上充值',
  439. value: '1',
  440. },
  441. {
  442. label: '线下充值',
  443. value: '2',
  444. },
  445. ]
  446. },
  447. background: {
  448. backgroundColor: '#1677FF',
  449. },
  450. list: [{
  451. id: 4,
  452. name: '当日用电量',
  453. disabled: false
  454. }, {
  455. id: 1,
  456. name: '当月用电量',
  457. disabled: false
  458. }, {
  459. id: 2,
  460. name: '上月用电量',
  461. disabled: false
  462. }, {
  463. id: 3,
  464. name: '当年用电量',
  465. disabled: false
  466. }, {
  467. id: 0,
  468. name: '总用电量',
  469. disabled: false
  470. }, {
  471. id: 10,
  472. name: '指定月份',
  473. disabled: false
  474. }],
  475. value: '2'
  476. };
  477. },
  478. onLoad(op) {
  479. if (op.id) {
  480. this.FormData.meterId = op.id;
  481. this.FormData2.meterId = op.id;
  482. this.tabsFrom.title = op.name;
  483. }
  484. this.endYear = new Date().getFullYear();
  485. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  486. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  487. this.FormData.type = 2;
  488. this.getElectricityStatistics();
  489. this.getTimeSlotStatistics();
  490. this.getList();
  491. },
  492. onReady() {
  493. this.getBarCharts(false);
  494. },
  495. methods: {
  496. selector1confirm(e) {
  497. var index = e[0];
  498. this.tabsFrom.show1Index = index;
  499. this.tabsFrom.show1Text = this.tabsFrom.selector1[index].label;
  500. this.tabsFrom.title = this.tabsFrom.selector1[index].label;
  501. this.FormData.meterId = this.tabsFrom.selector1[index].value;
  502. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  503. this.FormData2.meterId = this.tabsFrom.selector1[index].value;
  504. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  505. this.FormData.type = 2;
  506. this.value = '2';
  507. this.getTimeSlotStatistics();
  508. this.getElectricityStatistics();
  509. },
  510. queryDate(queryTime, day) {
  511. if (day) {
  512. this.FormData2.queryDate = queryTime;
  513. //this.FormData2.type =day?"9":"10"
  514. //this.value="-1"
  515. this.getTimeSlotStatistics();
  516. } else {
  517. this.FormData.queryDate = queryTime + "-01";
  518. this.FormData.type = 10;
  519. this.value = "10";
  520. this.list[5].name = queryTime;
  521. this.getElectricityStatistics();
  522. }
  523. },
  524. getList() {
  525. uni.showLoading({
  526. title: "加载中",
  527. mask: true,
  528. })
  529. var data = {
  530. pageIndex: 1,
  531. pageSize: 100
  532. };
  533. API.homePageKwh(data).then((res) => {
  534. uni.hideLoading()
  535. this.kWhList = res.data.data;
  536. this.tabsFrom.selector1 = [];
  537. this.tabsFrom.selector1 = this.kWhList.map(item => {
  538. return {
  539. label: item.name,
  540. value: item.id
  541. }
  542. })
  543. }).catch(error => {
  544. uni.showToast({
  545. title: error,
  546. icon: "none"
  547. })
  548. })
  549. },
  550. getTimeSlotStatistics() {
  551. uni.showLoading({
  552. title: "加载中",
  553. mask: true,
  554. })
  555. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  556. API.timeSlotStatistics(this.FormData2).then((response) => {
  557. uni.hideLoading();
  558. this.hourMap = response.data.hourMap;
  559. this.getBarCharts(this.hourMap);
  560. }).catch(error => {
  561. uni.showToast({
  562. title: error,
  563. icon: "none"
  564. })
  565. })
  566. },
  567. getElectricityStatistics() {
  568. uni.showLoading({
  569. title: "加载中",
  570. mask: true,
  571. })
  572. var obj = {
  573. ...this.FormData
  574. }
  575. // if(obj.type==10){
  576. // obj.queryDate+="-01"
  577. // }
  578. API.electricityStatistics(obj).then((response) => {
  579. uni.hideLoading();
  580. this.showTop = [0, 0, 0, 0, 0, 0, 0, 0]
  581. var electricity = response.data.kwhMap.kwh + "";
  582. if (electricity) {
  583. var sz = electricity.split(".")
  584. var str1 = sz[0];
  585. var str2 = [];
  586. if (sz.length > 1) {
  587. str2 = sz[1];
  588. this.showTop[7] = str2[0];
  589. }
  590. var j = 0;
  591. for (var i in str1) {
  592. if (i != undefined) {
  593. this.showTop[6 - str1.length + j + 1] = str1[i]
  594. }
  595. j++;
  596. }
  597. this.$forceUpdate()
  598. }
  599. //this.electricityMeterList=response.data.meterList
  600. }).catch(error => {
  601. uni.showToast({
  602. title: error,
  603. icon: "none"
  604. })
  605. })
  606. },
  607. getBarCharts(list) {
  608. if (!this.myChart) {
  609. this.myChart = echarts.init(document.getElementById('barEcharts'), null, {
  610. width: uni.upx2px(700),
  611. height: uni.upx2px(480)
  612. });
  613. }
  614. this.myChart.clear();
  615. var data1 = ['0-2点', '3-4点', '5-6点', '7-8点', '9-10点', '11-12点', '13-14点', '15-16点',
  616. '17-18点', '19-20点', '21-22点', '23-24点'
  617. ];
  618. var data2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
  619. var sumQuantity = 0;
  620. if (list) {
  621. data1 = [];
  622. data2 = [];
  623. for (var i in list) {
  624. data1.push(i);
  625. data2.push(list[i]);
  626. sumQuantity += list[i];
  627. }
  628. }
  629. this.sumQuantity = sumQuantity.toFixed(2);
  630. var headitemby = "";
  631. var showkey = "";
  632. var option = {
  633. tooltip: {
  634. trigger: 'axis',
  635. axisPointer: {
  636. type: 'shadow'
  637. }
  638. },
  639. grid: {
  640. top: '6%',
  641. left: '3%',
  642. right: '8%',
  643. bottom: '8%',
  644. containLabel: true
  645. },
  646. xAxis: {
  647. type: 'category',
  648. data: data1,
  649. axisLabel: {
  650. rotate: 40,
  651. interval: 0,
  652. textStyle: {
  653. color: "#333"
  654. }
  655. },
  656. },
  657. yAxis: {
  658. type: 'value',
  659. },
  660. series: [{
  661. name: '合计',
  662. data: data2,
  663. type: 'bar'
  664. }]
  665. }
  666. console.log(option)
  667. this.myChart.setOption(option);
  668. },
  669. selector2confirm(e) {
  670. this.tabsFrom.show2Text = e.year + "年" + e.month + "月"
  671. this.tabsFrom.show2Index = e.year + "-" + e.month
  672. if (e.day) {
  673. this.tabsFrom.show2Text += e.day + "日"
  674. this.tabsFrom.show2Index += '-' + e.day
  675. this.queryDate(this.tabsFrom.show2Index, true)
  676. } else {
  677. this.queryDate(this.tabsFrom.show2Index, false)
  678. }
  679. },
  680. selector2reset(e) {
  681. console.log(e)
  682. this.tabsFrom.show2Text = '全部时间'
  683. this.tabsFrom.show2Index = '';
  684. },
  685. // 选中某个单选框时,由radio时触发
  686. radioChange(e) {
  687. //console.log(e);
  688. },
  689. // 选中任一radio时,由radio-group触发
  690. radioGroupChange(e) {
  691. console.log(e)
  692. this.FormData.type = e;
  693. if (e == 10) {
  694. this.tabsFrom.show2 = true;
  695. this.params.day = false;
  696. this.list[5].name = '指定月份'
  697. } else {
  698. this.getElectricityStatistics();
  699. }
  700. },
  701. backDataMonitoringList() {
  702. uni.navigateBack()
  703. },
  704. }
  705. };
  706. </script>
  707. <style lang="scss" scoped>
  708. page {
  709. padding-bottom: 184rpx;
  710. }
  711. .navbar-c {
  712. background-color: rgba(22, 119, 255, 1);
  713. position: fixed;
  714. top: 0;
  715. left: 0;
  716. right: 0;
  717. z-index: 999;
  718. .back {
  719. z-index: 999;
  720. width: 200rpx;
  721. }
  722. .title {
  723. color: #fff;
  724. display: flex;
  725. align-items: center;
  726. justify-content: center;
  727. }
  728. .right {
  729. .img {
  730. width: 48rpx;
  731. height: 48rpx;
  732. }
  733. }
  734. }
  735. /deep/.uicon-nav-back {
  736. color: #fff !important;
  737. }
  738. .background {
  739. background-color: rgba(22, 119, 255, 1);
  740. padding-top: 88rpx;
  741. padding-bottom: 100rpx;
  742. /deep/.u-border-bottom:after {
  743. border: none;
  744. }
  745. .u-nav-slot {
  746. margin-right: 32rpx;
  747. .img {
  748. width: 48rpx;
  749. height: 48rpx;
  750. vertical-align: middle;
  751. }
  752. }
  753. }
  754. .background::after {
  755. content: '';
  756. position: absolute;
  757. width: 160%;
  758. height: 80px;
  759. background-color: rgba(22, 119, 255, 1);
  760. left: -30%;
  761. border-radius: 0 0 50% 50%;
  762. }
  763. // // 日期
  764. .date-box {
  765. display: flex;
  766. align-items: center;
  767. justify-content: space-between;
  768. margin: 24rpx 32rpx;
  769. .item {
  770. border-radius: 8px;
  771. background-color: rgba(255, 255, 255, 0.1);
  772. border: 1px solid rgba(255, 255, 255, 0.15);
  773. width: 120rpx;
  774. height: 120rpx;
  775. color: #fff;
  776. text-align: center;
  777. display: flex;
  778. flex-direction: column;
  779. justify-content: center;
  780. .date {
  781. font-size: 40rpx;
  782. }
  783. }
  784. .item-today {
  785. background-color: rgba(255, 255, 255, 1);
  786. position: relative;
  787. .date {
  788. color: rgba(22, 119, 255, 1);
  789. }
  790. .week {
  791. color: rgba(16, 16, 16, 1);
  792. }
  793. .dot {
  794. width: 10rpx;
  795. height: 10rpx;
  796. background-color: rgba(255, 150, 0, 1);
  797. border-radius: 999px;
  798. position: absolute;
  799. bottom: -5rpx;
  800. left: 50%;
  801. transform: translateX(-50%);
  802. }
  803. }
  804. }
  805. // 用电量
  806. .electricity-consumption {
  807. background-color: #fff;
  808. padding: 40rpx 32rpx 0rpx;
  809. border-radius: 8px;
  810. margin: -88rpx 32rpx 0;
  811. position: relative;
  812. .title {
  813. color: rgba(16, 16, 16, 1);
  814. font-size: 36rpx;
  815. }
  816. .degree {
  817. display: flex;
  818. margin-top: 32rpx;
  819. .item {
  820. margin-right: 6rpx;
  821. text-align: center;
  822. .item-text {
  823. color: rgba(16, 16, 16, 1);
  824. }
  825. .item-number {
  826. margin-top: 24rpx;
  827. width: 72rpx;
  828. height: 96rpx;
  829. background-color: rgba(16, 16, 16, 1);
  830. color: #fff;
  831. font-size: 72rpx;
  832. }
  833. .decimal {
  834. background-color: #900005;
  835. }
  836. }
  837. }
  838. // .tab {
  839. // width: 240rpx;
  840. // height: 0;
  841. // border-width: 0px 48rpx 72rpx 0px;
  842. // border-radius: 8px 8px 0 0;
  843. // border-style: none solid solid none;
  844. // border-color: transparent transparent #fff;
  845. // position: absolute;
  846. // top: -72rpx;
  847. // left: 0rpx;
  848. // right: 0rpx;
  849. // color: #101010;
  850. // color: rgba(16, 16, 16, 1);
  851. // text-align: center;
  852. // line-height: 72rpx;
  853. // z-index: 999;
  854. // text-indent: 16rpx;
  855. // }
  856. // .tab2 {
  857. // width: 240rpx;
  858. // height: 0;
  859. // border-width: 0px 48rpx 72rpx 0px;
  860. // border-radius: 8px 8px 0 0;
  861. // border-style: none solid solid none;
  862. // border-color: transparent transparent #D4DBE4;
  863. // position: absolute;
  864. // top: -72rpx;
  865. // left: 210rpx;
  866. // right: 0rpx;
  867. // color: #777777;
  868. // text-align: center;
  869. // line-height: 72rpx;
  870. // text-indent: 16rpx;
  871. // }
  872. .radio {
  873. margin-top: 24rpx;
  874. /deep/.u-radio__label {
  875. font-size: 24rpx
  876. }
  877. /deep/.u-radio {
  878. margin-bottom: 16px;
  879. width: 200rpx !important;
  880. }
  881. }
  882. }
  883. //各时段用电量
  884. .electricity-chart {
  885. margin: 24rpx 32rpx;
  886. padding: 40rpx 0rpx;
  887. background-color: #fff;
  888. border-radius: 8px;
  889. .title {
  890. display: flex;
  891. align-items: center;
  892. // justify-content: space-between;
  893. padding: 0 12rpx;
  894. margin-bottom: 40rpx;
  895. .icon {
  896. width: 36rpx;
  897. height: 36rpx;
  898. background-color: rgba(182, 212, 255, 1);
  899. border: 6px solid rgba(22, 119, 255, 1);
  900. border-radius: 100px;
  901. }
  902. .text {
  903. color: rgba(51, 51, 51, 1);
  904. font-size: 36rpx;
  905. margin-left: 16rpx;
  906. }
  907. .more {
  908. margin-left: auto;
  909. }
  910. }
  911. .chart {
  912. width: 100%;
  913. height: 440rpx;
  914. .img {
  915. width: 100%;
  916. height: 440rpx;
  917. }
  918. }
  919. }
  920. .equipment-information {
  921. margin: 24rpx 32rpx;
  922. padding: 40rpx 0rpx;
  923. background-color: #fff;
  924. border-radius: 8px;
  925. .title {
  926. display: flex;
  927. align-items: center;
  928. padding: 0 32rpx;
  929. margin-bottom: 40rpx;
  930. .icon {
  931. width: 36rpx;
  932. height: 36rpx;
  933. background-color: rgba(182, 212, 255, 1);
  934. border: 6px solid rgba(22, 119, 255, 1);
  935. border-radius: 100px;
  936. }
  937. .text {
  938. display: flex;
  939. align-items: center;
  940. color: rgba(51, 51, 51, 1);
  941. font-size: 36rpx;
  942. margin-left: 16rpx;
  943. }
  944. .date {
  945. margin-left: auto;
  946. }
  947. .more {
  948. color: #838383;
  949. font-size: 24rpx;
  950. margin-left: auto;
  951. }
  952. }
  953. .chart {
  954. width: 100%;
  955. height: 440rpx;
  956. .img {
  957. width: 100%;
  958. height: 440rpx;
  959. }
  960. }
  961. .infos {
  962. padding: 0 32rpx;
  963. display: flex;
  964. justify-content: space-between;
  965. text-align: center;
  966. .border {
  967. margin: auto 0;
  968. height: 70rpx;
  969. width: 2rpx;
  970. background-color: rgba(204, 204, 204, 1);
  971. ;
  972. }
  973. .item-title {
  974. color: rgba(119, 119, 119, 1);
  975. }
  976. .item-value {
  977. color: rgba(16, 16, 16, 1);
  978. font-size: 32rpx;
  979. margin-top: 16rpx;
  980. }
  981. }
  982. }
  983. // 异常
  984. .abnormal {
  985. margin: 24rpx 32rpx;
  986. padding: 40rpx 32rpx;
  987. background-color: #fff;
  988. border-radius: 8px;
  989. .headline {
  990. display: flex;
  991. align-items: center;
  992. justify-content: space-between;
  993. }
  994. .title {
  995. display: flex;
  996. align-items: center;
  997. font-weight: bold;
  998. .icon {
  999. width: 36rpx;
  1000. height: 36rpx;
  1001. background-color: rgba(182, 212, 255, 1);
  1002. border: 6px solid rgba(22, 119, 255, 1);
  1003. border-radius: 100px;
  1004. }
  1005. .text {
  1006. color: rgba(51, 51, 51, 1);
  1007. font-size: 36rpx;
  1008. margin-left: 16rpx;
  1009. }
  1010. }
  1011. .more {
  1012. color: #838383;
  1013. font-size: 24rpx
  1014. }
  1015. .details {
  1016. margin-top: 40rpx;
  1017. .item {
  1018. display: flex;
  1019. align-items: center;
  1020. justify-content: space-between;
  1021. margin-top: 32rpx;
  1022. .name {
  1023. color: rgba(51, 51, 51, 1);
  1024. }
  1025. .time {
  1026. color: rgba(119, 119, 119, 1);
  1027. font-size: 24rpx;
  1028. }
  1029. }
  1030. }
  1031. }
  1032. // 能源监测
  1033. .energy-inspection,
  1034. .data-analysis {
  1035. margin: 24rpx 32rpx;
  1036. padding: 40rpx 32rpx;
  1037. background-color: #fff;
  1038. border-radius: 8px;
  1039. .title {
  1040. display: flex;
  1041. align-items: center;
  1042. font-weight: bold;
  1043. .icon {
  1044. width: 36rpx;
  1045. height: 36rpx;
  1046. background-color: rgba(182, 212, 255, 1);
  1047. border: 6px solid rgba(22, 119, 255, 1);
  1048. border-radius: 100px;
  1049. }
  1050. .text {
  1051. color: rgba(51, 51, 51, 1);
  1052. font-size: 36rpx;
  1053. margin-left: 16rpx;
  1054. }
  1055. }
  1056. .grid {
  1057. .icon {
  1058. width: 128rpx;
  1059. height: 128rpx;
  1060. border-radius: 12px;
  1061. background-color: rgba(35, 186, 178, 1);
  1062. display: flex;
  1063. align-items: center;
  1064. justify-content: center;
  1065. margin-bottom: 16rpx;
  1066. .img {
  1067. width: 80rpx;
  1068. height: 80rpx;
  1069. }
  1070. }
  1071. .icon2 {
  1072. background-color: rgba(42, 186, 72, 1);
  1073. }
  1074. .icon3 {
  1075. background-color: rgba(78, 96, 246, 1);
  1076. }
  1077. .icon4 {
  1078. background-color: rgba(22, 119, 255, 1);
  1079. }
  1080. .icon5 {
  1081. background-color: rgba(35, 186, 178, 1);
  1082. }
  1083. .icon6 {
  1084. background-color: rgba(42, 186, 72, 1);
  1085. }
  1086. .icon7 {
  1087. background-color: rgba(22, 119, 255, 1);
  1088. }
  1089. .icon8 {
  1090. background-color: rgba(35, 186, 178, 1);
  1091. }
  1092. .icon9 {
  1093. background-color: rgba(42, 186, 72, 1);
  1094. }
  1095. .grid-text {
  1096. color: #333333;
  1097. }
  1098. }
  1099. }
  1100. // 设备信息弹窗
  1101. .equipment-popup {
  1102. .content {
  1103. padding: 32rpx;
  1104. .headline {
  1105. color: rgba(16, 16, 16, 1);
  1106. font-size: 36rpx;
  1107. text-align: center;
  1108. font-weight: bold;
  1109. }
  1110. .infos {
  1111. padding-bottom: 100rpx;
  1112. .item:last-of-type {
  1113. border: none;
  1114. }
  1115. .item {
  1116. display: flex;
  1117. align-items: center;
  1118. height: 80rpx;
  1119. line-height: 80rpx;
  1120. border-bottom: 1px solid #cccccc;
  1121. .item-title {
  1122. color: rgba(51, 51, 51, 1);
  1123. width: 200rpx;
  1124. }
  1125. .item-value {
  1126. color: #666666;
  1127. flex: 1;
  1128. margin-left: 16rpx;
  1129. }
  1130. }
  1131. }
  1132. .get {
  1133. height: 80rpx;
  1134. line-height: 80rpx;
  1135. border-radius: 4px;
  1136. background-color: rgba(22, 119, 255, 1);
  1137. color: rgba(255, 255, 255, 1);
  1138. font-size: 32rpx;
  1139. }
  1140. }
  1141. }
  1142. // 创建工单
  1143. .create-order {
  1144. width: 120rpx;
  1145. height: 120rpx;
  1146. border-radius: 20px;
  1147. background: linear-gradient(180.29deg, rgba(255, 124, 112, 1) 0.9%, rgba(255, 79, 63, 1) 100.4%);
  1148. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  1149. text-align: center;
  1150. display: flex;
  1151. flex-direction: column;
  1152. justify-content: center;
  1153. align-items: center;
  1154. position: fixed;
  1155. right: 32rpx;
  1156. bottom: 64rpx;
  1157. .img {
  1158. width: 56rpx;
  1159. height: 56rpx;
  1160. vertical-align: middle;
  1161. }
  1162. .text {
  1163. color: rgba(255, 255, 255, 1);
  1164. font-size: 22rpx;
  1165. }
  1166. }
  1167. </style>