electronicMonitoringWater.vue 36 KB

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