electronicMonitoring.vue 37 KB

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