electronicMonitoring.vue 23 KB

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