manageWorkbench.vue 28 KB

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