electronicMonitoring.vue 26 KB

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