electronicMonitoring.vue 26 KB

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