electronicMonitoring.vue 37 KB

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