index.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954
  1. <template>
  2. <view>
  3. <u-navbar v-show="false" title="首页" title-color="#101010"></u-navbar>
  4. <u-picker v-model="body2data.vue.show" :params="body2data.vue.params"
  5. :default-time="body2data.query.startTime"
  6. @confirm="body2dataconfirm"
  7. mode="time"></u-picker>
  8. <u-picker v-model="body5data.vue.show"
  9. :default-time="body2data.query.queryDate"
  10. :params="body5data.vue.params" @confirm="body5dataconfirm"
  11. mode="time"></u-picker>
  12. <view class="navbar">
  13. 智泊e家 运管端
  14. </view>
  15. <view class="tabs-box">
  16. <u-picker-jp v-model="showselect1" range-key="name" :num="3" @confirm="showselect1confirm"
  17. :range="companyList"></u-picker-jp>
  18. <template v-if="companyListTabs.length>2">
  19. <u-tabs ref="tabs" :list="companyListTabs" bg-color="#1677ff" :current="current1" inactive-color="#fff"
  20. @change="utabsChange1" item-width="180" height="70" gutter="10" active-color="#fff"></u-tabs>
  21. <view class="tabs-box-other" v-if="companyList.length>3" @click="utabsChange1other">
  22. 更多
  23. </view>
  24. </template>
  25. </view>
  26. <view class="main">
  27. <u-picker-jp v-model="showselect2" range-key="name" :num='3' @confirm="showselect2confirm"
  28. :range="parkingList"></u-picker-jp>
  29. <view class="tabs-box2" v-show="parkingListTabs.length>2">
  30. <u-tabs ref="tabs2" gutter="10" :list="parkingListTabs" :current="current2" @change="utabsChange2"
  31. item-width="180" bg-color="#f2f4f6" height="70"></u-tabs>
  32. <view v-if="parkingList.length>3" class="tabs-box-other" @click="utabsChange2other">
  33. 更多
  34. </view>
  35. </view>
  36. <view class="statistics ">
  37. <view class="title">
  38. <view class="icon">
  39. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  40. </view>
  41. <view class="text">
  42. 综合统计
  43. </view>
  44. </view>
  45. <view class="contentBody">
  46. <jpContent :status="jpContentMap.body1">
  47. <view class="body1pie-table">
  48. <view class="tr">
  49. <view class="td td1">
  50. <view id="body1pie1" class="body1pie">
  51. </view>
  52. </view>
  53. <view class="td td2">
  54. <view class="td td3">
  55. <view class="td td4">空闲<span
  56. class="body1pie-num color53B56B">{{body1data.data.idleNum}}</span>台
  57. </view>
  58. <view class="td td4">占用<span
  59. class="body1pie-num colorAAAAAA">{{body1data.data.useNum}}</span>台
  60. </view>
  61. </view>
  62. <view class="td td3" >
  63. <view class="td td4">公共车位<span
  64. class="body1pie-num colorEF8132">{{body1data.data1.type1}}</span>台
  65. </view>
  66. <view class="td td4">私家车位<span
  67. class="body1pie-num colorDC4441">{{body1data.data1.type2}}</span>台
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="tr">
  73. <view class="td td1">
  74. <view id="body1pie2" class="body1pie">
  75. </view>
  76. </view>
  77. <view class="td td2">
  78. <view class="td td3">
  79. <view class="td td4">正常<span
  80. class="body1pie-num color53B56B">{{body1data.data.normalNum}}</span>台
  81. </view>
  82. <view class="td td4">离线<span
  83. class="body1pie-num colorAAAAAA">{{body1data.data.loseNum}}</span>台
  84. </view>
  85. </view>
  86. <view class="td td3">
  87. <view class="td td4">故障<span
  88. class="body1pie-num colorEF8132">{{body1data.data.errorNum}}</span>台
  89. </view>
  90. <view class="td td4" v-if="0">低电量<span
  91. class="body1pie-num colorDC4441">5</span>台</view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="tr" v-if="0">
  96. <view class="td td1">
  97. <view id="body1pie3" class="body1pie">
  98. </view>
  99. </view>
  100. <view class="td td2">
  101. <view class="td td3">
  102. <view class="td td4">管理员<span class="body1pie-num color307AF6">5</span>人</view>
  103. <view class="td td4">白名单<span class="body1pie-num color53B56B">5</span>人</view>
  104. </view>
  105. <view class="td td3">
  106. <view class="td td4">游客<span class="body1pie-num colorEF8375">5</span>人次</view>
  107. <view class="td td4"></view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </jpContent>
  113. </view>
  114. </view>
  115. <view class="statistics " >
  116. <view class="title">
  117. <view class="icon">
  118. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  119. </view>
  120. <view class="text">
  121. <view>时空矩阵图</view>
  122. <view class="tag" @click="body5data.vue.show=true">{{body5data.vue.queryN}}<u-icon
  123. name="arrow-down"></u-icon></view>
  124. </view>
  125. </view>
  126. <view class="contentBody">
  127. <jpContent :status="jpContentMap.body5">
  128. <view class="body5main">
  129. <view id="body5echart" class="body5class">
  130. </view>
  131. </view>
  132. </jpContent>
  133. </view>
  134. </view>
  135. <view class="statistics " v-show="companyId">
  136. <view class="title">
  137. <view class="icon">
  138. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  139. </view>
  140. <view class="text">
  141. <view>车位异常记录</view>
  142. <view class="check-all" @click="gotoUrl('/pages/myTab/abnormalList?companyId='+companyId)">
  143. 查看全部<u-icon name="arrow-right"></u-icon></view>
  144. </view>
  145. </view>
  146. <view class="contentBody">
  147. <jpContent :status="jpContentMap.body6">
  148. <view class="body6main">
  149. <view class="line" v-for="(item,index) in abnormalRecordsList" :key="index">
  150. <view class="abnormal-item">
  151. <!-- @click="gotoUrl('/pages/abnormal/abnormalAlarmDetails?id='+item.id)"
  152. -->
  153. <view class="item-title">
  154. <view class="name">
  155. <span v-if="item.level==1" class="level level1 ">一级</span>
  156. <span v-if="item.level==2" class="level level2">二级</span>
  157. {{item.content}}
  158. </view>
  159. <view class="date"
  160. style="display: flex; justify-content: space-between;margin-top: 4rpx;">
  161. <view>{{item.title}}</view>
  162. <view>{{item.createTime}}</view>
  163. </view>
  164. </view>
  165. </view>
  166. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  167. </view>
  168. </view>
  169. </jpContent>
  170. </view>
  171. </view>
  172. <view class="statistics ">
  173. <view class="title">
  174. <view class="icon">
  175. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  176. </view>
  177. <view class="text">
  178. <view>车位平均占用率(%)</view>
  179. <view class="tag" @click="body2data.vue.show=true">{{body2data.vue.queryN}}<u-icon
  180. name="arrow-down"></u-icon></view>
  181. </view>
  182. </view>
  183. <view class="contentBody">
  184. <jpContent :status="jpContentMap.body2">
  185. <view class="body2lineChart">
  186. <view id="body2line1" class="body2line">
  187. </view>
  188. </view>
  189. </jpContent>
  190. </view>
  191. </view>
  192. <view class="statistics ">
  193. <view class="title">
  194. <view class="icon">
  195. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  196. </view>
  197. <view class="text">
  198. <view>高频使用时段分布</view>
  199. </view>
  200. </view>
  201. <view class="contentBody">
  202. <jpContent :status="jpContentMap.body3">
  203. <view class="body3barChart">
  204. <view id="body3bar1" class="body3bar">
  205. </view>
  206. </view>
  207. </jpContent>
  208. </view>
  209. </view>
  210. <view class="statistics ">
  211. <view class="title">
  212. <view class="icon">
  213. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  214. </view>
  215. <view class="text">
  216. <view>用户停留时长分群特征</view>
  217. </view>
  218. </view>
  219. <view class="contentBody">
  220. <jpContent :status="jpContentMap.body4">
  221. <view class="body4pieChart">
  222. <view id="body4pie1" class="body4pie">
  223. </view>
  224. </view>
  225. </jpContent>
  226. </view>
  227. </view>
  228. <view class="statistics " v-show="companyId">
  229. <view class="title">
  230. <view class="icon">
  231. <image class="img" src="@/assets/img/circleCopy1@1x.png" mode=""></image>
  232. </view>
  233. <view class="text">
  234. <view>设备列表</view>
  235. <view class="check-all" @click="gotoDeviceList()">查看全部<u-icon name="arrow-right"></u-icon>
  236. </view>
  237. </view>
  238. </view>
  239. <view class="contentBody">
  240. <jpContent :status="jpContentMap.body7">
  241. <view class="body7main">
  242. <view class="line" v-for="(item,index) in equipmentList"
  243. @click="gotoUrl('/pages/deviceTab/dataLock?id='+item.id)" :key="index">
  244. <view class="item">
  245. <!--
  246. -->
  247. <view class="item-title">
  248. {{item.name}}
  249. </view>
  250. <view class="item-tags">
  251. <view class="tag " :class="'tag'+item.type">
  252. {{item.typeN}}
  253. </view>
  254. <view class="tag" :class="'statusN'+item.status">
  255. {{item.statusN}}
  256. </view>
  257. <view class="tag" :class="'lockStatus'+item.lockStatus">
  258. {{item.lockStatus==0?'空闲':'使用中'}}
  259. </view>
  260. </view>
  261. </view>
  262. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  263. </view>
  264. <u-divider border-color="#CFD2D5" @click="gotoDeviceList()"
  265. v-if="equipmentList.length==10">最多显示10条,点击查看更多</u-divider>
  266. </view>
  267. </jpContent>
  268. </view>
  269. </view>
  270. <u-divider border-color="#CFD2D5">已经到底了</u-divider>
  271. </view>
  272. <tabbar :current="0"></tabbar>
  273. </view>
  274. </template>
  275. <script>
  276. import Tabbar from '@/components/Tabbar.vue'
  277. import jpContent from '@/components/JPcontent.vue'
  278. import * as echarts from 'echarts';
  279. import * as API from '@/apis/pagejs/index.js'
  280. import {
  281. parseUnixTime,
  282. beforeTimeStamp,
  283. newDate
  284. } from '@/apis/utils'
  285. export default {
  286. components: {
  287. Tabbar,
  288. jpContent
  289. },
  290. data() {
  291. return {
  292. current1: 0,
  293. showselect1: false,
  294. current2: 0,
  295. showselect2: false,
  296. isReady: false,
  297. companyList: [],
  298. parkingList: [],
  299. //companyListIndex:0,
  300. companyId: "",
  301. parkingId: "",
  302. echartsList: {},
  303. equipmentList: [{}],
  304. abnormalRecordsList: [{
  305. level: 1,
  306. content: "1111111",
  307. title: "11",
  308. createTime: "123:123"
  309. },
  310. {
  311. level: 2,
  312. content: "1111111",
  313. title: "11",
  314. createTime: "123:123"
  315. }
  316. ],
  317. body2data: {
  318. query: {},
  319. vue: {
  320. queryN: "",
  321. show: false,
  322. params: {
  323. year: true,
  324. month: true,
  325. day: false,
  326. hour: false,
  327. minute: false,
  328. second: false
  329. }
  330. },
  331. data: {}
  332. },
  333. body1data: {
  334. query: {},
  335. data: {},
  336. data1: {}
  337. },
  338. body4data: {
  339. query: {},
  340. data: {}
  341. },
  342. body3data: {
  343. query: {},
  344. data: {}
  345. },
  346. body5data: {
  347. query: {},
  348. data: {},
  349. vue: {
  350. queryN: "",
  351. show: false,
  352. params: {
  353. year: true,
  354. month: true,
  355. day: true,
  356. hour: false,
  357. minute: false,
  358. second: false
  359. }
  360. },
  361. },
  362. jpContentMap: {
  363. body1: 0,
  364. body2: 0,
  365. body3: 0,
  366. body4: 0,
  367. body5: 0,
  368. body6: 0,
  369. body7: 0,
  370. body8: 0,
  371. body9: 0,
  372. body10: 0,
  373. }
  374. }
  375. },
  376. onLoad() {
  377. },
  378. onReady() {
  379. this.getfindByOpenId();
  380. },
  381. computed: {
  382. companyListTabs() {
  383. var sz = []
  384. if (this.companyList.length > 3) {
  385. sz = [{
  386. id: "",
  387. name: '全部'
  388. }]
  389. sz.push(this.companyList[0])
  390. sz.push(this.companyList[1])
  391. } else {
  392. sz = [{
  393. id: "",
  394. name: '全部'
  395. },
  396. ...this.companyList
  397. ]
  398. }
  399. return sz
  400. },
  401. parkingListTabs() {
  402. var sz = []
  403. if (this.parkingList.length > 3) {
  404. sz = [{
  405. id: "",
  406. name: '综合查询'
  407. }]
  408. sz.push(this.parkingList[0])
  409. sz.push(this.parkingList[1])
  410. } else {
  411. sz = [{
  412. id: "",
  413. name: '综合查询'
  414. },
  415. ...this.parkingList
  416. ]
  417. }
  418. return sz
  419. },
  420. },
  421. methods: {
  422. gotoDeviceList() {
  423. if (this.companyId) {
  424. this.gotoUrl('/pages/deviceTab/deviceList?companyId=' + this.companyId)
  425. } else {
  426. this.gotoUrl('/pages/deviceTab/index')
  427. }
  428. },
  429. getfloorStatus() {
  430. this.jpContentMap.body1 = 0
  431. API.floorStatus({
  432. companyId: this.companyId,
  433. parkingId: this.parkingId
  434. }).then((response) => {
  435. this.body1data.data = response.data
  436. uni.hideLoading();
  437. this.jpContentMap.body1 = 2
  438. this.getbody1pie1()
  439. this.getbody1pie2()
  440. this.getbody1pie3()
  441. }).catch(error => {
  442. uni.showToast({
  443. title: error,
  444. icon: "none"
  445. })
  446. })
  447. },
  448. getfloorlockList() {
  449. this.jpContentMap.body7 = 0
  450. API.floorlockList({
  451. companyId: this.companyId,
  452. parkingId: this.parkingId,
  453. pageSize: 10
  454. }).then((response) => {
  455. uni.hideLoading();
  456. if (response.data.totalPage) {
  457. this.jpContentMap.body7 = 2
  458. this.equipmentList = response.data.data
  459. var num1=0
  460. var num2=0
  461. this.equipmentList.forEach(item=>{
  462. if(item.type==1){
  463. num1+=1
  464. }
  465. if(item.type==2){
  466. num2+=1
  467. }
  468. })
  469. this.body1data.data1.type1=num1
  470. this.body1data.data1.type2=num2
  471. } else {
  472. this.jpContentMap.body7 = 1
  473. }
  474. }).catch(error => {
  475. uni.showToast({
  476. title: error,
  477. icon: "none"
  478. })
  479. })
  480. },
  481. getApi1() {
  482. if (this.companyId == "") {
  483. this.getApi2()
  484. } else {
  485. this.parkingInfoList()
  486. }
  487. },
  488. getApi2() {
  489. this.getfloorStatus()
  490. this.getfloorlockList()
  491. this.occupancyByTime(1);
  492. this.occupancyByTimeBar(1);
  493. this.occupancyByDay(1);
  494. this.durationDistribution();
  495. if (this.parkingId == "") {
  496. } else {
  497. }
  498. },
  499. change1companyList(i) {
  500. //this.companyListIndex=i
  501. var companyId = ""
  502. if (i == -1) {
  503. if (this.companyId == companyId) {
  504. } else {
  505. this.companyId = ""
  506. this.parkingList = [];
  507. this.getApi1()
  508. }
  509. } else {
  510. var item = this.companyList[i]
  511. companyId = item.id
  512. if (this.companyId == companyId) {
  513. } else {
  514. this.companyId = companyId
  515. this.parkingId = "";
  516. this.current2 = 0;
  517. this.$refs.tabs2.showBar = true
  518. this.getApi1()
  519. }
  520. }
  521. },
  522. change2parkingList(i) {
  523. var parkingId = ""
  524. if (i == -1) {
  525. if (this.parkingId == parkingId) {
  526. } else {
  527. this.parkingId = "";
  528. this.getApi2()
  529. }
  530. } else {
  531. var item = this.parkingList[i]
  532. parkingId = item.id
  533. if (this.parkingId == parkingId) {
  534. } else {
  535. this.parkingId = parkingId;
  536. this.getApi2()
  537. }
  538. }
  539. },
  540. showselect2confirm(e) {
  541. this.change2parkingList(e[0])
  542. },
  543. utabsChange2other() {
  544. this.$refs.tabs2.showBar = false
  545. this.current2 = -1;
  546. this.showselect2 = true;
  547. },
  548. utabsChange2(index) {
  549. this.current2 = index;
  550. this.change2parkingList(index - 1)
  551. this.$refs.tabs2.showBar = true
  552. },
  553. showselect1confirm(e) {
  554. this.change1companyList(e[0])
  555. },
  556. utabsChange1other() {
  557. this.$refs.tabs.showBar = false
  558. this.current1 = -1;
  559. this.showselect1 = true;
  560. },
  561. utabsChange1(index) {
  562. this.current1 = index;
  563. this.change1companyList(index - 1)
  564. this.$refs.tabs.showBar = true
  565. },
  566. parkingInfoList() {
  567. uni.showLoading({
  568. title: "加载中",
  569. mask: true,
  570. })
  571. this.parkingList = [];
  572. API.parkingList({
  573. companyId: this.companyId,
  574. pageSize: 999
  575. }).then((response) => {
  576. uni.hideLoading();
  577. var parkingInfoList = response.data.parkingInfoList
  578. this.parkingList = [
  579. ...parkingInfoList,
  580. ];
  581. if (this.parkingList.length == 1) {
  582. this.change2parkingList(0)
  583. } else {
  584. this.change2parkingList(-1)
  585. this.getApi2()
  586. }
  587. this.getfloorlockList()
  588. }).catch(error => {
  589. uni.showToast({
  590. title: error,
  591. icon: "none"
  592. })
  593. })
  594. },
  595. companyInfoList() {
  596. uni.showLoading({
  597. title: "加载中",
  598. mask: true,
  599. })
  600. this.companyList = [];
  601. API.companyInfoList({
  602. }).then((response) => {
  603. uni.hideLoading();
  604. var companyInfoList = response.data.companyInfoList
  605. this.companyList = [
  606. ...companyInfoList,
  607. ];
  608. if (this.companyList.length == 1) {
  609. this.change1companyList(0)
  610. } else {
  611. this.change1companyList(-1)
  612. this.getApi1()
  613. }
  614. }).catch(error => {
  615. uni.showToast({
  616. title: error,
  617. icon: "none"
  618. })
  619. })
  620. },
  621. init() {
  622. this.companyInfoList()
  623. //this.occupancyByTime();
  624. //this.getbody3()
  625. //this.getbody4()
  626. //this.getbody5()
  627. },
  628. body2dataconfirm(e) {
  629. var date = new Date(e.year + "-" + e.month + "-1");
  630. this.body2data.vue.queryN = date.getFullYear() + "年" + (date.getMonth() + 1) + '月';
  631. this.body2data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  632. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  633. this.body2data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  634. this.occupancyByTime()
  635. },
  636. body5dataconfirm(e) {
  637. console.log(e)
  638. var date = new Date(e.year + "-" + e.month + "-"+e.day);
  639. this.body5data.query.queryDate = parseUnixTime(date, '{y}-{m}-{d}')
  640. this.body5data.vue.queryN = parseUnixTime(date, '{y}年{m}月{d}日');
  641. this.occupancyByDay()
  642. },
  643. occupancyByTimeBar(init) {
  644. if (init) {
  645. var date = new Date();
  646. //this.body3data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  647. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  648. //this.body3data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  649. }
  650. this.jpContentMap.body3 = 0
  651. this.body3data.query.companyId = this.companyId
  652. this.body3data.query.parkingId = this.parkingId
  653. API.occupancyByTimeBar(
  654. this.body3data.query
  655. ).then((response) => {
  656. this.body3data.data = [
  657. ...response.data.locksTimeList,
  658. // ...response.data.locksTimeList,
  659. ];
  660. if (this.body3data.data.length == 0) {
  661. this.jpContentMap.body3 = 1
  662. } else {
  663. this.jpContentMap.body3 = 2
  664. this.getbody3()
  665. }
  666. }).catch(error => {
  667. uni.showToast({
  668. title: error,
  669. icon: "none"
  670. })
  671. })
  672. },
  673. durationDistribution(){
  674. this.jpContentMap.body4 = 0
  675. var date = new Date();
  676. this.body4data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  677. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  678. this.body4data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  679. this.body4data.query.companyId = this.companyId
  680. this.body4data.query.parkingId = this.parkingId
  681. API.durationDistribution(
  682. this.body4data.query
  683. ).then((response) => {
  684. this.body4data.data = response.data.distribution;
  685. if (this.body4data.data.length == 0) {
  686. this.jpContentMap.body4 = 1
  687. } else {
  688. this.jpContentMap.body4 = 2
  689. //this.getbody3()
  690. this.getbody4()
  691. }
  692. }).catch(error => {
  693. uni.showToast({
  694. title: error,
  695. icon: "none"
  696. })
  697. })
  698. },
  699. occupancyByDay(init) {
  700. if (init) {
  701. var date = new Date();
  702. this.body5data.query.queryDate = parseUnixTime(date, '{y}-{m}-{d}')
  703. this.body5data.vue.queryN = parseUnixTime(date, '{y}年{m}月{d}日');
  704. }
  705. this.jpContentMap.body5 = 0
  706. this.body5data.query.companyId = this.companyId
  707. this.body5data.query.parkingId = this.parkingId
  708. API.occupancyByDay(
  709. this.body5data.query
  710. ).then((response) => {
  711. this.body5data.data = [
  712. ...response.data.locksTimeList,
  713. ];
  714. if (this.body5data.data.length == 0) {
  715. this.jpContentMap.body5 = 1
  716. } else {
  717. this.jpContentMap.body5 = 2
  718. //this.getbody3()
  719. this.getbody5()
  720. }
  721. }).catch(error => {
  722. uni.showToast({
  723. title: error,
  724. icon: "none"
  725. })
  726. })
  727. },
  728. occupancyByTime(init) {
  729. if (init) {
  730. var date = new Date();
  731. this.body2data.vue.queryN = date.getFullYear() + "年" + (date.getMonth() + 1) + '月';
  732. this.body2data.query.startTime = date.getFullYear() + "-" + (date.getMonth() + 1) + "-1"
  733. var endOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0)
  734. this.body2data.query.endTime = parseUnixTime(endOfMonth, '{y}-{m}-{d}')
  735. }
  736. this.jpContentMap.body2 = 0
  737. this.body2data.query.companyId = this.companyId
  738. this.body2data.query.parkingId = this.parkingId
  739. API.occupancyByTime(
  740. this.body2data.query
  741. ).then((response) => {
  742. this.body2data.data = [
  743. ...response.data.locksTimeList,
  744. // ...response.data.locksTimeList,
  745. ];
  746. if (this.body2data.data.length == 0) {
  747. this.jpContentMap.body2 = 1
  748. } else {
  749. this.jpContentMap.body2 = 2
  750. this.getbody2()
  751. }
  752. }).catch(error => {
  753. uni.showToast({
  754. title: error,
  755. icon: "none"
  756. })
  757. })
  758. },
  759. getbody5() {
  760. // 颜色映射
  761. var colorMap = [
  762. '#FFA500',
  763. '#00FF00',
  764. '#F44336',
  765. '#E91E63',
  766. '#9C27B0',
  767. '#673AB7',
  768. '#3F51B5',
  769. '#2196F3',
  770. '#03A9F4',
  771. '#00BCD4',
  772. '#009688',
  773. '#CDDC39',
  774. '#FFEB3B',
  775. '#FFC107',
  776. '#FF9800',
  777. '#FF5722',
  778. '#795548',
  779. '#607D8B'
  780. ];
  781. var key = "body5echart"
  782. var dataApi = this.body5data.data;
  783. var head = 40 * (parseInt(dataApi.length / 4)) + 20
  784. var body =20 * (parseInt(dataApi.length ))
  785. var myChart = this.echartsList[key];
  786. if (!myChart) {
  787. myChart = echarts.init(document.getElementById(key), null, {
  788. width: uni.upx2px(300 * 2),
  789. height: uni.upx2px((170 + head) * 2+body)
  790. })
  791. }
  792. myChart.clear()
  793. var dataName=[]
  794. var dataTime=[]
  795. var series=[]
  796. var i =0;
  797. dataApi.forEach(item => {
  798. dataName.push(item.lockName)
  799. var itemList=[]
  800. var j=0
  801. item.timeUseList.forEach(item2=>{
  802. Object.keys(item2).forEach(key1 => {
  803. console.log(item2[key1])
  804. if(item2[key1]){
  805. var ob=[j,i,i]
  806. itemList.push(ob)
  807. }else{
  808. // var ob=[j,i,i]
  809. // itemList.push(ob)
  810. }
  811. });
  812. j+=1;
  813. })
  814. var obj={
  815. silent: true,
  816. type: 'custom',
  817. "name": item.lockName,
  818. tooltip:{
  819. //trigger: 'none',
  820. show:false
  821. },
  822. itemStyle: {
  823. color: colorMap[i%colorMap.length]
  824. },
  825. renderItem: function(params, api) {
  826. var xIndex = api.value(0); // x轴索引
  827. var yIndex = api.value(1); // y轴索引
  828. var value = api.value(2); // 值
  829. // 获取颜色
  830. var color = colorMap[value%colorMap.length] || '#ffffff';
  831. // 计算矩形的位置和大小
  832. var x = api.coord([xIndex, yIndex])[0];
  833. var y = api.coord([xIndex, yIndex])[1];
  834. var width = api.size([1, 0])[0];
  835. var height = api.size([0, 1])[1];
  836. return {
  837. type: 'rect',
  838. shape: {
  839. x: x - uni.upx2px(25),
  840. y: y - uni.upx2px(20),
  841. width: width,
  842. height: 20,
  843. },
  844. style: {
  845. fill: color
  846. }
  847. };
  848. },
  849. }
  850. obj.data=itemList
  851. series.push(obj)
  852. i+=1;
  853. })
  854. dataApi[0].timeUseList.forEach(item => {
  855. Object.keys(item).forEach(key1 => {
  856. dataTime.push(key1)
  857. });
  858. })
  859. var option = {
  860. tooltip: {
  861. trigger: 'axis',
  862. axisPointer: {
  863. type: 'shadow'
  864. }
  865. },
  866. grid: {
  867. top: 30 + head,
  868. left: -10,
  869. right: 0,
  870. bottom: 0,
  871. containLabel: true
  872. },
  873. legend: {
  874. data:dataName
  875. },
  876. xAxis: {
  877. type: 'category',
  878. data: dataTime
  879. },
  880. yAxis: {
  881. type: 'category',
  882. },
  883. series:series
  884. };
  885. myChart.setOption(option);
  886. this.echartsList[key] = myChart;
  887. },
  888. getbody4() {
  889. var key = "body4pie1"
  890. var myChart = this.echartsList[key];
  891. if (!myChart) {
  892. myChart = echarts.init(document.getElementById(key), null, {
  893. width: uni.upx2px(300 * 2),
  894. height: uni.upx2px(170 * 2)
  895. })
  896. }
  897. myChart.clear()
  898. var dataApi = this.body4data.data;
  899. var data=[]
  900. var num=0
  901. var sum=0
  902. Object.keys(dataApi).forEach(key1 => {
  903. num+=dataApi[key1]
  904. });
  905. var i=0
  906. Object.keys(dataApi).forEach(key1 => {
  907. var value=dataApi[key1]
  908. var obj={
  909. value: value,
  910. name: key1
  911. }
  912. if(num!=0){
  913. var valueInt=parseInt(value/num*100)
  914. if(valueInt==0&&value!=0){
  915. valueInt=1
  916. }
  917. sum+=valueInt;
  918. if(i==Object.keys(dataApi).length-1){
  919. if(sum!=100){
  920. valueInt+=(100-sum)
  921. }
  922. }
  923. obj.name+='\n'+(valueInt)+'%'
  924. }
  925. data.push(obj)
  926. i++;
  927. });
  928. var option = {
  929. grid: {
  930. top: 20,
  931. left: 0,
  932. right: 0,
  933. bottom: 0,
  934. containLabel: true
  935. },
  936. series: [{
  937. type: 'pie',
  938. radius: ['80%', '50%'],
  939. radius: [45, 60],
  940. data: data
  941. }]
  942. };
  943. console.log(option)
  944. myChart.setOption(option);
  945. this.echartsList[key] = myChart;
  946. },
  947. getbody3() {
  948. var key = "body3bar1"
  949. var myChart = this.echartsList[key];
  950. if (!myChart) {
  951. myChart = echarts.init(document.getElementById(key), null, {
  952. width: uni.upx2px(300 * 2),
  953. height: uni.upx2px(170 * 2)
  954. })
  955. }
  956. var dataApi = this.body3data.data;
  957. myChart.clear()
  958. var data1 = []
  959. var data2 = [] //useDays
  960. var i = 0
  961. dataApi[0].timeUseList.forEach(item => {
  962. Object.keys(item).forEach(key1 => {
  963. data1.push(key1)
  964. var num = 0
  965. dataApi.forEach(item2 => {
  966. num += item2.timeUseList[i][key1].useDays
  967. })
  968. data2.push(num)
  969. });
  970. i += 1
  971. })
  972. var axisLabel = {
  973. rotate: 40,
  974. interval: 0,
  975. textStyle: {
  976. color: "#333"
  977. }
  978. }
  979. if (data1.length < 7) {
  980. axisLabel = {
  981. interval: 0,
  982. textStyle: {
  983. color: "#333"
  984. },
  985. }
  986. } else {
  987. axisLabel.interval = 0;
  988. }
  989. var option = {
  990. xAxis: {
  991. type: 'category',
  992. data: data1,
  993. axisLabel: axisLabel,
  994. },
  995. tooltip: {
  996. trigger: 'axis',
  997. axisPointer: {
  998. type: 'shadow'
  999. }
  1000. },
  1001. yAxis: {
  1002. type: 'value'
  1003. },
  1004. grid: {
  1005. top: 20,
  1006. left: 0,
  1007. right: 0,
  1008. bottom: 0,
  1009. containLabel: true
  1010. },
  1011. series: [{
  1012. itemStyle: {
  1013. color: "#5A88E5"
  1014. },
  1015. data: data2,
  1016. type: 'bar'
  1017. }]
  1018. };
  1019. myChart.setOption(option);
  1020. this.echartsList[key] = myChart;
  1021. },
  1022. getbody2() {
  1023. var key = "body2line1"
  1024. var myChart = this.echartsList[key];
  1025. var dataApi = this.body2data.data;
  1026. var head = 20 * (parseInt(dataApi.length / 4)) + 20
  1027. if (!myChart) {
  1028. myChart = echarts.init(document.getElementById(key), null, {
  1029. width: uni.upx2px(300 * 2),
  1030. height: uni.upx2px((170 + head) * 2)
  1031. })
  1032. }
  1033. myChart.clear()
  1034. var data1 = []
  1035. var series = [];
  1036. dataApi.forEach(item => {
  1037. var obj = {
  1038. name: item.lockName,
  1039. //areaStyle: {},
  1040. // itemStyle: {
  1041. // color: "#BBD4FB"
  1042. // },
  1043. label: {
  1044. show: true,
  1045. position: 'top',
  1046. // color: "#307AF6"
  1047. },
  1048. data: [],
  1049. type: 'line'
  1050. }
  1051. if (dataApi.length == 1) {
  1052. obj.label.color = "#307AF6"
  1053. obj.areaStyle = {}
  1054. obj.itemStyle = {
  1055. color: "#BBD4FB"
  1056. }
  1057. }
  1058. item.timeUseList.forEach(item2 => {
  1059. Object.keys(item2).forEach(key1 => {
  1060. obj.data.push(item2[key1].useRate)
  1061. });
  1062. })
  1063. series.push(obj)
  1064. })
  1065. dataApi[0].timeUseList.forEach(item => {
  1066. Object.keys(item).forEach(key1 => {
  1067. data1.push(key1)
  1068. });
  1069. })
  1070. var axisLabel = {
  1071. rotate: 40,
  1072. interval: 0,
  1073. textStyle: {
  1074. color: "#333"
  1075. }
  1076. }
  1077. if (data1.length < 7) {
  1078. axisLabel = {
  1079. interval: 0,
  1080. textStyle: {
  1081. color: "#333"
  1082. },
  1083. }
  1084. } else {
  1085. axisLabel.interval = 0;
  1086. }
  1087. var option = {
  1088. legend: {},
  1089. xAxis: {
  1090. type: 'category',
  1091. data: data1,
  1092. axisLabel: axisLabel,
  1093. },
  1094. tooltip: {
  1095. trigger: 'axis',
  1096. axisPointer: {
  1097. type: 'shadow'
  1098. }
  1099. },
  1100. yAxis: {
  1101. type: 'value'
  1102. },
  1103. grid: {
  1104. top: (20 + head),
  1105. left: 0,
  1106. right: 0,
  1107. bottom: 0,
  1108. containLabel: true
  1109. },
  1110. series: series
  1111. };
  1112. myChart.setOption(option);
  1113. this.echartsList[key] = myChart;
  1114. },
  1115. getbody1pie1() {
  1116. var img = require("@/assets/img/index/pie1-1.svg")
  1117. var key = "body1pie1"
  1118. var myChart = this.echartsList[key];
  1119. if (!myChart) {
  1120. myChart = echarts.init(document.getElementById(key), null, {
  1121. width: uni.upx2px(88),
  1122. height: uni.upx2px(88)
  1123. })
  1124. }
  1125. myChart.clear()
  1126. var option = {
  1127. series: [{
  1128. silent: true,
  1129. type: 'pie',
  1130. radius: ['70%', '100%'],
  1131. label: {
  1132. show: false,
  1133. },
  1134. data: [{
  1135. value: this.body1data.data.useNum,
  1136. itemStyle: {
  1137. color: '#AAAAAA'
  1138. }
  1139. },
  1140. {
  1141. value: this.body1data.data.idleNum,
  1142. itemStyle: {
  1143. color: '#53B56B'
  1144. }
  1145. }
  1146. ]
  1147. }],
  1148. grid: {
  1149. top: 0,
  1150. left: 0,
  1151. right: 0,
  1152. bottom: 0,
  1153. containLabel: true
  1154. },
  1155. graphic: [{
  1156. type: 'image',
  1157. id: 'logo',
  1158. left: 'center',
  1159. top: 'center',
  1160. style: {
  1161. image: img, // 图片路径
  1162. width: uni.upx2px(40),
  1163. height: uni.upx2px(40)
  1164. }
  1165. }]
  1166. }
  1167. myChart.setOption(option);
  1168. this.echartsList[key] = myChart;
  1169. },
  1170. getbody1pie2() {
  1171. var img = require("@/assets/img/index/pie1-2.svg")
  1172. var key = "body1pie2"
  1173. var myChart = this.echartsList[key];
  1174. if (!myChart) {
  1175. myChart = echarts.init(document.getElementById(key), null, {
  1176. width: uni.upx2px(88),
  1177. height: uni.upx2px(88)
  1178. })
  1179. }
  1180. myChart.clear()
  1181. var option = {
  1182. series: [{
  1183. silent: true,
  1184. type: 'pie',
  1185. radius: ['70%', '100%'],
  1186. label: {
  1187. show: false,
  1188. },
  1189. data: [{
  1190. value: this.body1data.data.loseNum,
  1191. itemStyle: {
  1192. color: '#AAAAAA'
  1193. }
  1194. },
  1195. {
  1196. value: this.body1data.data.normalNum,
  1197. itemStyle: {
  1198. color: '#53B56B'
  1199. }
  1200. },
  1201. {
  1202. value: this.body1data.data.errorNum,
  1203. itemStyle: {
  1204. color: '#EF8132'
  1205. }
  1206. }
  1207. //, {
  1208. // value: 735,
  1209. // itemStyle: {
  1210. // color: '#DC4441'
  1211. // }
  1212. // }
  1213. ]
  1214. }],
  1215. grid: {
  1216. top: 0,
  1217. left: 0,
  1218. right: 0,
  1219. bottom: 0,
  1220. containLabel: true
  1221. },
  1222. graphic: [{
  1223. type: 'image',
  1224. id: 'logo',
  1225. left: 'center',
  1226. top: 'center',
  1227. style: {
  1228. image: img, // 图片路径
  1229. width: uni.upx2px(40),
  1230. height: uni.upx2px(40)
  1231. }
  1232. }]
  1233. }
  1234. myChart.setOption(option);
  1235. this.echartsList[key] = myChart;
  1236. },
  1237. getbody1pie3() {
  1238. var img = require("@/assets/img/index/pie1-3.svg")
  1239. var key = "body1pie3"
  1240. var myChart = this.echartsList[key];
  1241. if (!myChart) {
  1242. myChart = echarts.init(document.getElementById(key), null, {
  1243. width: uni.upx2px(88),
  1244. height: uni.upx2px(88)
  1245. })
  1246. }
  1247. myChart.clear()
  1248. var option = {
  1249. series: [{
  1250. type: 'pie',
  1251. silent: true, // 禁用交互效果
  1252. radius: ['70%', '100%'],
  1253. label: {
  1254. show: false,
  1255. },
  1256. data: [{
  1257. value: 735,
  1258. itemStyle: {
  1259. color: '#53B56B'
  1260. }
  1261. },
  1262. {
  1263. value: 735,
  1264. itemStyle: {
  1265. color: '#EF8375'
  1266. }
  1267. },
  1268. {
  1269. value: 735,
  1270. itemStyle: {
  1271. color: '#307AF6'
  1272. }
  1273. }
  1274. ]
  1275. }],
  1276. grid: {
  1277. top: 0,
  1278. left: 0,
  1279. right: 0,
  1280. bottom: 0,
  1281. containLabel: true
  1282. },
  1283. graphic: [{
  1284. type: 'image',
  1285. id: 'logo',
  1286. left: 'center',
  1287. top: 'center',
  1288. style: {
  1289. image: img, // 图片路径
  1290. width: uni.upx2px(40),
  1291. height: uni.upx2px(40)
  1292. }
  1293. }]
  1294. }
  1295. myChart.setOption(option);
  1296. this.echartsList[key] = myChart;
  1297. },
  1298. getfindByOpenId() {
  1299. uni.showLoading({
  1300. title: "加载中",
  1301. mask: true,
  1302. })
  1303. API.findByOpenId({
  1304. openId: this.jphelp.getOpenId(),
  1305. }).then((response) => {
  1306. uni.hideLoading();
  1307. this.isReady = true;
  1308. this.loginset(response)
  1309. try {
  1310. this.init()
  1311. } catch (e) {
  1312. uni.showToast({
  1313. title: e,
  1314. icon: "none"
  1315. })
  1316. }
  1317. }).catch(error => {
  1318. uni.showToast({
  1319. title: error,
  1320. icon: "none"
  1321. })
  1322. uni.redirectTo({
  1323. url: '/pages/login/login'
  1324. })
  1325. })
  1326. }
  1327. }
  1328. }
  1329. </script>
  1330. <style scoped lang="scss">
  1331. .color307AF6 {
  1332. color: #307AF6
  1333. }
  1334. .color53B56B {
  1335. color: #53B56B
  1336. }
  1337. .colorAAAAAA {
  1338. color: #AAAAAA
  1339. }
  1340. .colorEF8132 {
  1341. color: #EF8132
  1342. }
  1343. .colorDC4441 {
  1344. color: #DC4441
  1345. }
  1346. .colorEF8375 {
  1347. color: #EF8375
  1348. }
  1349. .body1pie-table {
  1350. color: rgba(51, 51, 51, 1);
  1351. font-size: 32rpx;
  1352. font-weight: bold;
  1353. .tr {
  1354. .td1 {
  1355. padding-right: 24rpx;
  1356. }
  1357. display: flex;
  1358. margin-bottom: 40rpx;
  1359. .td2 {
  1360. width: 100%;
  1361. .td3 {
  1362. display: flex;
  1363. .td4 {
  1364. width: 120px;
  1365. }
  1366. }
  1367. }
  1368. }
  1369. // td{
  1370. // padding-right: 24rpx;
  1371. // }
  1372. .body1pie {}
  1373. .body1pie-num {
  1374. margin: 0 8rpx;
  1375. }
  1376. }
  1377. // 导航栏
  1378. .navbar {
  1379. box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  1380. background-color: rgba(22, 119, 255, 1);
  1381. color: #fff;
  1382. line-height: 88rpx;
  1383. display: flex;
  1384. justify-content: space-between;
  1385. align-items: center;
  1386. padding: 0 32rpx;
  1387. color: rgba(255, 255, 255, 1);
  1388. font-size: 36rpx;
  1389. position: fixed;
  1390. left: 0;
  1391. right: 0;
  1392. top: 0;
  1393. z-index: 999999;
  1394. font-weight: bold;
  1395. }
  1396. .main {
  1397. border-radius: 16px 16px 0px 0px;
  1398. background: linear-gradient(180deg, rgba(242, 244, 246, 1) 61%, rgba(255, 255, 255, 0) 100%);
  1399. margin-top: -24rpx;
  1400. padding: 32rpx;
  1401. .statistics {
  1402. border-radius: 8px;
  1403. background-color: rgba(255, 255, 255, 1);
  1404. box-shadow: 0px 1px 6px 0px rgba(0, 59, 142, 0.05);
  1405. margin-bottom: 24rpx;
  1406. padding: 40rpx;
  1407. .title {
  1408. display: flex;
  1409. align-items: center;
  1410. margin-bottom: 32rpx;
  1411. font-weight: bold;
  1412. .img {
  1413. width: 36rpx;
  1414. height: 36rpx;
  1415. vertical-align: middle;
  1416. border-radius: 999px;
  1417. }
  1418. .change {
  1419. display: flex;
  1420. align-items: center;
  1421. .change-img {
  1422. width: 32rpx;
  1423. height: 32rpx;
  1424. vertical-align: middle;
  1425. }
  1426. text {
  1427. margin-left: 8rpx;
  1428. }
  1429. }
  1430. .text {
  1431. color: rgba(16, 16, 16, 1);
  1432. font-size: 36rpx;
  1433. margin-left: 16rpx;
  1434. display: flex;
  1435. justify-content: space-between;
  1436. align-items: center;
  1437. width: 100%;
  1438. .tag {
  1439. border-radius: 4px;
  1440. border: 1px solid rgba(187, 187, 187, 1);
  1441. color: rgba(51, 51, 51, 1);
  1442. font-size: 24rpx;
  1443. padding: 1px 8rpx;
  1444. margin-left: 8rpx;
  1445. }
  1446. }
  1447. .change {
  1448. margin-left: 16rpx;
  1449. font-size: 24rpx;
  1450. color: #838383;
  1451. }
  1452. .check-all {
  1453. margin-left: auto;
  1454. color: rgba(131, 131, 131, 1);
  1455. font-size: 24rpx;
  1456. }
  1457. }
  1458. }
  1459. .statistics-end {
  1460. padding-bottom: 0;
  1461. }
  1462. }
  1463. .tabs-box2 {
  1464. margin-bottom: 8rpx;
  1465. padding-right: 16rpx;
  1466. display: flex;
  1467. align-items: center;
  1468. justify-content: space-between;
  1469. .tabs-box-other {
  1470. padding-bottom: 12rpx;
  1471. }
  1472. }
  1473. .tabs-box {
  1474. padding: 42rpx 0;
  1475. margin-top: 66rpx;
  1476. padding-right: 32rpx;
  1477. background-color: rgba(22, 119, 255, 1);
  1478. display: flex;
  1479. align-items: center;
  1480. justify-content: space-between;
  1481. .tabs {
  1482. width: 97%;
  1483. }
  1484. .more {
  1485. padding-right: 12rpx;
  1486. }
  1487. .tabs-box-other {
  1488. padding-bottom: 12rpx;
  1489. height: 80rpx;
  1490. line-height: 70rpx;
  1491. font-size: 30rpx;
  1492. color: rgb(255, 255, 255);
  1493. }
  1494. }
  1495. .body6main {
  1496. .line {
  1497. display: flex;
  1498. justify-content: space-between;
  1499. }
  1500. .abnormal-item:last-of-type {
  1501. border-bottom: none !important;
  1502. padding-bottom: 0;
  1503. }
  1504. .abnormal-item {
  1505. width: 100%;
  1506. display: flex;
  1507. justify-content: space-between;
  1508. align-items: center;
  1509. padding: 16rpx;
  1510. border-bottom: 1px solid rgba(245, 245, 245, 1);
  1511. .item-title {
  1512. .level {
  1513. color: #fff;
  1514. border-radius: 8rpx;
  1515. font-weight: 400;
  1516. padding: 4rpx 8rpx;
  1517. font-size: 22rpx;
  1518. margin-right: 2px;
  1519. }
  1520. .level1 {
  1521. background: red;
  1522. }
  1523. .level2 {
  1524. background-color: rgba(255, 123, 0, 1);
  1525. }
  1526. color: rgba(51, 51, 51, 1);
  1527. width: 100%;
  1528. .img {
  1529. width: 32rpx;
  1530. height: 32rpx;
  1531. margin-right: 8rpx;
  1532. }
  1533. .name {
  1534. color: rgba(51, 51, 51, 1);
  1535. font-weight: bold;
  1536. overflow: hidden;
  1537. white-space: nowrap;
  1538. text-overflow: ellipsis;
  1539. }
  1540. .date {
  1541. color: rgba(119, 119, 119, 1);
  1542. font-size: 24rpx;
  1543. }
  1544. }
  1545. .item-value {
  1546. text-align: right;
  1547. display: flex;
  1548. align-items: center;
  1549. .more {
  1550. margin-left: 8rpx;
  1551. }
  1552. .value1 {
  1553. font-weight: bold;
  1554. color: rgba(51, 51, 51, 1);
  1555. }
  1556. .value2 {
  1557. color: rgba(119, 119, 119, 1);
  1558. font-size: 24rpx;
  1559. }
  1560. }
  1561. }
  1562. }
  1563. .body7main {
  1564. border-radius: 4px;
  1565. background-color: rgba(245, 245, 245, 1);
  1566. padding: 32rpx;
  1567. .line {
  1568. display: flex;
  1569. display: flex;
  1570. justify-content: space-between;
  1571. margin-bottom: 24rpx;
  1572. .item-title {
  1573. color: rgba(51, 51, 51, 1);
  1574. font-size: 28rpx;
  1575. }
  1576. .item-tags {
  1577. display: flex;
  1578. .tag {
  1579. border-radius: 4px;
  1580. background-color: rgba(39, 177, 72, 1);
  1581. color: rgba(255, 255, 255, 1);
  1582. font-size: 20rpx;
  1583. padding: 2rpx 8rpx;
  1584. margin-right: 8rpx;
  1585. }
  1586. .tag1 {
  1587. background-color: rgba(22, 119, 255, 1);
  1588. }
  1589. .tag2 {
  1590. background-color: rgba(129, 97, 255, 1);
  1591. }
  1592. .statusN1 {}
  1593. .statusN0 {
  1594. background-color: rgba(153, 153, 153, 1);
  1595. }
  1596. .lockStatus1 {
  1597. background-color: rgba(153, 153, 153, 1);
  1598. }
  1599. }
  1600. }
  1601. }
  1602. </style>