index.vue 38 KB

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