electronicMonitoring.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696
  1. <template>
  2. <view>
  3. <view class="background"
  4. :class="{
  5. backgroundref:ref
  6. }"
  7. >
  8. <!-- 日期选择器 -->
  9. <u-picker-select title="日期选择" v-model="tabsFrom.show2" :defaultTime="tabsFrom.show2Index" :endYear="endYear"
  10. mode="time" :params="params" :noselect="false" @confirm="selector2confirm" @cancel="selector2cancel"
  11. @reset="selector2reset">
  12. </u-picker-select>
  13. <view class="navbar-c">
  14. <view class="back" @click="backDataMonitoringList">
  15. <u-icon name="arrow-left" color="#fff" size="36"></u-icon>
  16. </view>
  17. <view class="title">
  18. {{tabsFrom.title}}
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 设备选择器 -->
  23. <u-select title="设备选择" v-model="tabsFrom.show1" :list="tabsFrom.selector1"
  24. @confirm="selector1confirm" cancel-text="重置" @cancel="selector1cancel">
  25. </u-select>
  26. <!-- 用电量 -->
  27. <view class="electricity-consumption">
  28. <!-- 统计 -->
  29. <view class="statistics-content">
  30. <view class="statistics-item"
  31. @click="gotoUrl('/pages/equipmentDataMonitoring/electricityConsumptionDetail?id='
  32. +FormData.meterId+'&name='+tabsFrom.title+'&type='+FormData.type)">
  33. <view class="item-title">
  34. <image class="img" src="@/assets/img/meterStatistics@3x.png"></image>电量统计(度)
  35. </view>
  36. <view class="item-value">
  37. <text>{{electricity}}</text> <u-icon name="arrow-right" color="#cccccc" size="24" ></u-icon>
  38. </view>
  39. </view>
  40. <view class="statistics-item" >
  41. <view class="item-title item-title2">
  42. <image class="img" src="@/assets/img/electricityStatistics@3x.png"></image>电费统计(元)
  43. </view>
  44. <view class="item-value">
  45. {{fee}}
  46. </view>
  47. </view>
  48. </view>
  49. <view class="radio">
  50. <u-radio-group v-model="value" @change="radioGroupChange">
  51. <u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.id"
  52. :disabled="item.disabled">
  53. {{item.name}}
  54. </u-radio>
  55. </u-radio-group>
  56. </view>
  57. </view>
  58. <!-- 远程控制电源开关 -->
  59. <view class="control"
  60. v-if="codes&&codes.indexOf('switch')!=-1&&(meterDetail.type!=6&&meterDetail.type!=7)&&meterDetail.allowSwitch">
  61. <view class="text" @click="gotoUrl('/pages/tenantList/switchDetail?id='+meterDetail.id)">
  62. 智能监控电源
  63. <u-icon name="arrow-right" color="#cccccc" size="24" ></u-icon>
  64. </view>
  65. <view class="icon" style=" display: flex;" >
  66. <span>关</span>
  67. <u-switch size="32" @change="switchBtnApi(meterDetail,$event)"
  68. v-model="meterDetail.switchStatus" inactive-color="#ff9900" ></u-switch >
  69. <span>开</span>
  70. <!-- <img src="@/assets/img/control.png"
  71. @tap.stop="switchBtnApi(meterDetail,0)"
  72. v-if="meterDetail.switchStatus"
  73. alt="" />
  74. <img @tap.stop="switchBtnApi(meterDetail,1)"
  75. v-else
  76. src="@/assets/img/switchClose.png" alt="" /> -->
  77. </view>
  78. </view>
  79. <!-- 各时段用电量 -->
  80. <view class="electricity-chart" v-if="meterDetail.type!=7">
  81. <view class="title">
  82. <view class="icon">
  83. </view>
  84. <view class="text">
  85. 各时段电量 (度)
  86. </view>
  87. <view class="more" @click="tabsFrom.show2=true,params.day=true">
  88. {{queryDay}}<u-icon name="arrow-down" color="#bbbbbb"></u-icon>
  89. </view>
  90. </view>
  91. <view class="chart">
  92. <view id="barEcharts" style="min-height:440rpx;">
  93. </view>
  94. </view>
  95. <view class="total" >
  96. <view class="total-item">
  97. 电量合计:{{sumQuantity}}度
  98. </view>
  99. <view class="total-item">
  100. 电费合计:{{sumFee}}元
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 异常告警 -->
  105. <view class="abnormal" v-if="abnormalRecordsList.length" >
  106. <view class="headline">
  107. <view class="title">
  108. <view class="icon">
  109. </view>
  110. <view class="text">
  111. 异常告警
  112. </view>
  113. </view>
  114. <view class="more" @click="gotoUrl('/pages/abnormal/abnormalAlarmRecord?id='+companyId)">
  115. 查看全部
  116. <u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  117. </view>
  118. </view>
  119. <view class="details">
  120. <view class="item" v-for="(item, index) in abnormalRecordsList" :key="index"
  121. @click="gotoUrl('/pages/abnormal/abnormalAlarmDetails?id='+item.id)">
  122. <view class="name">
  123. {{item.configName}}
  124. </view>
  125. <view class="time">
  126. {{item.createTime}}
  127. <!-- 箭头 -->
  128. <view class="more">
  129. <u-icon name="arrow-right" color="#acacac" size="24"></u-icon>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <!-- 能源监测 -->
  136. <view class="energy-inspection" v-if="meterDetail.type!=7" >
  137. <view class="title">
  138. <view class="icon">
  139. </view>
  140. <view class="text">
  141. 能源监测
  142. </view>
  143. </view>
  144. <view class="grid">
  145. <u-grid :col="3" :border="false">
  146. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','A','三相电流')">
  147. <view class="icon icon1">
  148. <image class="img" src="@/assets/img/Image@1.png" mode=""></image>
  149. </view>
  150. <view class="grid-text">三相电流</view>
  151. </u-grid-item>
  152. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','V','三相电压')">
  153. <view class="icon icon2">
  154. <image class="img" src="@/assets/img/Image@2.png" mode=""></image>
  155. </view>
  156. <view class="grid-text">三相电压</view>
  157. </u-grid-item>
  158. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','T','三相温度')">
  159. <view class="icon icon3">
  160. <image class="img" src="@/assets/img/Image@3.png" mode=""></image>
  161. </view>
  162. <view class="grid-text">三相温度</view>
  163. </u-grid-item>
  164. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','P','三相有功功率')">
  165. <view class="icon icon4">
  166. <image class="img" src="@/assets/img/Image@4.png" mode=""></image>
  167. </view>
  168. <view class="grid-text">三相有功功率</view>
  169. </u-grid-item>
  170. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','F','三相功率因数')">
  171. <view class="icon icon5">
  172. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  173. </view>
  174. <view class="grid-text">三相功率因数</view>
  175. </u-grid-item>
  176. <u-grid-item @click="gotoInfo('3PhaseCurrentDetails','AF','平均功率因数')">
  177. <view class="icon icon6">
  178. <image class="img" src="@/assets/img/Image@5.png" mode=""></image>
  179. </view>
  180. <view class="grid-text">平均功率因数</view>
  181. </u-grid-item>
  182. </u-grid>
  183. </view>
  184. </view>
  185. <!-- 数据分析 -->
  186. <view class="data-analysis" v-if="meterDetail.type!=7" >
  187. <view class="title">
  188. <view class="icon">
  189. </view>
  190. <view class="text">
  191. 数据分析
  192. </view>
  193. </view>
  194. <view class="grid">
  195. <u-grid :col="3" :border="false">
  196. <u-grid-item @click="gotoInfo('chartYoY','','')">
  197. <view class="icon icon7">
  198. <image class="img" src="@/assets/img/Image@7.png" mode=""></image>
  199. </view>
  200. <view class="grid-text">同比分析</view>
  201. </u-grid-item>
  202. <u-grid-item @click="gotoInfo('chartMoM','','')">
  203. <view class="icon icon8">
  204. <image class="img" src="@/assets/img/Image@8.png" mode=""></image>
  205. </view>
  206. <view class="grid-text">环比分析</view>
  207. </u-grid-item>
  208. <u-grid-item @click="gotoUrl('/pages/equipmentDataMonitoring/electricityStatistics?id='+meterId)">
  209. <view class="icon icon9">
  210. <image class="img" src="@/assets/img/Image@9.svg" mode=""></image>
  211. </view>
  212. <view class="grid-text">用电统计</view>
  213. </u-grid-item>
  214. </u-grid>
  215. </view>
  216. </view>
  217. <!-- 设备信息 -->
  218. <view class="equipment-information">
  219. <view class="title">
  220. <view class="icon">
  221. </view>
  222. <view class="text">
  223. 设备信息
  224. </view>
  225. <view class="more" @click="equipmentInfosShow=true">
  226. 查看全部<u-icon name="arrow-right" size="24" color="#d4d4d4"></u-icon>
  227. </view>
  228. </view>
  229. <view class="infos">
  230. <view class="item" style="width: 30%;">
  231. <view class="item-title">
  232. 设备类型
  233. </view>
  234. <view class="item-value">
  235. {{meterDetail.deviceTypeN}}
  236. </view>
  237. </view>
  238. <view class="border">
  239. </view>
  240. <view class="item" style="width: 30%;">
  241. <view class="item-title">
  242. 设备编号
  243. </view>
  244. <view class="item-value">
  245. {{meterDetail.deviceNo}}
  246. </view>
  247. </view>
  248. <view class="border">
  249. </view>
  250. <view class="item" style="width: 30%;">
  251. <view class="item-title">
  252. 设备地址
  253. </view>
  254. <view class="item-value">
  255. {{meterDetail.installationAddressSimple}}
  256. </view>
  257. </view>
  258. </view>
  259. </view>
  260. <!-- 设备信息弹窗 -->
  261. <view class="equipment-popup">
  262. <u-popup v-model="equipmentInfosShow" mode="bottom" height='90%' border-radius="12">
  263. <view class="content">
  264. <view class="headline">
  265. 设备信息
  266. </view>
  267. <view class="infos">
  268. <view class="item">
  269. <view class="item-title">
  270. 设备名称
  271. </view>
  272. <view class="item-value">
  273. {{meterDetail.name}}
  274. </view>
  275. </view>
  276. <view class="item">
  277. <view class="item-title">
  278. 设备类型
  279. </view>
  280. <view class="item-value">
  281. {{meterDetail.deviceTypeN}}
  282. </view>
  283. </view>
  284. <view class="item">
  285. <view class="item-title">
  286. 设备编号
  287. </view>
  288. <view class="item-value">
  289. {{meterDetail.deviceNo}}
  290. </view>
  291. </view>
  292. <view class="item">
  293. <view class="item-title">
  294. 产权单位
  295. </view>
  296. <view class="item-value">
  297. {{meterDetail.companyFullName}}
  298. </view>
  299. </view>
  300. <view class="item" @click="toMeterLocation">
  301. <view class="item-title">
  302. 设备地址
  303. </view>
  304. <view class="item-value">
  305. <span>{{meterDetail.installationAddress}}</span>
  306. <image class="img" v-if="0"
  307. src="@/assets/img/riFill-navigation-fill 1.svg"></image>
  308. </view>
  309. </view>
  310. <view class="item">
  311. <view class="item-title">
  312. 地址简称
  313. </view>
  314. <view class="item-value">
  315. {{meterDetail.installationAddressSimple}}
  316. </view>
  317. </view>
  318. <view class="item">
  319. <view class="item-title">
  320. 使用单位
  321. </view>
  322. <view class="item-value">
  323. {{meterDetail.customer}}
  324. </view>
  325. </view>
  326. <view class="item">
  327. <view class="item-title">
  328. 启用时间
  329. </view>
  330. <view class="item-value">
  331. {{meterDetail.enablingTime}}
  332. </view>
  333. </view>
  334. <view class="item" v-if="dtuInfo.id">
  335. <view class="item-title">
  336. 通讯模块
  337. </view>
  338. <view class="item-value">
  339. {{dtuInfo.name}} {{dtuInfo.imei}}
  340. </view>
  341. </view>
  342. </view>
  343. <button class="get" @click="equipmentInfosShow=false">知道了</button>
  344. </view>
  345. </u-popup>
  346. </view>
  347. <!-- 故障上报 -->
  348. <view class="create-order" v-if="false">
  349. <view class="img-box">
  350. <image class="img" src="@/assets/img/fas fa-exclamation-triangle Copy 2@3x.png" mode=""></image>
  351. </view>
  352. <view class="text">
  353. 故障上报
  354. </view>
  355. </view>
  356. </view>
  357. </template>
  358. <script>
  359. import {
  360. parseUnixTime,
  361. beforeTimeStamp,
  362. getWeek
  363. } from '@/apis/utils'
  364. import * as echarts from 'echarts';
  365. import * as API from '@/apis/pagejs/index.js'
  366. import * as API_energyManage from '@/apis/pagejs/energyManage.js'
  367. import * as API_electricityMeter from '@/apis/pagejs/electricityMeter.js'
  368. // import * as WxJsApi from '@/apis/utils/wxJsApi.js'
  369. export default {
  370. data() {
  371. return {
  372. meterDetail: {}, //设备信息
  373. electricity: 0, //电量统计
  374. fee: 0, //电费统计
  375. abnormalRecordsList: [], //异常list
  376. companyId: '', //企业id
  377. meterId: '', //设备id
  378. titleName: '',
  379. clickType: -1,
  380. sumQuantity: 0,
  381. sumFee: 0,
  382. equipmentInfosShow: false,
  383. kWhList: [],
  384. queryDay: '',
  385. showTop: [0, 0, 0, 0, 0, 0, 0, 0],
  386. FormData: {
  387. queryDate: '',
  388. meterId: '',
  389. type: 0
  390. },
  391. codes:"",
  392. FormData2: {
  393. queryDate: '',
  394. meterId: ''
  395. },
  396. myChart: null,
  397. endYear: '',
  398. equipmentShow: false,
  399. multiSelector: [],
  400. equipmentList: [],
  401. params: {
  402. year: true,
  403. month: true,
  404. day: true,
  405. hour: false,
  406. minute: false,
  407. second: false
  408. },
  409. tabsFrom: {
  410. show1: false,
  411. show1Index: 0,
  412. show2Index: '',
  413. show2: false,
  414. show1Text: "全部类型",
  415. show2Text: "全部时间",
  416. selector1: [{
  417. label: '全部类型',
  418. value: '',
  419. },
  420. {
  421. label: '线上充值',
  422. value: '1',
  423. },
  424. {
  425. label: '线下充值',
  426. value: '2',
  427. },
  428. ]
  429. },
  430. background: {
  431. backgroundColor: '#1677FF',
  432. },
  433. list: [{
  434. id: 1,
  435. name: '本月',
  436. disabled: false
  437. }, {
  438. id: 4,
  439. name: '今日',
  440. disabled: false
  441. }, {
  442. id: 2,
  443. name: '上月',
  444. disabled: false
  445. }, {
  446. id: 3,
  447. name: '本年',
  448. disabled: false
  449. }, {
  450. id: 0,
  451. name: '合计',
  452. disabled: false
  453. }, {
  454. id: 10,
  455. name: '指定月份',
  456. disabled: false
  457. }],
  458. value: '4',
  459. intervalId: null, // 用于存储间隔ID
  460. intervalReady: true, // 用于存储间隔ID
  461. ref:false,
  462. dtuInfo:{},
  463. };
  464. },
  465. onLoad(op) {
  466. this.init(op)
  467. },
  468. onReady() {
  469. // WxJsApi.getWxConfig(['getLocation', 'openLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  470. // // //(res)
  471. // }).catch(error => {
  472. // //(res)
  473. // })
  474. },
  475. beforeDestroy() {
  476. this.clearTimer(); // 组件销毁前清除定时器
  477. this.intervalReady = false;
  478. //console.log("组件销毁前清除定时器")
  479. },
  480. methods: {
  481. init(op){
  482. if (op.id) {
  483. this.ref=op.ref;
  484. this.FormData.meterId = op.id;
  485. this.FormData2.meterId = op.id;
  486. this.tabsFrom.title = this.replaceLastTwoWords(op.name);
  487. this.meterId = op.id;
  488. this.titleName = this.replaceLastTwoWords(op.name);
  489. this.companyId = op.companyId;
  490. }
  491. this.endYear = new Date().getFullYear();
  492. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  493. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  494. this.FormData.type = 4;
  495. this.getElectricityStatistics();
  496. this.getTimeSlotStatistics();
  497. //this.getCompanyInfoList();
  498. //this.getAbnormalAlarmRecord();
  499. this.getMeterDetails(this.meterId);
  500. },
  501. switchBtnApiMethod(node,key){
  502. uni.showLoading({
  503. title: "加载中",
  504. mask: true,
  505. })
  506. API_energyManage.remoteSwitch({
  507. meterId:node.id,
  508. enabled:key
  509. }).then((res) => {
  510. uni.hideLoading();
  511. node.switchStatus=key
  512. }).catch(error => {
  513. uni.showToast({
  514. title: error,
  515. icon: "none"
  516. })
  517. })
  518. },
  519. switchBtnApi(node,key){
  520. uni.showModal({
  521. confirmColor:`${key?'#3CC51F':'red'}`,
  522. confirmText:`${key?'开启':'关闭'}`,
  523. content: `确认是否要"${key?'开启':'关闭'}"${this.replaceLastTwoWords(node.name)}`,
  524. title: "提示",
  525. success:res=> {
  526. if(res.confirm){
  527. this.switchBtnApiMethod(node,key);
  528. }else{
  529. node.switchStatus=!key
  530. }
  531. }
  532. })
  533. console.log(node,key)
  534. },
  535. toMeterLocation() {
  536. // WxJsApi.openLocation({
  537. // latitude: parseFloat(this.meterDetail.latitude), //目的地latitude
  538. // longitude: parseFloat(this.meterDetail.longitude), //目的地longitude
  539. // name: this.meterDetail.name,
  540. // address: this.meterDetail.installationAddress,
  541. // scale: 15, //地图缩放大小,可根据情况具体调整
  542. // success(res) {
  543. // uni.hideLoading()
  544. // },
  545. // complete() {
  546. // // uni.hideLoading()
  547. // }
  548. // });
  549. },
  550. getMeterDetails(meterId) {
  551. uni.showLoading({
  552. title: "加载中",
  553. mask: true,
  554. })
  555. API_electricityMeter.meterDetails({
  556. meterId: meterId
  557. }).then((res) => {
  558. uni.hideLoading();
  559. this.meterDetail = res.data.meter;
  560. this.dtuInfo = res.data.dtuInfo;
  561. this.meterDetail.name=this.replaceLastTwoWords(this.meterDetail.name)
  562. this.codes =this.carhelp.getPersonInfo().codes;
  563. }).catch(error => {
  564. uni.showToast({
  565. title: error,
  566. icon: "none"
  567. })
  568. })
  569. },
  570. clearTimer() {
  571. if (this.intervalId) {
  572. clearInterval(this.intervalId); // 清除定时器
  573. this.intervalId = null; // 重置定时器ID
  574. }
  575. },
  576. startInterval() {
  577. this.clearTimer(); // 组件销毁前清除定时器
  578. this.intervalId = setInterval(() => {
  579. // 每隔5秒运行的代码
  580. // console.log('这段代码每隔5秒运行一次');
  581. this.getElectricityStatistics(true)
  582. this.getTimeSlotStatistics(true)
  583. }, 60000);
  584. },
  585. gotoInfo(path, type, name) {
  586. if (!this.FormData.meterId) {
  587. uni.showToast({
  588. title: "未查询到电表",
  589. icon: "none"
  590. })
  591. return
  592. }
  593. uni.navigateTo({
  594. url: "/pages/equipmentDataMonitoring/" + path + "?id=" + this.FormData.meterId + "&type=" + type +
  595. "&typeName=" + name+"&title="+this.tabsFrom.title
  596. })
  597. },
  598. // 异常告警记录
  599. getAbnormalAlarmRecord() {
  600. var queryDate = parseUnixTime(new Date(), '{y}-{m}');
  601. uni.showLoading({
  602. title: "加载中",
  603. mask: true,
  604. })
  605. API.alarmRecord({
  606. queryDate: queryDate,
  607. configId: '',
  608. pageIndex: 1,
  609. pageSize: 2,
  610. companyId: this.companyId,
  611. meterId: this.meterId
  612. }).then((res) => {
  613. uni.hideLoading();
  614. this.abnormalRecordsList = res.data.data;
  615. }).catch(error => {
  616. uni.showToast({
  617. title: error,
  618. icon: "none"
  619. })
  620. })
  621. },
  622. titleCk() {
  623. if(this.tabsFrom.selector1.length){
  624. this.tabsFrom.show1 = true
  625. }
  626. },
  627. selector1confirm(e) {
  628. console.log(e)
  629. // var index = e[2];
  630. // this.tabsFrom.show1Index = index;
  631. if (e[2].value != null) {
  632. this.tabsFrom.show1Text = e[2].label;
  633. this.tabsFrom.title = e[2].label;
  634. this.FormData.meterId = e[2].value;
  635. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  636. this.FormData2.meterId = e[2].value;
  637. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  638. //this.meterId =e[2].value;
  639. this.FormData.type = 4;
  640. this.value = '4';
  641. this.getTimeSlotStatistics();
  642. this.getElectricityStatistics();
  643. this.getMeterDetails(e[2].value);
  644. }
  645. },
  646. selector1cancel() {
  647. this.tabsFrom.show1Text = this.titleName;
  648. this.tabsFrom.title = this.titleName;
  649. this.FormData.meterId = this.meterId;
  650. this.FormData.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  651. this.FormData2.meterId = this.meterId;
  652. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  653. this.FormData.type = 4;
  654. this.value = '4';
  655. this.getTimeSlotStatistics();
  656. this.getElectricityStatistics();
  657. this.getMeterDetails(this.meterId);
  658. },
  659. queryDate(queryTime, day) {
  660. if (day) {
  661. this.FormData2.queryDate = queryTime;
  662. //this.FormData2.type =day?"9":"10"
  663. //this.value="-1"
  664. this.getTimeSlotStatistics();
  665. } else {
  666. this.FormData.queryDate = queryTime + "-01";
  667. this.FormData.type = 10;
  668. this.value = "10";
  669. this.list[5].name = queryTime;
  670. this.getElectricityStatistics();
  671. }
  672. },
  673. getCompanyInfoList() {
  674. },
  675. getTimeSlotStatistics(interval) {
  676. if (!interval) {
  677. uni.showLoading({
  678. title: "加载中",
  679. mask: true,
  680. })
  681. }
  682. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  683. API.timeSlotStatistics(this.FormData2).then((response) => {
  684. if (!interval) {
  685. uni.hideLoading();
  686. }
  687. this.hourMap = response.data.hourMap;
  688. this.sumQuantity = response.data.kwhMap.kwh;
  689. this.sumFee = response.data.kwhMap.fee;
  690. this.getBarCharts(this.hourMap, interval);
  691. if (!interval) {
  692. this.startInterval(); // 组件挂载后开始间隔
  693. }
  694. }).catch(error => {
  695. uni.showToast({
  696. title: error,
  697. icon: "none"
  698. })
  699. })
  700. },
  701. getElectricityStatistics(interval) {
  702. if (!interval) {
  703. uni.showLoading({
  704. title: "加载中",
  705. mask: true,
  706. })
  707. }
  708. var obj = {
  709. ...this.FormData
  710. }
  711. if (obj.type != 10) {
  712. this.list[5].name = '指定月份';
  713. }
  714. // if(obj.type==10){
  715. // obj.queryDate+="-01"
  716. // }
  717. API.electricityStatistics(obj).then((response) => {
  718. if (!interval) {
  719. uni.hideLoading();
  720. }
  721. this.showTop = [0, 0, 0, 0, 0, 0, 0, 0]
  722. var electricity = response.data.kwhMap.kwh + "";
  723. this.electricity = response.data.kwhMap.kwh;
  724. this.fee = response.data.kwhMap.fee;
  725. if (electricity) {
  726. var sz = electricity.split(".")
  727. var str1 = sz[0];
  728. var str2 = [];
  729. if (sz.length > 1) {
  730. str2 = sz[1];
  731. this.showTop[7] = str2[0];
  732. }
  733. var j = 0;
  734. for (var i in str1) {
  735. if (i != undefined) {
  736. this.showTop[6 - str1.length + j + 1] = str1[i]
  737. }
  738. j++;
  739. }
  740. this.$forceUpdate()
  741. }
  742. if (!interval) {
  743. this.startInterval(); // 组件挂载后开始间隔
  744. }
  745. }).catch(error => {
  746. uni.showToast({
  747. title: error,
  748. icon: "none"
  749. })
  750. })
  751. },
  752. getBarCharts(list, interval) {
  753. if (!this.myChart) {
  754. this.myChart = echarts.init(document.getElementById('barEcharts'), null, {
  755. // width: uni.upx2px(700),
  756. height: uni.upx2px(480)
  757. });
  758. }
  759. if (!interval) {
  760. this.myChart.clear();
  761. }
  762. var data1 = [];
  763. var data2 = [];
  764. // var sumQuantity=0
  765. for (var i in list) {
  766. data1.push(i)
  767. data2.push(list[i].kwh)
  768. // sumQuantity+=list[i]
  769. }
  770. var axisLabel = {
  771. rotate: 40,
  772. interval: 0,
  773. textStyle: {
  774. color: "#333"
  775. }
  776. }
  777. if (data1.length < 4) {
  778. axisLabel = {
  779. interval: 0,
  780. textStyle: {
  781. color: "#333"
  782. },
  783. }
  784. }
  785. // this.sumQuantity = sumQuantity.toFixed(2);
  786. var headitemby = "";
  787. var showkey = "";
  788. var option = {
  789. tooltip: {
  790. trigger: 'axis',
  791. axisPointer: {
  792. type: 'shadow'
  793. },
  794. formatter: (value) => {
  795. var name = value[0].name;
  796. var obj=list[name]
  797. var text= `<p>${name}</p>`
  798. if (obj.electricityPrice != undefined) {
  799. text += `<p>电价:${obj.electricityPrice}元/度</p>`
  800. }
  801. if (obj.kwh != undefined) {
  802. text += `电量:${obj.kwh}度`
  803. }
  804. if (obj.amount != undefined) {
  805. text += ` <p>电费:${obj.amount}元</p>`
  806. }
  807. return text
  808. }
  809. },
  810. grid: {
  811. top: 20,
  812. left: 5,
  813. right: 10,
  814. bottom: 20,
  815. containLabel: true
  816. },
  817. xAxis: {
  818. type: 'category',
  819. data: data1,
  820. axisLabel: axisLabel,
  821. },
  822. yAxis: {
  823. type: 'value',
  824. },
  825. series: [{
  826. name: '合计',
  827. data: data2,
  828. type: 'bar',
  829. label: {
  830. show: true,
  831. position: 'top',
  832. color: '#5C7BD9'
  833. }
  834. }]
  835. }
  836. console.log(option)
  837. this.myChart.setOption(option);
  838. },
  839. selector2confirm(e) {
  840. this.tabsFrom.show2Text = e.year + "年" + e.month + "月"
  841. this.tabsFrom.show2Index = e.year + "-" + e.month
  842. if (e.day) {
  843. this.tabsFrom.show2Text += e.day + "日"
  844. this.tabsFrom.show2Index += '-' + e.day
  845. this.queryDate(this.tabsFrom.show2Index, true)
  846. } else {
  847. this.queryDate(this.tabsFrom.show2Index, false)
  848. }
  849. },
  850. selector2cancel() {
  851. if(this.clickType != -1) {
  852. }
  853. this.value = this.clickType;
  854. },
  855. selector2reset(e) {
  856. console.log(e)
  857. this.tabsFrom.show2Text = '全部时间'
  858. this.tabsFrom.show2Index = '';
  859. if (e.day) {
  860. this.FormData2.queryDate = parseUnixTime(new Date(), '{y}-{m}-{d}');
  861. this.queryDay = parseUnixTime(new Date(this.FormData2.queryDate), '{y}年{m}月{d}日');
  862. this.getTimeSlotStatistics();
  863. } else {
  864. this.clickType="4"
  865. this.FormData.type = this.clickType;
  866. this.value = this.clickType;
  867. this.getElectricityStatistics();
  868. }
  869. },
  870. // 选中某个单选框时,由radio时触发
  871. radioChange(e) {
  872. console.log(`选择前的值: ${this.value}`);
  873. },
  874. // 选中任一radio时,由radio-group触发
  875. radioGroupChange(e) {
  876. console.log(e)
  877. this.clickType = this.FormData.type;
  878. this.FormData.type = e;
  879. if (e == 10) {
  880. this.tabsFrom.show2 = true;
  881. this.params.day = false;
  882. } else {
  883. this.list[5].name = '指定月份'
  884. this.getElectricityStatistics();
  885. }
  886. },
  887. backDataMonitoringList() {
  888. uni.navigateBack()
  889. },
  890. }
  891. };
  892. </script>
  893. <style lang="scss" scoped>
  894. /deep/.u-select__header__title {
  895. font-size: 36rpx;
  896. font-weight: bold;
  897. }
  898. .navbar-c {
  899. background-color: rgba(22, 119, 255, 1);
  900. position: fixed;
  901. top: 0;
  902. left: 0;
  903. right: 0;
  904. z-index: 999;
  905. .back {
  906. z-index: 999;
  907. width: 200rpx;
  908. }
  909. .title {
  910. color: #fff;
  911. display: flex;
  912. align-items: center;
  913. justify-content: center;
  914. }
  915. .right {
  916. .img {
  917. width: 48rpx;
  918. height: 48rpx;
  919. }
  920. }
  921. }
  922. .navbar-d {
  923. background-color: rgba(22, 119, 255, 1);
  924. position: relative;
  925. top: -240rpx;
  926. left: 0;
  927. right: 0;
  928. z-index: 999;
  929. .back {
  930. z-index: 999;
  931. width: 200rpx;
  932. }
  933. .title {
  934. font-size: 36rpx;
  935. color: #fff;
  936. display: flex;
  937. align-items: center;
  938. justify-content: center;
  939. }
  940. .right {
  941. .img {
  942. width: 48rpx;
  943. height: 48rpx;
  944. }
  945. }
  946. }
  947. /deep/.uicon-nav-back {
  948. color: #fff !important;
  949. }
  950. .background {
  951. background-color: rgba(22, 119, 255, 1);
  952. padding-top: 88rpx;
  953. height: 300rpx;
  954. //padding-bottom: 100rpx;
  955. position: relative;
  956. /deep/.u-border-bottom:after {
  957. border: none;
  958. }
  959. .u-nav-slot {
  960. margin-right: 32rpx;
  961. .img {
  962. width: 48rpx;
  963. height: 48rpx;
  964. vertical-align: middle;
  965. }
  966. }
  967. }
  968. .background::after {
  969. content: '';
  970. position: absolute;
  971. bottom:-39rpx;
  972. width: 100%;
  973. height: 40rpx; /* 弧形的高度 */
  974. background-color: rgba(22, 119, 255, 1); /* 弧形的颜色 */
  975. border-radius: 50%; /* 创建圆形 */
  976. border-top-left-radius: 0;
  977. border-top-right-radius: 0;
  978. }
  979. .backgroundref{
  980. height: 220rpx;
  981. background-color: #f2f4f6;
  982. }
  983. .backgroundref::after {
  984. background-color: #f2f4f6;
  985. }
  986. // // 日期
  987. .date-box {
  988. display: flex;
  989. align-items: center;
  990. justify-content: space-between;
  991. margin: 24rpx 32rpx;
  992. .item {
  993. border-radius: 8px;
  994. background-color: rgba(255, 255, 255, 0.1);
  995. border: 1px solid rgba(255, 255, 255, 0.15);
  996. width: 120rpx;
  997. height: 120rpx;
  998. color: #fff;
  999. text-align: center;
  1000. display: flex;
  1001. flex-direction: column;
  1002. justify-content: center;
  1003. .date {
  1004. font-size: 40rpx;
  1005. }
  1006. }
  1007. .item-today {
  1008. background-color: rgba(255, 255, 255, 1);
  1009. position: relative;
  1010. .date {
  1011. color: rgba(22, 119, 255, 1);
  1012. }
  1013. .week {
  1014. color: rgba(16, 16, 16, 1);
  1015. }
  1016. .dot {
  1017. width: 10rpx;
  1018. height: 10rpx;
  1019. background-color: rgba(255, 150, 0, 1);
  1020. border-radius: 999px;
  1021. position: absolute;
  1022. bottom: -5rpx;
  1023. left: 50%;
  1024. transform: translateX(-50%);
  1025. }
  1026. }
  1027. }
  1028. // 用电量
  1029. .electricity-consumption {
  1030. background-color: #fff;
  1031. padding: 32rpx 32rpx 0rpx;
  1032. border-radius: 8px;
  1033. margin: -188rpx 32rpx 0;
  1034. position: relative;
  1035. border: 1px solid rgba(255,255,255,1);
  1036. background: linear-gradient(180deg, rgba(187,216,255,1) 0%,rgba(255,255,255,1) 63%);
  1037. // 统计
  1038. .statistics-content{
  1039. display: flex;
  1040. align-items: center;
  1041. justify-content: space-between;
  1042. .statistics-item{
  1043. width: 300rpx;
  1044. padding: 24rpx 0 24rpx 24rpx;
  1045. border-radius: 8px;
  1046. box-shadow: 0px 0px 8px 0px rgba(22,119,255,0.3);
  1047. background-color: #fff;
  1048. }
  1049. .item-title{
  1050. color: rgba(22,119,255,1);
  1051. font-size: 32rpx;
  1052. display: flex;
  1053. align-items: center;
  1054. font-weight: bold;
  1055. .img{
  1056. width: 32rpx;
  1057. height: 32rpx;
  1058. vertical-align: middle;
  1059. margin-right: 4rpx;
  1060. }
  1061. }
  1062. .item-title2{
  1063. color: rgba(129,97,255,1);
  1064. }
  1065. .item-value{
  1066. color: rgba(16,16,16,1);
  1067. font-size: 48rpx;
  1068. font-weight: bold;
  1069. margin-top: 8rpx;
  1070. overflow: hidden;
  1071. white-space: nowrap;
  1072. text-overflow: ellipsis;
  1073. text{
  1074. display: inline-block;
  1075. width: 80%;
  1076. margin-right: 4rpx;
  1077. }
  1078. }
  1079. }
  1080. .title {
  1081. color: rgba(16, 16, 16, 1);
  1082. font-size: 36rpx;
  1083. }
  1084. .degree {
  1085. display: flex;
  1086. margin-top: 32rpx;
  1087. .item {
  1088. margin-right: 6rpx;
  1089. text-align: center;
  1090. .item-text {
  1091. color: rgba(16, 16, 16, 1);
  1092. }
  1093. .item-number {
  1094. margin-top: 24rpx;
  1095. width: 72rpx;
  1096. height: 96rpx;
  1097. background-color: rgba(16, 16, 16, 1);
  1098. color: #fff;
  1099. font-size: 72rpx;
  1100. }
  1101. .decimal {
  1102. background-color: #900005;
  1103. }
  1104. }
  1105. }
  1106. // .tab {
  1107. // width: 240rpx;
  1108. // height: 0;
  1109. // border-width: 0px 48rpx 72rpx 0px;
  1110. // border-radius: 8px 8px 0 0;
  1111. // border-style: none solid solid none;
  1112. // border-color: transparent transparent #fff;
  1113. // position: absolute;
  1114. // top: -72rpx;
  1115. // left: 0rpx;
  1116. // right: 0rpx;
  1117. // color: #101010;
  1118. // color: rgba(16, 16, 16, 1);
  1119. // text-align: center;
  1120. // line-height: 72rpx;
  1121. // z-index: 999;
  1122. // text-indent: 16rpx;
  1123. // }
  1124. // .tab2 {
  1125. // width: 240rpx;
  1126. // height: 0;
  1127. // border-width: 0px 48rpx 72rpx 0px;
  1128. // border-radius: 8px 8px 0 0;
  1129. // border-style: none solid solid none;
  1130. // border-color: transparent transparent #D4DBE4;
  1131. // position: absolute;
  1132. // top: -72rpx;
  1133. // left: 210rpx;
  1134. // right: 0rpx;
  1135. // color: #777777;
  1136. // text-align: center;
  1137. // line-height: 72rpx;
  1138. // text-indent: 16rpx;
  1139. // }
  1140. .radio {
  1141. margin-top: 24rpx;
  1142. padding-left: 8rpx;
  1143. /deep/.u-radio {
  1144. margin-bottom: 8px;
  1145. min-width: 25% !important;
  1146. }
  1147. /deep/.u-radio__label{
  1148. margin-left: 24rpx;
  1149. font-size: 28rpx; ;
  1150. }
  1151. }
  1152. }
  1153. // 远程控制电源开关
  1154. .control{
  1155. display: flex;
  1156. align-items: center;
  1157. justify-content: space-between;
  1158. margin: 24rpx 32rpx;
  1159. padding: 40rpx 32rpx;
  1160. background-color: #fff;
  1161. border-radius: 8px;
  1162. .text{
  1163. color: rgba(51,51,51,1);
  1164. font-size: 36rpx;
  1165. font-weight: bold;
  1166. }
  1167. .icon{
  1168. img{
  1169. width: 64rpx;
  1170. height: 64rpx;
  1171. }
  1172. }
  1173. }
  1174. //各时段用电量
  1175. .electricity-chart {
  1176. margin: 24rpx 32rpx;
  1177. padding: 40rpx 0rpx;
  1178. background-color: #fff;
  1179. border-radius: 8px;
  1180. .title {
  1181. display: flex;
  1182. align-items: center;
  1183. justify-content: space-between;
  1184. padding: 0 32rpx;
  1185. margin-bottom: 40rpx;
  1186. .icon {
  1187. width: 36rpx;
  1188. height: 36rpx;
  1189. background-color: rgba(182, 212, 255, 1);
  1190. border: 6px solid rgba(22, 119, 255, 1);
  1191. border-radius: 100px;
  1192. }
  1193. .text {
  1194. color: rgba(51, 51, 51, 1);
  1195. font-size: 36rpx;
  1196. margin-left: 16rpx;
  1197. font-weight: bold;
  1198. }
  1199. .more {
  1200. margin-left: auto;
  1201. border: 1px solid rgba(187,187,187,1);
  1202. border-radius: 4px;
  1203. padding: 8rpx;
  1204. font-size: 24rpx;
  1205. }
  1206. }
  1207. .total{
  1208. text-align: center;
  1209. color: rgba(51,51,51,1);
  1210. font-weight: bold;
  1211. }
  1212. .chart {
  1213. width: 100%;
  1214. height: 500rpx;
  1215. .img {
  1216. width: 100%;
  1217. height: 440rpx;
  1218. }
  1219. }
  1220. }
  1221. .equipment-information {
  1222. margin: 24rpx 32rpx;
  1223. padding: 40rpx 0rpx;
  1224. background-color: #fff;
  1225. border-radius: 8px;
  1226. .title {
  1227. display: flex;
  1228. align-items: center;
  1229. padding: 0 32rpx;
  1230. margin-bottom: 40rpx;
  1231. .icon {
  1232. width: 36rpx;
  1233. height: 36rpx;
  1234. background-color: rgba(182, 212, 255, 1);
  1235. border: 6px solid rgba(22, 119, 255, 1);
  1236. border-radius: 100px;
  1237. }
  1238. .text {
  1239. display: flex;
  1240. align-items: center;
  1241. color: rgba(51, 51, 51, 1);
  1242. font-size: 36rpx;
  1243. margin-left: 16rpx;
  1244. font-weight: bold;
  1245. }
  1246. .date {
  1247. margin-left: auto;
  1248. }
  1249. .more {
  1250. color: #838383;
  1251. font-size: 24rpx;
  1252. margin-left: auto;
  1253. }
  1254. }
  1255. .chart {
  1256. width: 100%;
  1257. height: 440rpx;
  1258. .img {
  1259. width: 100%;
  1260. height: 440rpx;
  1261. }
  1262. }
  1263. .infos {
  1264. padding: 0 32rpx;
  1265. display: flex;
  1266. justify-content: space-between;
  1267. text-align: center;
  1268. .border {
  1269. margin: auto 0;
  1270. height: 70rpx;
  1271. width: 2rpx;
  1272. background-color: rgba(204, 204, 204, 1);
  1273. ;
  1274. }
  1275. .item-title {
  1276. color: rgba(119, 119, 119, 1);
  1277. }
  1278. .item-value {
  1279. color: rgba(16, 16, 16, 1);
  1280. font-size: 32rpx;
  1281. margin-top: 16rpx;
  1282. }
  1283. }
  1284. }
  1285. // 异常告警
  1286. .abnormal {
  1287. margin: 24rpx 32rpx;
  1288. padding: 40rpx 32rpx;
  1289. background-color: #fff;
  1290. border-radius: 8px;
  1291. .headline {
  1292. display: flex;
  1293. align-items: center;
  1294. justify-content: space-between;
  1295. }
  1296. .title {
  1297. display: flex;
  1298. align-items: center;
  1299. font-weight: bold;
  1300. .icon {
  1301. width: 36rpx;
  1302. height: 36rpx;
  1303. background-color: rgba(182, 212, 255, 1);
  1304. border: 6px solid rgba(22, 119, 255, 1);
  1305. border-radius: 100px;
  1306. }
  1307. .text {
  1308. color: rgba(51, 51, 51, 1);
  1309. font-size: 36rpx;
  1310. margin-left: 16rpx;
  1311. }
  1312. }
  1313. .more {
  1314. color: #838383;
  1315. font-size: 24rpx
  1316. }
  1317. .details {
  1318. margin-top: 40rpx;
  1319. .item {
  1320. display: flex;
  1321. align-items: center;
  1322. justify-content: space-between;
  1323. margin-top: 32rpx;
  1324. .name {
  1325. color: rgba(51, 51, 51, 1);
  1326. }
  1327. .time {
  1328. color: rgba(119, 119, 119, 1);
  1329. font-size: 24rpx;
  1330. display: flex;
  1331. align-items: center;
  1332. .more{
  1333. margin-left: 4rpx;
  1334. }
  1335. }
  1336. }
  1337. }
  1338. }
  1339. // 能源监测
  1340. .energy-inspection,
  1341. .data-analysis {
  1342. margin: 24rpx 32rpx;
  1343. padding: 40rpx 32rpx;
  1344. background-color: #fff;
  1345. border-radius: 8px;
  1346. .title {
  1347. display: flex;
  1348. align-items: center;
  1349. font-weight: bold;
  1350. .icon {
  1351. width: 36rpx;
  1352. height: 36rpx;
  1353. background-color: rgba(182, 212, 255, 1);
  1354. border: 6px solid rgba(22, 119, 255, 1);
  1355. border-radius: 100px;
  1356. }
  1357. .text {
  1358. color: rgba(51, 51, 51, 1);
  1359. font-size: 36rpx;
  1360. margin-left: 16rpx;
  1361. }
  1362. }
  1363. .grid {
  1364. .icon {
  1365. width: 128rpx;
  1366. height: 128rpx;
  1367. border-radius: 12px;
  1368. background-color: rgba(35, 186, 178, 1);
  1369. display: flex;
  1370. align-items: center;
  1371. justify-content: center;
  1372. margin-bottom: 16rpx;
  1373. .img {
  1374. width: 80rpx;
  1375. height: 80rpx;
  1376. }
  1377. }
  1378. .icon2 {
  1379. background-color: rgba(42, 186, 72, 1);
  1380. }
  1381. .icon3 {
  1382. background-color: rgba(78, 96, 246, 1);
  1383. }
  1384. .icon4 {
  1385. background-color: rgba(22, 119, 255, 1);
  1386. }
  1387. .icon5 {
  1388. background-color: rgba(35, 186, 178, 1);
  1389. }
  1390. .icon6 {
  1391. background-color: rgba(42, 186, 72, 1);
  1392. }
  1393. .icon7 {
  1394. background-color: rgba(22, 119, 255, 1);
  1395. }
  1396. .icon8 {
  1397. background-color: rgba(35, 186, 178, 1);
  1398. }
  1399. .icon9 {
  1400. background-color: rgba(42, 186, 72, 1);
  1401. }
  1402. .grid-text {
  1403. color: #333333;
  1404. }
  1405. }
  1406. }
  1407. // 设备信息弹窗
  1408. .equipment-popup {
  1409. .content {
  1410. padding: 32rpx;
  1411. .headline {
  1412. color: rgba(16, 16, 16, 1);
  1413. font-size: 36rpx;
  1414. text-align: center;
  1415. font-weight: bold;
  1416. margin-bottom: 24rpx;
  1417. }
  1418. .infos {
  1419. //padding-bottom: 100rpx;
  1420. .item:last-of-type {
  1421. border: none;
  1422. }
  1423. .item {
  1424. display: flex;
  1425. align-items: center;
  1426. //line-height: 48rpx;
  1427. padding: 20rpx 0;
  1428. border-bottom: 1px solid #cccccc;
  1429. .item-title {
  1430. color: rgba(51, 51, 51, 1);
  1431. width: 200rpx;
  1432. }
  1433. .item-value {
  1434. color: #666666;
  1435. flex: 1;
  1436. margin-left: 16rpx;
  1437. display: flex;
  1438. align-items: center;
  1439. justify-content: space-between;
  1440. .img{
  1441. width: 32rpx;
  1442. height: 32rpx;
  1443. transform: rotate(90deg);
  1444. margin-left: 96rpx;
  1445. }
  1446. }
  1447. }
  1448. }
  1449. .get {
  1450. height: 80rpx;
  1451. line-height: 80rpx;
  1452. border-radius: 4px;
  1453. background-color: rgba(22, 119, 255, 1);
  1454. color: rgba(255, 255, 255, 1);
  1455. font-size: 32rpx;
  1456. }
  1457. }
  1458. }
  1459. // 创建工单
  1460. .create-order {
  1461. width: 120rpx;
  1462. height: 120rpx;
  1463. border-radius: 20px;
  1464. background: linear-gradient(180.29deg, rgba(255, 124, 112, 1) 0.9%, rgba(255, 79, 63, 1) 100.4%);
  1465. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
  1466. text-align: center;
  1467. display: flex;
  1468. flex-direction: column;
  1469. justify-content: center;
  1470. align-items: center;
  1471. position: fixed;
  1472. right: 32rpx;
  1473. bottom: 64rpx;
  1474. .img {
  1475. width: 56rpx;
  1476. height: 56rpx;
  1477. vertical-align: middle;
  1478. }
  1479. .text {
  1480. color: rgba(255, 255, 255, 1);
  1481. font-size: 22rpx;
  1482. }
  1483. }
  1484. </style>