manageWorkbench.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097
  1. <!-- 管理端工作台 -->
  2. <template>
  3. <view class="manage-workbench" :style="{paddingTop:navHeight+'rpx'}">
  4. <nav-bar :title="title"></nav-bar>
  5. <img class="top-big-img" :src="homepageBanner">
  6. <top-warn></top-warn>
  7. <!-- <view class="min-icon-button-box" style="margin-bottom: 0;">
  8. <view @click="goPage('casuallyPat')">
  9. <img src="@/images/Version2.2/icon_sy_ssp.png">
  10. <view>随手拍</view>
  11. </view>
  12. <view @click="goPage('safetyInspect')">
  13. <img src="@/images/Version2.2/icon_sy_aqjc.png">
  14. <view>安全检查</view>
  15. </view>
  16. <view @click="goPage('photoInspection')">
  17. <img src="@/images/icon_dzt_pzjc.png">
  18. <view>离开检查</view>
  19. </view>
  20. <view @click="goPage('accessQualification')">
  21. <img src="@/images/Version2.2/icon_sy_zrsq.png">
  22. <view>准入审核</view>
  23. </view>
  24. <view @click="goPage('gas')">
  25. <img src="@/images/Version3.0/icon_sy_qpgl.png">
  26. <view>气瓶管理</view>
  27. </view>
  28. <view @click="goPage('none')">
  29. <img src="@/images/Version3.0/icon_sy_hxp.png">
  30. <view>化学品管理</view>
  31. </view>
  32. <view @click="goPage('none')">
  33. <img src="@/images/Version3.0/icon_sy_tzsb.png">
  34. <view>特种设备</view>
  35. </view>
  36. <view @click="goPage('none')">
  37. <img src="@/images/Version3.0/icon_sy_aqxx.png">
  38. <view>安全档案</view>
  39. </view>
  40. </view> -->
  41. <view class=big-icon-button-box>
  42. <!-- 气瓶管理 -->
  43. <view class="big-icon-button-box_l">
  44. <img class="big-icon-button-box_bg" src="@/images/img_bg_qpgl.png" @click="goPage('gasManage')">
  45. <view class="big-icon-button-box_t1">气瓶管理</view>
  46. <view class="big-icon-button-box_t2">安全第一 预防为主</view>
  47. </view>
  48. <view class="big-icon-button-box_r">
  49. <!-- 安全报警 -->
  50. <img src="@/images/Version2.3/button_1.png" @click="goPage('alarm')">
  51. <!-- 应急疏散 -->
  52. <img src="@/images/Version2.3/button_2.png" @click="goPage('emergencyEvacuation')">
  53. </view>
  54. </view>
  55. <!-- 分级管控 -->
  56. <!-- <view class="grading">
  57. <img class="grading_l" src="@/images/icon_sy_fjgk.png"/>
  58. <view class="grading_c">分级管控</view>
  59. <view class="grading_r" @click="goPage('grading')">{{gradingCount>0?gradingCount+'项工作待完成':''}}<img src="@/images/icon_wdwg_gd.png"/></view>
  60. </view> -->
  61. <view class="for-title-p" @click="goSecurityAlertList" v-if="alarmList[0]">
  62. <img class="left-img" src="@/images/Version2.2/icon_aqbj.png">
  63. <view class="name-view">安全报警</view>
  64. <view class="num-view">{{securityAlertNum}}</view>
  65. <view class="null-view"></view>
  66. <img class="right-img" src="@/images/icon_04.png">
  67. </view>
  68. <view class="for-max-box-one" v-if="alarmList[0]">
  69. <view class="for-box" v-for="(item,index) in alarmList" :key="index">
  70. <view class="title-box">
  71. <view :style="'border:1rpx solid '+item.subDiyVo.fiedColor+';background:#fff;color:'+item.subDiyVo.fiedColor+';'">{{item.subDiyVo.levelName}}</view>
  72. <view>{{item.subDiyVo.name}}</view>
  73. </view>
  74. <view class="address-box"><span>{{item.subDiyVo.typeName}}</span>{{item.subDiyVo.deptName}}</view>
  75. <view class="address-box-two">
  76. <img src="@/images/icon_14.png">
  77. <view>{{item.subDiyVo.subAddrrStr}}</view>
  78. </view>
  79. <view class="for-img-box">
  80. <view class="for-img-min-box" v-for="(minItem,index) in item.sensorSet" :key="index">
  81. <img src="@/images/icon_15.png">
  82. <view>{{minItem}}</view>
  83. </view>
  84. </view>
  85. <view class="button-view" @click="laboratoryInfo(item)">查看详情</view>
  86. </view>
  87. </view>
  88. <view class="for-title-p" v-if="dataList[0]">
  89. <img class="left-img" src="@/images/Version2.2/icon_sy_wdsys.png">
  90. <view class="name-view">我的实验室</view>
  91. </view>
  92. <view class="for-max-box" v-if="dataList[0]">
  93. <img class="null-img" v-if="!dataList[0]" src="@/images/null-data-1.png">
  94. <view class="for-box" v-for="(item,index) in dataList" :key="index" @click="laboratoryInfoOne(item)">
  95. <view class="title-box">
  96. <view :style="'border:1rpx solid '+item.fiedColor+';background:#fff;color:'+item.fiedColor+';'">{{item.levelName}}</view>
  97. <view>{{item.name}}</view>
  98. <img src="@/images/icon_04.png">
  99. </view>
  100. <view class="address-box"><span>{{item.typeName}}</span>{{item.deptName}}</view>
  101. <view class="address-box-two" v-if='item.subAddrrStr!=" "'>
  102. <img src="@/images/icon_14.png">
  103. <view>{{item.subAddrrStr}}</view>
  104. </view>
  105. <view class="text-box" v-if="item.sensorFunctionList[0]">
  106. <view class="min-box" v-for="(minItem,index2) in item.sensorFunctionList" :key="index2">
  107. <view class="min-min-box">
  108. <img v-show="minItem.hasWarn" src="@/images/icon_15.png">
  109. <view :class="{'colorA':minItem.hasWarn}">{{minItem.funcName}}:{{minItem.formatVal?minItem.formatVal:'-'}}</view>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <tab-bar></tab-bar>
  116. </view>
  117. </template>
  118. <script>
  119. import $mqtt from '@/utils/mqtt.min.js';
  120. import { config } from '@/api/request/config.js'
  121. import { appReceivePhotoNote,getApprovalCount,subject_class,getSafeWarnList,laboratoryInfo,laboratoryList,getLoginUserInfo,outSubjectPhoto,gradingControl,listData,getGentleIdentifier} from '@/api/index.js'
  122. import { tabBar } from '@/component/tabBar.vue'
  123. import { topWarn } from '@/component/topWarn.vue'
  124. import { navBar } from '@/component/navbar.vue'
  125. export default {
  126. components: {
  127. tabBar,
  128. topWarn,
  129. navBar
  130. },
  131. data() {
  132. return {
  133. navHeight: uni.getStorageSync('navHeight'),
  134. title:'实验室安全智能监测与控制系统',
  135. //随手拍数量
  136. appReceivePhotoNoteNum:0,
  137. //准入数量
  138. passedNum:"",
  139. subject_classData:[],
  140. securityAlertNum:"",
  141. //MQTT请求参数
  142. mtopic:"lab/bigview",
  143. mtopicOne:"lab/function/data",
  144. msg:"",
  145. client:{},
  146. //报警数据
  147. alarmList:[],
  148. //实验室数据
  149. dataList:[],
  150. //用户信息数据(用来决定是否可以跳转检查项)
  151. userInfo:{
  152. isadmin:null,
  153. ischeck:null,
  154. list:null,
  155. },
  156. buttonArray:[],
  157. gradingCount:0,//分级管控未完成总数
  158. homepageBanner:uni.getStorageSync('homepageBanner'),
  159. fanList:[],//控制记录触发方式
  160. }
  161. },
  162. created() {
  163. },
  164. mounted(){
  165. this.appReceivePhotoNote();
  166. this.getApprovalCount();
  167. this.subject_class();
  168. this.laboratoryList();
  169. this.getSafeWarnList();
  170. this.getLoginUserInfo();
  171. this.getGrading();
  172. this.getListData();
  173. //监听报警信息
  174. getApp().watch(this.getSafeWarnList,'mqttAlarmData');
  175. },
  176. methods: {
  177. //查询控制记录触发方式
  178. async getListData() {
  179. let _this = this;
  180. let obj={
  181. pageNum:1,
  182. pageSize:20,
  183. dictType:'trigger_modes'
  184. }
  185. const {data} = await listData(obj)
  186. if (data.code == 200) {
  187. this.fanList=data.rows
  188. }
  189. },
  190. //暂无提示
  191. goCheckPage(){
  192. if(this.userInfo.isadmin){
  193. uni.navigateTo({
  194. url: '/pages_manage/workbench/problemRectification/rectifyList'
  195. });
  196. }else if(this.userInfo.ischeck == 1){
  197. uni.navigateTo({
  198. url: '/pages_manage/workbench/securityCheck/inspectionRecords'
  199. });
  200. }else{
  201. uni.showToast({
  202. title: '您没有该权限',
  203. icon:"none",
  204. mask:true,
  205. duration: 2000
  206. });
  207. }
  208. },
  209. //监听传感器信息
  210. getMqttSensorData(val){
  211. let self = this;
  212. if(val.subId){
  213. for(let i=0;i<self.dataList.length;i++){
  214. if(self.dataList[i].id == val.subId){
  215. self.$set(self.dataList[i],'sensorFunctionList',val.functionStatuses);
  216. }
  217. }
  218. }
  219. },
  220. //获取分级管控未完成总数
  221. async getGrading(){
  222. let obj = {
  223. }
  224. const {data} = await gradingControl(obj)
  225. if(data.code==200){
  226. this.gradingCount=data.data.length;
  227. }
  228. },
  229. async getLoginUserInfo(){
  230. const {data} = await getLoginUserInfo();
  231. if(data.code == 200){
  232. this.userInfo = data.data;
  233. let list = [];
  234. if(data.data.isadmin){
  235. //实验室负责人
  236. let obj = {
  237. id:"1",
  238. name:"检查记录",
  239. }
  240. list.push(obj)
  241. }
  242. if(data.data.ischeck == 1){
  243. //检查者
  244. let obj = {
  245. id:"2",
  246. name:"问题整改",
  247. }
  248. list.push(obj)
  249. }
  250. this.$set(this,'buttonArray',list);
  251. }
  252. },
  253. //获取报警信息详情
  254. async laboratoryInfo(item){
  255. uni.navigateTo({
  256. url: '/pages/earlyWarningManage/earlyWarningList'
  257. });
  258. // let self=this;
  259. // const {data} = await laboratoryInfo(item.subDiyVo.id);
  260. // if(data.code == 200){
  261. // let obj = data.data[0];
  262. // obj.subClassVO = item.subDiyVo.subClassVO;
  263. // obj.name = item.subDiyVo.name;
  264. // obj.subTypeLable = item.subDiyVo.subTypeLable;
  265. // obj.deptName = item.subDiyVo.deptName;
  266. // obj.subAddrrStr = item.subDiyVo.subAddrrStr;
  267. // //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
  268. // for(let i=0;i<obj.labHardwareVOList.length;i++){
  269. // if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
  270. // for(let b=0;b<self.fanList.length;b++){
  271. // if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
  272. // obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
  273. // }
  274. // }
  275. // }
  276. // }
  277. // uni.navigateTo({
  278. // url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+obj.deptId
  279. // });
  280. // }
  281. },
  282. //获取实验室详情
  283. async laboratoryInfoOne(item){
  284. let self=this;
  285. const {data} = await laboratoryInfo(item.id);
  286. if(data.code == 200){
  287. let obj = data.data[0];
  288. obj.subClassVO = item.subClassVO;
  289. obj.name = item.name;
  290. obj.subTypeLable = item.subTypeLable;
  291. obj.deptName = item.deptName;
  292. obj.subAddrrStr = item.subAddrrStr;
  293. obj.sensorFunctionList = item.sensorFunctionList;
  294. //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
  295. for(let i=0;i<obj.labHardwareVOList.length;i++){
  296. if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
  297. for(let b=0;b<self.fanList.length;b++){
  298. if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
  299. obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
  300. }
  301. }
  302. }
  303. }
  304. uni.navigateTo({
  305. url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+item.deptId
  306. });
  307. }
  308. },
  309. //获取报警信息列表
  310. async getSafeWarnList(){
  311. let obj = {
  312. pageNum:1,
  313. pageSize:1,
  314. count:0,
  315. groupStatus:1,
  316. };
  317. const {data} = await getSafeWarnList(obj);
  318. if(data.code == 200){
  319. this.alarmList = data.data.list;
  320. this.securityAlertNum = data.data.count;
  321. // if(data.rows[0]){
  322. // this.securityAlertNum = data.rows[0].todayHappenCount;
  323. // }else{
  324. // this.securityAlertNum = 0;
  325. // }
  326. }
  327. },
  328. //获取实验室列表
  329. async laboratoryList(){
  330. let self = this;
  331. let obj = {
  332. pageNum:1,
  333. pageSize:10,
  334. deptId:this.facultyIndex?this.facultyList[this.facultyIndex].deptId:'',
  335. subDept:this.subjectIndex?this.subjectList[this.subjectIndex].dictValue:'',
  336. level:this.levelIndex?this.levelList[this.levelIndex].dictValue:'',
  337. };
  338. const {data} = await laboratoryList(obj);
  339. if(data.code == 200){
  340. for(let o=0;o<data.data.length;o++){
  341. if(data.data[o].labHardwareVOList){
  342. data.data[o].hardwareList = [];
  343. for(let i=0;i<data.data[o].labHardwareVOList.length;i++){
  344. if(data.data[o].labHardwareVOList[i].hardwareTypeEnum.code == 4 &&data.data[o].labHardwareVOList[i].hardwareNUM){
  345. if(data.data[o].hardwareNUM){
  346. data.data[o].hardwareNUM = data.data[o].hardwareNUM + ',' + data.data[o].labHardwareVOList[i].hardwareNUM
  347. }else{
  348. data.data[o].hardwareNUM = data.data[o].labHardwareVOList[i].hardwareNUM
  349. }
  350. }else{
  351. let obj = {
  352. name:"",
  353. type:"",
  354. };
  355. obj.name = data.data[o].labHardwareVOList[i].hardwareTypeEnum.hardwareTypeName
  356. obj.type = data.data[o].labHardwareVOList[i].state.code;
  357. obj.id = data.data[o].labHardwareVOList[i].id;
  358. data.data[o].hardwareList.push(obj);
  359. }
  360. }
  361. }
  362. }
  363. this.dataList = data.data;
  364. let list = [];
  365. let obj = {
  366. type:"lab/function/data",
  367. idList:[],
  368. }
  369. for(let i=0;i<self.dataList.length;i++){
  370. let num = 0;
  371. for(let o=0;o<obj.idList.length;o++){
  372. if(obj.idList[o] == self.dataList[i].id){
  373. num++
  374. }
  375. }
  376. if(num == 0){
  377. obj.idList.push(self.dataList[i].id)
  378. }
  379. }
  380. list.push({type:"lab/riskPlan/trigger/notice",});
  381. getApp().appMqttOn(1,list);
  382. }
  383. },
  384. //获取输入数量
  385. async getApprovalCount(){
  386. const {data} = await getApprovalCount()
  387. if(data.code == 200){
  388. this.passedNum = data.data.passed + '人已获得';
  389. }
  390. },
  391. //获取管理员工作台随手拍数量数据
  392. async appReceivePhotoNote(){
  393. const {data} = await appReceivePhotoNote();
  394. if(data.code == 200){
  395. this.appReceivePhotoNoteNum = data.data.photoCount;
  396. }
  397. },
  398. //获取学科字典
  399. async subject_class(){
  400. const {data} = await subject_class();
  401. if(data.code == 200){
  402. this.subject_classData = data.data;
  403. }
  404. },
  405. //去安全警报
  406. goSecurityAlertList(){
  407. uni.navigateTo({
  408. url: '/pages/earlyWarningManage/earlyWarningList',//安全警报
  409. });
  410. },
  411. //页面跳转
  412. goPage(type){
  413. if(type=='casuallyPat'){
  414. uni.navigateTo({
  415. url: '/pages_safetyExamine/snapshotManage/snapshotAdd'
  416. });
  417. }else if(type=='receiveCasuallyPat'){//收到随手拍
  418. uni.navigateTo({
  419. url: '/pages_manage/workbench/receiveCasuallyPat/receiveCasuallyPat',
  420. });
  421. }else if(type=='accessQualification'){//收到随手拍
  422. uni.navigateTo({
  423. url: '/pages_manage/workbench/accessQualification/accessQualification',
  424. });
  425. }else if(type == 'safetyInspect'){//安全检查
  426. this.getGentleIdentifier();
  427. }
  428. else if(type == 'alarm'){
  429. uni.navigateTo({
  430. url: '/pages/earlyWarningManage/earlyWarningList',//安全警报
  431. });
  432. }else if(type == 'emergencyEvacuation'){
  433. uni.navigateTo({
  434. url: '/pages_manage/emergencyEvacuationBig',//安全警报
  435. });
  436. }else if(type == 'photoInspection'){
  437. this.outSubjectPhoto();
  438. }else if(type == 'grading'){
  439. uni.navigateTo({
  440. url: '/pages_manage/gradingControl/gradingControl',//分级管控
  441. });
  442. }else if(type == 'gasManage'){//气瓶管理
  443. uni.navigateTo({
  444. url: '/pages/gasBottle/gasManage/gasManage',
  445. });
  446. }else if(type == 'none'){
  447. uni.showToast({
  448. title: '暂未开放',
  449. icon:"none",
  450. mask:true,
  451. duration: 2000
  452. });
  453. }
  454. },//获取拍照检查配置
  455. async outSubjectPhoto(){
  456. const {data} = await outSubjectPhoto();
  457. if(data.code == 200){
  458. if(data.data == null){
  459. //需要检查(重新填写)
  460. let obj = {
  461. sub:"实验室照片",
  462. subUrl:"",
  463. garbage:"垃圾桶清理后照片",
  464. garbageUrl:"",
  465. dangerous:"使用危险设备照片(选填)",
  466. dangerousUrl:"",
  467. sourceRisk:"危险源设备使用登记本照片(选填)",
  468. sourceRiskUrl:"",
  469. };
  470. uni.navigateTo({
  471. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  472. });
  473. }else if(data.data == false){
  474. //不需要检查
  475. uni.showToast({
  476. title: '暂无检查数据',
  477. icon:"none",
  478. mask:true,
  479. duration: 2000
  480. });
  481. }else{
  482. //需要检查(修改内容)
  483. let obj = {
  484. id:data.data.id,
  485. sub:"实验室照片",
  486. subUrl:data.data.subUrl,
  487. garbage:"垃圾桶清理后照片",
  488. garbageUrl:data.data.garbageUrl,
  489. dangerous:"使用危险设备照片(选填)",
  490. dangerousUrl:data.data.dangerousUrl,
  491. sourceRisk:"危险源设备使用登记本照片(选填)",
  492. sourceRiskUrl:data.data.sourceRiskUrl,
  493. };
  494. uni.navigateTo({
  495. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  496. });
  497. }
  498. }
  499. },
  500. //获取用户身份标识"adminGentle": false, 管理员身份 "rectifyGentle": false, 整改身份"applyGentle": false 检查者身份
  501. async getGentleIdentifier(){
  502. let self = this;
  503. const {data} = await getGentleIdentifier();
  504. if(data.code==200){
  505. let pageType = null
  506. // 如果是管理员 检查者和整改者
  507. let list=[];
  508. if(data.data.adminGentle){
  509. list.push({name:'管理员',pageType:1})
  510. }
  511. if(data.data.applyGentle ||data.data.myApplyGentle){
  512. list.push({name:'检查者',pageType:2})
  513. }
  514. if(data.data.rectifyGentle){
  515. list.push({name:'整改者',pageType:3})
  516. }
  517. uni.setStorageSync('gentleIdentifier',list)
  518. uni.setStorageSync('gentleIdentifierData',data.data)
  519. if(list.length>0){
  520. uni.navigateTo({
  521. url: '/pages/safetyExamineWorkbench',
  522. });
  523. }else{
  524. uni.showToast({
  525. title: '没有相关权限',
  526. icon:"none",
  527. mask:true,
  528. duration: 2000
  529. });
  530. }
  531. }
  532. },
  533. },
  534. beforeDestroy(){
  535. //断开mqtt连接
  536. getApp().offMQTT();
  537. //删除报警监听
  538. getApp().deleteAlarmWatch();
  539. //删除传感器监听
  540. getApp().deleteSensorWatch();
  541. }
  542. }
  543. </script>
  544. <style lang="stylus" scoped>
  545. .manage-workbench{
  546. height:100%;
  547. width:100%;
  548. overflow-y:scroll;
  549. box-sizing: border-box;
  550. .top-big-img{
  551. height:342rpx;
  552. width:750rpx;
  553. }
  554. .min-icon-button-box{
  555. display flex;
  556. justify-content: flex-start;
  557. flex-wrap: wrap;
  558. width:710rpx;
  559. margin:20rpx;
  560. background :#ffffff;
  561. border-radius:20rpx;
  562. padding-bottom: 20rpx;
  563. view{
  564. width: 176rpx;
  565. img{
  566. height:75rpx;
  567. width:75rpx;
  568. margin:30rpx auto 10rpx;
  569. }
  570. view{
  571. text-align center
  572. font-size:24rpx;
  573. }
  574. }
  575. }
  576. .big-icon-button-box{
  577. display flex;
  578. justify-content: space-between;
  579. margin:20rpx;
  580. .big-icon-button-box_l{
  581. position: relative;
  582. width:372rpx;
  583. height:260rpx;
  584. .big-icon-button-box_bg{
  585. width:372rpx;
  586. height:260rpx;
  587. }
  588. .big-icon-button-box_t1{
  589. width: 149rpx;
  590. height: 40rpx;
  591. background: rgba(225,225,225,0.3);
  592. border-radius: 2rpx;
  593. font-size: 24rpx;
  594. font-family: Microsoft YaHei;
  595. font-weight: 400;
  596. color: #333333;
  597. line-height: 40rpx;
  598. text-align: center;
  599. position:absolute;
  600. right: 42rpx;
  601. top: 94rpx;
  602. }
  603. .big-icon-button-box_t2{
  604. width: 175rpx;
  605. height: 20rpx;
  606. font-size: 18rpx;
  607. font-family: Microsoft YaHei;
  608. font-weight: 400;
  609. color: #333333;
  610. line-height: 20rpx;
  611. position:absolute;
  612. right: 28rpx;
  613. top: 148rpx;
  614. }
  615. }
  616. .big-icon-button-box_r{
  617. img{
  618. width:320rpx;
  619. height:120rpx;
  620. }
  621. >img:nth-of-type(2){
  622. margin-top: 20rpx;
  623. }
  624. }
  625. }
  626. /* 分级管控 */
  627. .grading{
  628. width :712rpx;
  629. height :80rpx;
  630. background: #FFFFFF;
  631. border-radius: 20rpx;
  632. margin-left:20rpx;
  633. margin-bottom :20rpx;
  634. display:flex;
  635. justify-content :flex-start;
  636. align-items :center;
  637. .grading_l{
  638. width :34rpx;
  639. height :34rpx;
  640. margin-left:16rpx;
  641. }
  642. .grading_c{
  643. font-size: 28rpx;
  644. font-family: PingFang SC;
  645. font-weight: 500;
  646. color: #333333;
  647. margin-left:16rpx;
  648. }
  649. .grading_r{
  650. width :504rpx;
  651. height :80rpx;
  652. font-size: 26rpx;
  653. font-family: PingFang SC;
  654. font-weight: 500;
  655. color: #EE3A3A;
  656. display :flex;
  657. justify-content :flex-end;
  658. align-items: center;
  659. >img{
  660. width: 20rpx;
  661. height: 20rpx;
  662. margin-left :20rpx;
  663. margin-top :8rpx;
  664. }
  665. }
  666. }
  667. .top-max-box{
  668. height:300rpx;
  669. .top-min-box{
  670. display: flex
  671. margin:20rpx;
  672. .left-box{
  673. background #fff
  674. height:130rpx;
  675. width:345rpx;
  676. border-radius: 10px;
  677. display flex
  678. .left-img{
  679. height:80rpx;
  680. width:80rpx;
  681. margin:25rpx 30rpx;
  682. }
  683. view{
  684. line-height:130rpx;
  685. font-size: 28rpx;
  686. color:#333;
  687. flex:1;
  688. }
  689. .right-img{
  690. width:20rpx;
  691. height:20rpx;
  692. margin:55rpx 30rpx 0 0;
  693. }
  694. }
  695. .right-box{
  696. background #fff
  697. height:130rpx;
  698. width:345rpx;
  699. margin-left:20rpx;
  700. border-radius: 10rpx;
  701. display flex
  702. .left-img{
  703. height:80rpx;
  704. width:80rpx;
  705. margin:25rpx 30rpx;
  706. }
  707. .right-min-view{
  708. flex:1;
  709. .right-min-title{
  710. line-height:28rpx;
  711. font-size: 28rpx;
  712. margin-top:32rpx;
  713. color: #333333;
  714. }
  715. .right-bottom-min-box{
  716. display flex
  717. view{
  718. flex:1;
  719. text-align right
  720. margin:25rpx 14rpx 0 0;
  721. font-size: 22rpx;
  722. color: #999999;
  723. line-height: 22rpx;
  724. }
  725. img{
  726. width:20rpx;
  727. height:20rpx;
  728. margin:27rpx 80rpx 0 0;
  729. }
  730. }
  731. }
  732. }
  733. }
  734. .bottom-min-box{
  735. background #fff
  736. height:130rpx;
  737. width:710rpx;
  738. border-radius: 10px;
  739. margin:0 20rpx;
  740. display flex
  741. .left-img{
  742. height:80rpx;
  743. width:80rpx;
  744. margin:25rpx 30rpx;
  745. }
  746. view{
  747. flex:1;
  748. line-height:130rpx;
  749. }
  750. view:nth-child(2){
  751. font-size: 28rpx;
  752. color:#333;
  753. }
  754. view:nth-child(3){
  755. text-align right
  756. font-size: 22rpx;
  757. color:#999;
  758. margin-right:12rpx;
  759. }
  760. .right-img{
  761. width:20rpx;
  762. height:20rpx;
  763. margin:55rpx 30rpx 0 0;
  764. }
  765. }
  766. }
  767. .for-title-p{
  768. border-top-left-radius 20rpx
  769. border-top-right-radius 20rpx
  770. background #fff
  771. padding-left:25rpx;
  772. display flex
  773. margin:20rpx 20rpx 0;
  774. border-bottom:1rpx solid #e0e0e0;
  775. .left-img{
  776. height:34rpx;
  777. width:34rpx;
  778. margin:22rpx 10rpx 0 0;
  779. }
  780. .name-view{
  781. line-height:77rpx;
  782. font-size:30rpx;
  783. color:#333;
  784. }
  785. .num-view{
  786. width:28rpx;
  787. height:28rpx;
  788. font-size:20rpx;
  789. background:#EE3A3A;
  790. border-radius:50%;
  791. text-align :center;
  792. line-height:24rpx;
  793. color:#fff;
  794. margin:26rpx 0 0 10rpx;
  795. }
  796. .null-view{
  797. flex:1;
  798. }
  799. .right-img{
  800. height:20rpx;
  801. width:10rpx;
  802. margin:28rpx 19rpx 0 0;
  803. }
  804. }
  805. .for-max-box-one{
  806. margin:0 20rpx;
  807. border-bottom-left-radius 20rpx
  808. border-bottom-right-radius 20rpx
  809. .for-box:nth-child(1){
  810. border-top:none;
  811. }
  812. .for-box{
  813. border-top:4rpx solid #dedede;
  814. background #fff
  815. overflow: hidden
  816. .title-box{
  817. margin:20rpx 20rpx 0;
  818. display flex
  819. view:nth-child(1){
  820. height:40rpx;
  821. line-height:40rpx;
  822. font-size:20rpx;
  823. border-radius:10rpx;
  824. padding:0 20rpx;
  825. color:#fff;
  826. margin-right:20rpx;
  827. }
  828. view:nth-child(2){
  829. line-height:42rpx;
  830. font-size:30rpx;
  831. color:#333;
  832. max-width:600rpx;
  833. flex:1;
  834. }
  835. .colorA{
  836. background:#aa2315;
  837. }
  838. .colorB{
  839. background:#ff9b09;
  840. }
  841. .colorC{
  842. background:#3ea3e9;
  843. }
  844. .colorD{
  845. background:#3ea34c;
  846. }
  847. }
  848. .address-box{
  849. margin:20rpx 20rpx;
  850. font-size:26rpx;
  851. color:#999999;
  852. span{
  853. margin-right:60rpx;
  854. }
  855. }
  856. .address-box-two{
  857. display flex
  858. margin:0 20rpx 20rpx 20rpx;
  859. img{
  860. width:28rpx;
  861. height:30rpx;
  862. margin-right:18rpx;
  863. }
  864. view{
  865. line-height:30rpx;
  866. font-size:24rpx;
  867. color:#999999;
  868. }
  869. }
  870. .for-img-box{
  871. border-top:1rpx solid #e0e0e0;
  872. margin:0 20rpx;
  873. .for-img-min-box{
  874. display flex
  875. img{
  876. width:30rpx;
  877. height:27rpx;
  878. margin-top:24rpx;
  879. margin-right:10rpx;
  880. }
  881. view{
  882. line-height:74rpx;
  883. text-align center
  884. font-size:28rpx;
  885. color:#EE3A3A;
  886. }
  887. }
  888. }
  889. .button-view{
  890. margin:0 20rpx;
  891. border-top:1rpx dashed #e0e0e0;
  892. line-height:90rpx;
  893. text-align :center;
  894. font-size:26rpx;
  895. color:#333;
  896. }
  897. }
  898. .get-null-box{
  899. height:100rpx;
  900. line-height:100rpx;
  901. color:#999;
  902. text-align center
  903. }
  904. }
  905. .for-max-box{
  906. margin:0 20rpx 120rpx;
  907. background: #fff
  908. overflow: hidden
  909. border-bottom-left-radius 20rpx
  910. border-bottom-right-radius 20rpx
  911. .null-img{
  912. display block
  913. width:276rpx;
  914. height:321rpx;
  915. margin:40rpx auto;
  916. }
  917. .for-box:nth-child(1){
  918. border-top:none;
  919. }
  920. .for-box{
  921. border-top:4rpx solid #dedede;
  922. overflow hidden
  923. background #ffffff
  924. margin-bottom:20rpx;
  925. .title-box{
  926. margin:20rpx 20rpx 0;
  927. display flex
  928. view:nth-child(1){
  929. height:40rpx;
  930. line-height:40rpx;
  931. font-size:20rpx;
  932. border-radius:10rpx;
  933. padding:0 20rpx;
  934. color:#fff;
  935. margin-right:20rpx;
  936. }
  937. view:nth-child(2){
  938. line-height:42rpx;
  939. font-size:30rpx;
  940. color:#333;
  941. max-width:600rpx;
  942. flex:1;
  943. }
  944. img{
  945. width:12rpx;
  946. height:20rpx;
  947. margin-top:11rpx;
  948. }
  949. .colorA{
  950. background:#aa2315;
  951. }
  952. .colorB{
  953. background:#ff9b09;
  954. }
  955. .colorC{
  956. background:#3ea3e9;
  957. }
  958. .colorD{
  959. background:#3ea34c;
  960. }
  961. }
  962. .address-box{
  963. margin:20rpx 20rpx;
  964. font-size:26rpx;
  965. color:#999999;
  966. span{
  967. margin-right:60rpx;
  968. }
  969. }
  970. .address-box-two{
  971. display flex
  972. margin:0 20rpx 20rpx 20rpx;
  973. img{
  974. width:28rpx;
  975. height:30rpx;
  976. margin-right:18rpx;
  977. }
  978. view{
  979. line-height:30rpx;
  980. font-size:24rpx;
  981. color:#999999;
  982. }
  983. }
  984. .text-box{
  985. /*border-top:1rpx dashed #e0e0e0;*/
  986. border-top:1rpx solid #E0E0E0;
  987. padding:20rpx 20rpx 0;
  988. /*
  989. overflow-x:scroll;
  990. overflow-y:hidden;
  991. white-space: nowrap;
  992. */
  993. .min-box{
  994. display inline-block
  995. /*padding:0 30rpx 0 10rpx;*/
  996. width:335rpx;
  997. .min-min-box{
  998. display: flex
  999. img{
  1000. width:30rpx;
  1001. height:27rpx;
  1002. margin-top:24rpx;
  1003. margin-right:10rpx;
  1004. }
  1005. view{
  1006. line-height:74rpx;
  1007. text-align center
  1008. font-size:28rpx;
  1009. color:#333;
  1010. }
  1011. .colorA{
  1012. color:#EE3A3A;
  1013. }
  1014. }
  1015. }
  1016. }
  1017. .sensor-max-box{
  1018. margin:0 20rpx;
  1019. border-top:1rpx solid #e0e0e0;
  1020. border-bottom:1rpx solid #e0e0e0;
  1021. display flex
  1022. .for-sensor-box{
  1023. flex:1;
  1024. display flex
  1025. font-size:28rpx;
  1026. line-height:94rpx;
  1027. view{
  1028. margin-left:20rpx;
  1029. font-size:25rpx;
  1030. line-height:94rpx;
  1031. color:#0183FA;
  1032. }
  1033. }
  1034. }
  1035. .button-max-box{
  1036. .button-box{
  1037. display flex
  1038. view:nth-child(1){
  1039. flex:1;
  1040. line-height:90rpx;
  1041. color:#333333;
  1042. margin-left:30rpx;
  1043. font-size:28rpx;
  1044. }
  1045. view:nth-child(2){
  1046. width:142rpx;
  1047. line-height:42rpx;
  1048. border:4rpx solid #0183FA;
  1049. border-radius:25rpx;
  1050. color: #0183FA;
  1051. font-size: 30rpx;
  1052. text-align center;
  1053. margin:20rpx 20rpx 20rpx 0;
  1054. }
  1055. }
  1056. .for-button-box{
  1057. display flex
  1058. view{
  1059. flex:1;
  1060. line-height:90rpx;
  1061. color:#333333;
  1062. margin-left:30rpx;
  1063. font-size:28rpx;
  1064. }
  1065. img{
  1066. height:50rpx;
  1067. width:100rpx;
  1068. margin:20rpx 20rpx 20rpx 0;
  1069. }
  1070. view:nth-child(2){
  1071. text-align right
  1072. color:#999;
  1073. margin-right:30rpx;
  1074. }
  1075. }
  1076. }
  1077. }
  1078. }
  1079. }
  1080. </style>