electronicMonitoring.vue 22 KB

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