manageWorkbench.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  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. background: url("../images/img_bg_qpgl.png") no-repeat;
  582. background-size: 372rpx 260rpx;
  583. width:372rpx;
  584. height:260rpx;
  585. // .big-icon-button-box_bg{
  586. // width:372rpx;
  587. // height:260rpx;
  588. // }
  589. .big-icon-button-box_t1{
  590. width: 149rpx;
  591. height: 40rpx;
  592. background: rgba(225,225,225,0.3);
  593. border-radius: 2rpx;
  594. font-size: 24rpx;
  595. font-family: Microsoft YaHei;
  596. font-weight: 400;
  597. color: #333333;
  598. line-height: 40rpx;
  599. text-align: center;
  600. margin:94rpx 0 0 181rpx;
  601. // position:absolute;
  602. // right: 42rpx;
  603. // top: 94rpx;
  604. }
  605. .big-icon-button-box_t2{
  606. width: 175rpx;
  607. height: 20rpx;
  608. font-size: 18rpx;
  609. font-family: Microsoft YaHei;
  610. font-weight: 400;
  611. color: #333333;
  612. line-height: 20rpx;
  613. margin:20rpx 0 0 181rpx;
  614. // position:absolute;
  615. // right: 28rpx;
  616. // top: 148rpx;
  617. }
  618. }
  619. .big-icon-button-box_r{
  620. img{
  621. width:320rpx;
  622. height:120rpx;
  623. }
  624. >img:nth-of-type(2){
  625. margin-top: 20rpx;
  626. }
  627. }
  628. }
  629. /* 分级管控 */
  630. .grading{
  631. width :712rpx;
  632. height :80rpx;
  633. background: #FFFFFF;
  634. border-radius: 20rpx;
  635. margin-left:20rpx;
  636. margin-bottom :20rpx;
  637. display:flex;
  638. justify-content :flex-start;
  639. align-items :center;
  640. .grading_l{
  641. width :34rpx;
  642. height :34rpx;
  643. margin-left:16rpx;
  644. }
  645. .grading_c{
  646. font-size: 28rpx;
  647. font-family: PingFang SC;
  648. font-weight: 500;
  649. color: #333333;
  650. margin-left:16rpx;
  651. }
  652. .grading_r{
  653. width :504rpx;
  654. height :80rpx;
  655. font-size: 26rpx;
  656. font-family: PingFang SC;
  657. font-weight: 500;
  658. color: #EE3A3A;
  659. display :flex;
  660. justify-content :flex-end;
  661. align-items: center;
  662. >img{
  663. width: 20rpx;
  664. height: 20rpx;
  665. margin-left :20rpx;
  666. margin-top :8rpx;
  667. }
  668. }
  669. }
  670. .top-max-box{
  671. height:300rpx;
  672. .top-min-box{
  673. display: flex
  674. margin:20rpx;
  675. .left-box{
  676. background #fff
  677. height:130rpx;
  678. width:345rpx;
  679. border-radius: 10px;
  680. display flex
  681. .left-img{
  682. height:80rpx;
  683. width:80rpx;
  684. margin:25rpx 30rpx;
  685. }
  686. view{
  687. line-height:130rpx;
  688. font-size: 28rpx;
  689. color:#333;
  690. flex:1;
  691. }
  692. .right-img{
  693. width:20rpx;
  694. height:20rpx;
  695. margin:55rpx 30rpx 0 0;
  696. }
  697. }
  698. .right-box{
  699. background #fff
  700. height:130rpx;
  701. width:345rpx;
  702. margin-left:20rpx;
  703. border-radius: 10rpx;
  704. display flex
  705. .left-img{
  706. height:80rpx;
  707. width:80rpx;
  708. margin:25rpx 30rpx;
  709. }
  710. .right-min-view{
  711. flex:1;
  712. .right-min-title{
  713. line-height:28rpx;
  714. font-size: 28rpx;
  715. margin-top:32rpx;
  716. color: #333333;
  717. }
  718. .right-bottom-min-box{
  719. display flex
  720. view{
  721. flex:1;
  722. text-align right
  723. margin:25rpx 14rpx 0 0;
  724. font-size: 22rpx;
  725. color: #999999;
  726. line-height: 22rpx;
  727. }
  728. img{
  729. width:20rpx;
  730. height:20rpx;
  731. margin:27rpx 80rpx 0 0;
  732. }
  733. }
  734. }
  735. }
  736. }
  737. .bottom-min-box{
  738. background #fff
  739. height:130rpx;
  740. width:710rpx;
  741. border-radius: 10px;
  742. margin:0 20rpx;
  743. display flex
  744. .left-img{
  745. height:80rpx;
  746. width:80rpx;
  747. margin:25rpx 30rpx;
  748. }
  749. view{
  750. flex:1;
  751. line-height:130rpx;
  752. }
  753. view:nth-child(2){
  754. font-size: 28rpx;
  755. color:#333;
  756. }
  757. view:nth-child(3){
  758. text-align right
  759. font-size: 22rpx;
  760. color:#999;
  761. margin-right:12rpx;
  762. }
  763. .right-img{
  764. width:20rpx;
  765. height:20rpx;
  766. margin:55rpx 30rpx 0 0;
  767. }
  768. }
  769. }
  770. .for-title-p{
  771. border-top-left-radius 20rpx
  772. border-top-right-radius 20rpx
  773. background #fff
  774. padding-left:25rpx;
  775. display flex
  776. margin:20rpx 20rpx 0;
  777. border-bottom:1rpx solid #e0e0e0;
  778. .left-img{
  779. height:34rpx;
  780. width:34rpx;
  781. margin:22rpx 10rpx 0 0;
  782. }
  783. .name-view{
  784. line-height:77rpx;
  785. font-size:30rpx;
  786. color:#333;
  787. }
  788. .num-view{
  789. width:28rpx;
  790. height:28rpx;
  791. font-size:20rpx;
  792. background:#EE3A3A;
  793. border-radius:50%;
  794. text-align :center;
  795. line-height:24rpx;
  796. color:#fff;
  797. margin:26rpx 0 0 10rpx;
  798. }
  799. .null-view{
  800. flex:1;
  801. }
  802. .right-img{
  803. height:20rpx;
  804. width:10rpx;
  805. margin:28rpx 19rpx 0 0;
  806. }
  807. }
  808. .for-max-box-one{
  809. margin:0 20rpx;
  810. border-bottom-left-radius 20rpx
  811. border-bottom-right-radius 20rpx
  812. .for-box:nth-child(1){
  813. border-top:none;
  814. }
  815. .for-box{
  816. border-top:4rpx solid #dedede;
  817. background #fff
  818. overflow: hidden
  819. .title-box{
  820. margin:20rpx 20rpx 0;
  821. display flex
  822. view:nth-child(1){
  823. height:40rpx;
  824. line-height:40rpx;
  825. font-size:20rpx;
  826. border-radius:10rpx;
  827. padding:0 20rpx;
  828. color:#fff;
  829. margin-right:20rpx;
  830. }
  831. view:nth-child(2){
  832. line-height:42rpx;
  833. font-size:30rpx;
  834. color:#333;
  835. max-width:600rpx;
  836. flex:1;
  837. }
  838. .colorA{
  839. background:#aa2315;
  840. }
  841. .colorB{
  842. background:#ff9b09;
  843. }
  844. .colorC{
  845. background:#3ea3e9;
  846. }
  847. .colorD{
  848. background:#3ea34c;
  849. }
  850. }
  851. .address-box{
  852. margin:20rpx 20rpx;
  853. font-size:26rpx;
  854. color:#999999;
  855. span{
  856. margin-right:60rpx;
  857. }
  858. }
  859. .address-box-two{
  860. display flex
  861. margin:0 20rpx 20rpx 20rpx;
  862. img{
  863. width:28rpx;
  864. height:30rpx;
  865. margin-right:18rpx;
  866. }
  867. view{
  868. line-height:30rpx;
  869. font-size:24rpx;
  870. color:#999999;
  871. }
  872. }
  873. .for-img-box{
  874. border-top:1rpx solid #e0e0e0;
  875. margin:0 20rpx;
  876. .for-img-min-box{
  877. display flex
  878. img{
  879. width:30rpx;
  880. height:27rpx;
  881. margin-top:24rpx;
  882. margin-right:10rpx;
  883. }
  884. view{
  885. line-height:74rpx;
  886. text-align center
  887. font-size:28rpx;
  888. color:#EE3A3A;
  889. }
  890. }
  891. }
  892. .button-view{
  893. margin:0 20rpx;
  894. border-top:1rpx dashed #e0e0e0;
  895. line-height:90rpx;
  896. text-align :center;
  897. font-size:26rpx;
  898. color:#333;
  899. }
  900. }
  901. .get-null-box{
  902. height:100rpx;
  903. line-height:100rpx;
  904. color:#999;
  905. text-align center
  906. }
  907. }
  908. .for-max-box{
  909. margin:0 20rpx 120rpx;
  910. background: #fff
  911. overflow: hidden
  912. border-bottom-left-radius 20rpx
  913. border-bottom-right-radius 20rpx
  914. .null-img{
  915. display block
  916. width:276rpx;
  917. height:321rpx;
  918. margin:40rpx auto;
  919. }
  920. .for-box:nth-child(1){
  921. border-top:none;
  922. }
  923. .for-box{
  924. border-top:4rpx solid #dedede;
  925. overflow hidden
  926. background #ffffff
  927. margin-bottom:20rpx;
  928. .title-box{
  929. margin:20rpx 20rpx 0;
  930. display flex
  931. view:nth-child(1){
  932. height:40rpx;
  933. line-height:40rpx;
  934. font-size:20rpx;
  935. border-radius:10rpx;
  936. padding:0 20rpx;
  937. color:#fff;
  938. margin-right:20rpx;
  939. }
  940. view:nth-child(2){
  941. line-height:42rpx;
  942. font-size:30rpx;
  943. color:#333;
  944. max-width:600rpx;
  945. flex:1;
  946. }
  947. img{
  948. width:12rpx;
  949. height:20rpx;
  950. margin-top:11rpx;
  951. }
  952. .colorA{
  953. background:#aa2315;
  954. }
  955. .colorB{
  956. background:#ff9b09;
  957. }
  958. .colorC{
  959. background:#3ea3e9;
  960. }
  961. .colorD{
  962. background:#3ea34c;
  963. }
  964. }
  965. .address-box{
  966. margin:20rpx 20rpx;
  967. font-size:26rpx;
  968. color:#999999;
  969. span{
  970. margin-right:60rpx;
  971. }
  972. }
  973. .address-box-two{
  974. display flex
  975. margin:0 20rpx 20rpx 20rpx;
  976. img{
  977. width:28rpx;
  978. height:30rpx;
  979. margin-right:18rpx;
  980. }
  981. view{
  982. line-height:30rpx;
  983. font-size:24rpx;
  984. color:#999999;
  985. }
  986. }
  987. .text-box{
  988. /*border-top:1rpx dashed #e0e0e0;*/
  989. border-top:1rpx solid #E0E0E0;
  990. padding:20rpx 20rpx 0;
  991. /*
  992. overflow-x:scroll;
  993. overflow-y:hidden;
  994. white-space: nowrap;
  995. */
  996. .min-box{
  997. display inline-block
  998. /*padding:0 30rpx 0 10rpx;*/
  999. width:335rpx;
  1000. .min-min-box{
  1001. display: flex
  1002. img{
  1003. width:30rpx;
  1004. height:27rpx;
  1005. margin-top:24rpx;
  1006. margin-right:10rpx;
  1007. }
  1008. view{
  1009. line-height:74rpx;
  1010. text-align center
  1011. font-size:28rpx;
  1012. color:#333;
  1013. }
  1014. .colorA{
  1015. color:#EE3A3A;
  1016. }
  1017. }
  1018. }
  1019. }
  1020. .sensor-max-box{
  1021. margin:0 20rpx;
  1022. border-top:1rpx solid #e0e0e0;
  1023. border-bottom:1rpx solid #e0e0e0;
  1024. display flex
  1025. .for-sensor-box{
  1026. flex:1;
  1027. display flex
  1028. font-size:28rpx;
  1029. line-height:94rpx;
  1030. view{
  1031. margin-left:20rpx;
  1032. font-size:25rpx;
  1033. line-height:94rpx;
  1034. color:#0183FA;
  1035. }
  1036. }
  1037. }
  1038. .button-max-box{
  1039. .button-box{
  1040. display flex
  1041. view:nth-child(1){
  1042. flex:1;
  1043. line-height:90rpx;
  1044. color:#333333;
  1045. margin-left:30rpx;
  1046. font-size:28rpx;
  1047. }
  1048. view:nth-child(2){
  1049. width:142rpx;
  1050. line-height:42rpx;
  1051. border:4rpx solid #0183FA;
  1052. border-radius:25rpx;
  1053. color: #0183FA;
  1054. font-size: 30rpx;
  1055. text-align center;
  1056. margin:20rpx 20rpx 20rpx 0;
  1057. }
  1058. }
  1059. .for-button-box{
  1060. display flex
  1061. view{
  1062. flex:1;
  1063. line-height:90rpx;
  1064. color:#333333;
  1065. margin-left:30rpx;
  1066. font-size:28rpx;
  1067. }
  1068. img{
  1069. height:50rpx;
  1070. width:100rpx;
  1071. margin:20rpx 20rpx 20rpx 0;
  1072. }
  1073. view:nth-child(2){
  1074. text-align right
  1075. color:#999;
  1076. margin-right:30rpx;
  1077. }
  1078. }
  1079. }
  1080. }
  1081. }
  1082. }
  1083. </style>