electronicMonitoring.vue 36 KB

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