electronicMonitoring.vue 26 KB

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