manageWorkbench.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050
  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_manage/workbench/securityAlert/securityAlertList',//安全警报
  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. if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && data.data.rectifyGentle){
  497. pageType=1
  498. }else if(data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && !data.data.rectifyGentle){
  499. pageType=1
  500. }else if(data.data.adminGentle && !data.data.applyGentle && data.data.rectifyGentle){
  501. pageType=1
  502. }else if(!data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && data.data.rectifyGentle){
  503. pageType=2
  504. }else if(data.data.adminGentle && !data.data.applyGentle && !data.data.rectifyGentle){
  505. pageType=1
  506. }else if(!data.data.adminGentle && (data.data.applyGentle || data.data.myApplyGentle) && !data.data.rectifyGentle){
  507. pageType=2
  508. }else if(!data.data.adminGentle && !data.data.applyGentle && data.data.rectifyGentle){
  509. pageType=3
  510. }
  511. uni.setStorageSync('gentleIdentifier',pageType)
  512. uni.setStorageSync('gentleIdentifierData',data.data)
  513. if(pageType){
  514. uni.navigateTo({
  515. url: '/pages/safetyExamineWorkbench',
  516. });
  517. }else{
  518. uni.showToast({
  519. title: '没有相关权限',
  520. icon:"none",
  521. mask:true,
  522. duration: 2000
  523. });
  524. }
  525. }
  526. },
  527. },
  528. beforeDestroy(){
  529. //断开mqtt连接
  530. getApp().offMQTT();
  531. //删除报警监听
  532. getApp().deleteAlarmWatch();
  533. //删除传感器监听
  534. getApp().deleteSensorWatch();
  535. }
  536. }
  537. </script>
  538. <style lang="stylus" scoped>
  539. .manage-workbench{
  540. height:100%;
  541. width:100%;
  542. overflow-y:scroll;
  543. box-sizing: border-box;
  544. .top-big-img{
  545. height:342rpx;
  546. width:750rpx;
  547. }
  548. .min-icon-button-box{
  549. display flex;
  550. justify-content: flex-start;
  551. flex-wrap: wrap;
  552. width:710rpx;
  553. margin:20rpx;
  554. background :#ffffff;
  555. border-radius:20rpx;
  556. padding-bottom: 20rpx;
  557. view{
  558. width: 176rpx;
  559. img{
  560. height:75rpx;
  561. width:75rpx;
  562. margin:30rpx auto 10rpx;
  563. }
  564. view{
  565. text-align center
  566. font-size:24rpx;
  567. }
  568. }
  569. }
  570. .big-icon-button-box{
  571. display flex;
  572. margin:20rpx;
  573. img{
  574. width:350rpx;
  575. height:150rpx;
  576. }
  577. img:nth-child(2){
  578. margin-left:10rpx;
  579. }
  580. }
  581. /* 分级管控 */
  582. .grading{
  583. width :712rpx;
  584. height :80rpx;
  585. background: #FFFFFF;
  586. border-radius: 20rpx;
  587. margin-left:20rpx;
  588. margin-bottom :20rpx;
  589. display:flex;
  590. justify-content :flex-start;
  591. align-items :center;
  592. .grading_l{
  593. width :34rpx;
  594. height :34rpx;
  595. margin-left:16rpx;
  596. }
  597. .grading_c{
  598. font-size: 28rpx;
  599. font-family: PingFang SC;
  600. font-weight: 500;
  601. color: #333333;
  602. margin-left:16rpx;
  603. }
  604. .grading_r{
  605. width :504rpx;
  606. height :80rpx;
  607. font-size: 26rpx;
  608. font-family: PingFang SC;
  609. font-weight: 500;
  610. color: #EE3A3A;
  611. display :flex;
  612. justify-content :flex-end;
  613. align-items: center;
  614. >img{
  615. width: 20rpx;
  616. height: 20rpx;
  617. margin-left :20rpx;
  618. margin-top :8rpx;
  619. }
  620. }
  621. }
  622. .top-max-box{
  623. height:300rpx;
  624. .top-min-box{
  625. display: flex
  626. margin:20rpx;
  627. .left-box{
  628. background #fff
  629. height:130rpx;
  630. width:345rpx;
  631. border-radius: 10px;
  632. display flex
  633. .left-img{
  634. height:80rpx;
  635. width:80rpx;
  636. margin:25rpx 30rpx;
  637. }
  638. view{
  639. line-height:130rpx;
  640. font-size: 28rpx;
  641. color:#333;
  642. flex:1;
  643. }
  644. .right-img{
  645. width:20rpx;
  646. height:20rpx;
  647. margin:55rpx 30rpx 0 0;
  648. }
  649. }
  650. .right-box{
  651. background #fff
  652. height:130rpx;
  653. width:345rpx;
  654. margin-left:20rpx;
  655. border-radius: 10rpx;
  656. display flex
  657. .left-img{
  658. height:80rpx;
  659. width:80rpx;
  660. margin:25rpx 30rpx;
  661. }
  662. .right-min-view{
  663. flex:1;
  664. .right-min-title{
  665. line-height:28rpx;
  666. font-size: 28rpx;
  667. margin-top:32rpx;
  668. color: #333333;
  669. }
  670. .right-bottom-min-box{
  671. display flex
  672. view{
  673. flex:1;
  674. text-align right
  675. margin:25rpx 14rpx 0 0;
  676. font-size: 22rpx;
  677. color: #999999;
  678. line-height: 22rpx;
  679. }
  680. img{
  681. width:20rpx;
  682. height:20rpx;
  683. margin:27rpx 80rpx 0 0;
  684. }
  685. }
  686. }
  687. }
  688. }
  689. .bottom-min-box{
  690. background #fff
  691. height:130rpx;
  692. width:710rpx;
  693. border-radius: 10px;
  694. margin:0 20rpx;
  695. display flex
  696. .left-img{
  697. height:80rpx;
  698. width:80rpx;
  699. margin:25rpx 30rpx;
  700. }
  701. view{
  702. flex:1;
  703. line-height:130rpx;
  704. }
  705. view:nth-child(2){
  706. font-size: 28rpx;
  707. color:#333;
  708. }
  709. view:nth-child(3){
  710. text-align right
  711. font-size: 22rpx;
  712. color:#999;
  713. margin-right:12rpx;
  714. }
  715. .right-img{
  716. width:20rpx;
  717. height:20rpx;
  718. margin:55rpx 30rpx 0 0;
  719. }
  720. }
  721. }
  722. .for-title-p{
  723. border-top-left-radius 20rpx
  724. border-top-right-radius 20rpx
  725. background #fff
  726. padding-left:25rpx;
  727. display flex
  728. margin:0 20rpx;
  729. border-bottom:1rpx solid #e0e0e0;
  730. .left-img{
  731. height:34rpx;
  732. width:34rpx;
  733. margin:22rpx 10rpx 0 0;
  734. }
  735. .name-view{
  736. line-height:77rpx;
  737. font-size:30rpx;
  738. color:#333;
  739. }
  740. .num-view{
  741. width:28rpx;
  742. height:28rpx;
  743. font-size:20rpx;
  744. background:#EE3A3A;
  745. border-radius:50%;
  746. text-align :center;
  747. line-height:24rpx;
  748. color:#fff;
  749. margin:26rpx 0 0 10rpx;
  750. }
  751. .null-view{
  752. flex:1;
  753. }
  754. .right-img{
  755. height:20rpx;
  756. width:10rpx;
  757. margin:28rpx 19rpx 0 0;
  758. }
  759. }
  760. .for-max-box-one{
  761. margin:0 20rpx;
  762. border-bottom-left-radius 20rpx
  763. border-bottom-right-radius 20rpx
  764. .for-box:nth-child(1){
  765. border-top:none;
  766. }
  767. .for-box{
  768. border-top:4rpx solid #dedede;
  769. background #fff
  770. margin-bottom:20rpx;
  771. overflow: hidden
  772. .title-box{
  773. margin:20rpx 20rpx 0;
  774. display flex
  775. view:nth-child(1){
  776. height:40rpx;
  777. line-height:40rpx;
  778. font-size:20rpx;
  779. border-radius:10rpx;
  780. padding:0 20rpx;
  781. color:#fff;
  782. margin-right:20rpx;
  783. }
  784. view:nth-child(2){
  785. line-height:42rpx;
  786. font-size:30rpx;
  787. color:#333;
  788. max-width:600rpx;
  789. flex:1;
  790. }
  791. .colorA{
  792. background:#aa2315;
  793. }
  794. .colorB{
  795. background:#ff9b09;
  796. }
  797. .colorC{
  798. background:#3ea3e9;
  799. }
  800. .colorD{
  801. background:#3ea34c;
  802. }
  803. }
  804. .address-box{
  805. margin:20rpx 20rpx;
  806. font-size:26rpx;
  807. color:#999999;
  808. span{
  809. margin-right:60rpx;
  810. }
  811. }
  812. .address-box-two{
  813. display flex
  814. margin:0 20rpx 20rpx 20rpx;
  815. img{
  816. width:28rpx;
  817. height:30rpx;
  818. margin-right:18rpx;
  819. }
  820. view{
  821. line-height:30rpx;
  822. font-size:24rpx;
  823. color:#999999;
  824. }
  825. }
  826. .for-img-box{
  827. border-top:1rpx solid #e0e0e0;
  828. margin:0 20rpx;
  829. .for-img-min-box{
  830. display flex
  831. img{
  832. width:30rpx;
  833. height:27rpx;
  834. margin-top:24rpx;
  835. margin-right:10rpx;
  836. }
  837. view{
  838. line-height:74rpx;
  839. text-align center
  840. font-size:28rpx;
  841. color:#EE3A3A;
  842. }
  843. }
  844. }
  845. .button-view{
  846. margin:0 20rpx;
  847. border-top:1rpx dashed #e0e0e0;
  848. line-height:90rpx;
  849. text-align :center;
  850. font-size:26rpx;
  851. color:#333;
  852. }
  853. }
  854. .get-null-box{
  855. height:100rpx;
  856. line-height:100rpx;
  857. color:#999;
  858. text-align center
  859. }
  860. }
  861. .for-max-box{
  862. margin:0 20rpx 120rpx;
  863. background: #fff
  864. overflow: hidden
  865. border-bottom-left-radius 20rpx
  866. border-bottom-right-radius 20rpx
  867. .null-img{
  868. display block
  869. width:276rpx;
  870. height:321rpx;
  871. margin:40rpx auto;
  872. }
  873. .for-box:nth-child(1){
  874. border-top:none;
  875. }
  876. .for-box{
  877. border-top:4rpx solid #dedede;
  878. overflow hidden
  879. background #ffffff
  880. margin-bottom:20rpx;
  881. .title-box{
  882. margin:20rpx 20rpx 0;
  883. display flex
  884. view:nth-child(1){
  885. height:40rpx;
  886. line-height:40rpx;
  887. font-size:20rpx;
  888. border-radius:10rpx;
  889. padding:0 20rpx;
  890. color:#fff;
  891. margin-right:20rpx;
  892. }
  893. view:nth-child(2){
  894. line-height:42rpx;
  895. font-size:30rpx;
  896. color:#333;
  897. max-width:600rpx;
  898. flex:1;
  899. }
  900. img{
  901. width:12rpx;
  902. height:20rpx;
  903. margin-top:11rpx;
  904. }
  905. .colorA{
  906. background:#aa2315;
  907. }
  908. .colorB{
  909. background:#ff9b09;
  910. }
  911. .colorC{
  912. background:#3ea3e9;
  913. }
  914. .colorD{
  915. background:#3ea34c;
  916. }
  917. }
  918. .address-box{
  919. margin:20rpx 20rpx;
  920. font-size:26rpx;
  921. color:#999999;
  922. span{
  923. margin-right:60rpx;
  924. }
  925. }
  926. .address-box-two{
  927. display flex
  928. margin:0 20rpx 20rpx 20rpx;
  929. img{
  930. width:28rpx;
  931. height:30rpx;
  932. margin-right:18rpx;
  933. }
  934. view{
  935. line-height:30rpx;
  936. font-size:24rpx;
  937. color:#999999;
  938. }
  939. }
  940. .text-box{
  941. /*border-top:1rpx dashed #e0e0e0;*/
  942. border-top:1rpx solid #E0E0E0;
  943. padding:20rpx 20rpx 0;
  944. /*
  945. overflow-x:scroll;
  946. overflow-y:hidden;
  947. white-space: nowrap;
  948. */
  949. .min-box{
  950. display inline-block
  951. /*padding:0 30rpx 0 10rpx;*/
  952. width:335rpx;
  953. .min-min-box{
  954. display: flex
  955. img{
  956. width:30rpx;
  957. height:27rpx;
  958. margin-top:24rpx;
  959. margin-right:10rpx;
  960. }
  961. view{
  962. line-height:74rpx;
  963. text-align center
  964. font-size:28rpx;
  965. color:#333;
  966. }
  967. .colorA{
  968. color:#EE3A3A;
  969. }
  970. }
  971. }
  972. }
  973. .sensor-max-box{
  974. margin:0 20rpx;
  975. border-top:1rpx solid #e0e0e0;
  976. border-bottom:1rpx solid #e0e0e0;
  977. display flex
  978. .for-sensor-box{
  979. flex:1;
  980. display flex
  981. font-size:28rpx;
  982. line-height:94rpx;
  983. view{
  984. margin-left:20rpx;
  985. font-size:25rpx;
  986. line-height:94rpx;
  987. color:#0183FA;
  988. }
  989. }
  990. }
  991. .button-max-box{
  992. .button-box{
  993. display flex
  994. view:nth-child(1){
  995. flex:1;
  996. line-height:90rpx;
  997. color:#333333;
  998. margin-left:30rpx;
  999. font-size:28rpx;
  1000. }
  1001. view:nth-child(2){
  1002. width:142rpx;
  1003. line-height:42rpx;
  1004. border:4rpx solid #0183FA;
  1005. border-radius:25rpx;
  1006. color: #0183FA;
  1007. font-size: 30rpx;
  1008. text-align center;
  1009. margin:20rpx 20rpx 20rpx 0;
  1010. }
  1011. }
  1012. .for-button-box{
  1013. display flex
  1014. view{
  1015. flex:1;
  1016. line-height:90rpx;
  1017. color:#333333;
  1018. margin-left:30rpx;
  1019. font-size:28rpx;
  1020. }
  1021. img{
  1022. height:50rpx;
  1023. width:100rpx;
  1024. margin:20rpx 20rpx 20rpx 0;
  1025. }
  1026. view:nth-child(2){
  1027. text-align right
  1028. color:#999;
  1029. margin-right:30rpx;
  1030. }
  1031. }
  1032. }
  1033. }
  1034. }
  1035. }
  1036. </style>