manageWorkbench.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095
  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. let self=this;
  256. const {data} = await laboratoryInfo(item.subDiyVo.id);
  257. if(data.code == 200){
  258. let obj = data.data[0];
  259. obj.subClassVO = item.subDiyVo.subClassVO;
  260. obj.name = item.subDiyVo.name;
  261. obj.subTypeLable = item.subDiyVo.subTypeLable;
  262. obj.deptName = item.subDiyVo.deptName;
  263. obj.subAddrrStr = item.subDiyVo.subAddrrStr;
  264. //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
  265. for(let i=0;i<obj.labHardwareVOList.length;i++){
  266. if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
  267. for(let b=0;b<self.fanList.length;b++){
  268. if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
  269. obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
  270. }
  271. }
  272. }
  273. }
  274. uni.navigateTo({
  275. url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+obj.deptId
  276. });
  277. }
  278. },
  279. //获取实验室详情
  280. async laboratoryInfoOne(item){
  281. let self=this;
  282. const {data} = await laboratoryInfo(item.id);
  283. if(data.code == 200){
  284. let obj = data.data[0];
  285. obj.subClassVO = item.subClassVO;
  286. obj.name = item.name;
  287. obj.subTypeLable = item.subTypeLable;
  288. obj.deptName = item.deptName;
  289. obj.subAddrrStr = item.subAddrrStr;
  290. obj.sensorFunctionList = item.sensorFunctionList;
  291. //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
  292. for(let i=0;i<obj.labHardwareVOList.length;i++){
  293. if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
  294. for(let b=0;b<self.fanList.length;b++){
  295. if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
  296. obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
  297. }
  298. }
  299. }
  300. }
  301. uni.navigateTo({
  302. url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+item.deptId
  303. });
  304. }
  305. },
  306. //获取报警信息列表
  307. async getSafeWarnList(){
  308. let obj = {
  309. pageNum:1,
  310. pageSize:1,
  311. count:0,
  312. groupStatus:1,
  313. };
  314. const {data} = await getSafeWarnList(obj);
  315. if(data.code == 200){
  316. this.alarmList = data.rows;
  317. if(data.rows[0]){
  318. this.securityAlertNum = data.rows[0].todayHappenCount;
  319. }else{
  320. this.securityAlertNum = 0;
  321. }
  322. }
  323. },
  324. //获取实验室列表
  325. async laboratoryList(){
  326. let self = this;
  327. let obj = {
  328. deptId:this.facultyIndex?this.facultyList[this.facultyIndex].deptId:'',
  329. subDept:this.subjectIndex?this.subjectList[this.subjectIndex].dictValue:'',
  330. level:this.levelIndex?this.levelList[this.levelIndex].dictValue:'',
  331. };
  332. const {data} = await laboratoryList(obj);
  333. if(data.code == 200){
  334. for(let o=0;o<data.data.length;o++){
  335. if(data.data[o].labHardwareVOList){
  336. data.data[o].hardwareList = [];
  337. for(let i=0;i<data.data[o].labHardwareVOList.length;i++){
  338. if(data.data[o].labHardwareVOList[i].hardwareTypeEnum.code == 4 &&data.data[o].labHardwareVOList[i].hardwareNUM){
  339. if(data.data[o].hardwareNUM){
  340. data.data[o].hardwareNUM = data.data[o].hardwareNUM + ',' + data.data[o].labHardwareVOList[i].hardwareNUM
  341. }else{
  342. data.data[o].hardwareNUM = data.data[o].labHardwareVOList[i].hardwareNUM
  343. }
  344. }else{
  345. let obj = {
  346. name:"",
  347. type:"",
  348. };
  349. obj.name = data.data[o].labHardwareVOList[i].hardwareTypeEnum.hardwareTypeName
  350. obj.type = data.data[o].labHardwareVOList[i].state.code;
  351. obj.id = data.data[o].labHardwareVOList[i].id;
  352. data.data[o].hardwareList.push(obj);
  353. }
  354. }
  355. }
  356. }
  357. this.dataList = data.data;
  358. let list = [];
  359. let obj = {
  360. type:"lab/function/data",
  361. idList:[],
  362. }
  363. for(let i=0;i<self.dataList.length;i++){
  364. let num = 0;
  365. for(let o=0;o<obj.idList.length;o++){
  366. if(obj.idList[o] == self.dataList[i].id){
  367. num++
  368. }
  369. }
  370. if(num == 0){
  371. obj.idList.push(self.dataList[i].id)
  372. }
  373. }
  374. list.push({type:"lab/riskPlan/trigger/notice",});
  375. getApp().appMqttOn(1,list);
  376. }
  377. },
  378. //获取输入数量
  379. async getApprovalCount(){
  380. const {data} = await getApprovalCount()
  381. if(data.code == 200){
  382. this.passedNum = data.data.passed + '人已获得';
  383. }
  384. },
  385. //获取管理员工作台随手拍数量数据
  386. async appReceivePhotoNote(){
  387. const {data} = await appReceivePhotoNote();
  388. if(data.code == 200){
  389. this.appReceivePhotoNoteNum = data.data.photoCount;
  390. }
  391. },
  392. //获取学科字典
  393. async subject_class(){
  394. const {data} = await subject_class();
  395. if(data.code == 200){
  396. this.subject_classData = data.data;
  397. }
  398. },
  399. //去安全警报
  400. goSecurityAlertList(){
  401. uni.navigateTo({
  402. url: '/pages/earlyWarningManage/earlyWarningList',//安全警报
  403. });
  404. },
  405. //页面跳转
  406. goPage(type){
  407. if(type=='casuallyPat'){
  408. uni.navigateTo({
  409. url: '/pages_safetyExamine/snapshotManage/snapshotAdd'
  410. });
  411. }else if(type=='receiveCasuallyPat'){//收到随手拍
  412. uni.navigateTo({
  413. url: '/pages_manage/workbench/receiveCasuallyPat/receiveCasuallyPat',
  414. });
  415. }else if(type=='accessQualification'){//收到随手拍
  416. uni.navigateTo({
  417. url: '/pages_manage/workbench/accessQualification/accessQualification',
  418. });
  419. }else if(type == 'safetyInspect'){//安全检查
  420. this.getGentleIdentifier();
  421. }
  422. else if(type == 'alarm'){
  423. uni.navigateTo({
  424. url: '/pages/earlyWarningManage/earlyWarningList',//安全警报
  425. });
  426. }else if(type == 'emergencyEvacuation'){
  427. uni.navigateTo({
  428. url: '/pages_manage/emergencyEvacuationBig',//安全警报
  429. });
  430. }else if(type == 'photoInspection'){
  431. this.outSubjectPhoto();
  432. }else if(type == 'grading'){
  433. uni.navigateTo({
  434. url: '/pages_manage/gradingControl/gradingControl',//分级管控
  435. });
  436. }else if(type == 'gasManage'){//气瓶管理
  437. uni.navigateTo({
  438. url: '/pages/gasBottle/gasManage/gasManage',
  439. });
  440. }else if(type == 'none'){
  441. uni.showToast({
  442. title: '暂未开放',
  443. icon:"none",
  444. mask:true,
  445. duration: 2000
  446. });
  447. }
  448. },//获取拍照检查配置
  449. async outSubjectPhoto(){
  450. const {data} = await outSubjectPhoto();
  451. if(data.code == 200){
  452. if(data.data == null){
  453. //需要检查(重新填写)
  454. let obj = {
  455. sub:"实验室照片",
  456. subUrl:"",
  457. garbage:"垃圾桶清理后照片",
  458. garbageUrl:"",
  459. dangerous:"使用危险设备照片(选填)",
  460. dangerousUrl:"",
  461. sourceRisk:"危险源设备使用登记本照片(选填)",
  462. sourceRiskUrl:"",
  463. };
  464. uni.navigateTo({
  465. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  466. });
  467. }else if(data.data == false){
  468. //不需要检查
  469. uni.showToast({
  470. title: '暂无检查数据',
  471. icon:"none",
  472. mask:true,
  473. duration: 2000
  474. });
  475. }else{
  476. //需要检查(修改内容)
  477. let obj = {
  478. id:data.data.id,
  479. sub:"实验室照片",
  480. subUrl:data.data.subUrl,
  481. garbage:"垃圾桶清理后照片",
  482. garbageUrl:data.data.garbageUrl,
  483. dangerous:"使用危险设备照片(选填)",
  484. dangerousUrl:data.data.dangerousUrl,
  485. sourceRisk:"危险源设备使用登记本照片(选填)",
  486. sourceRiskUrl:data.data.sourceRiskUrl,
  487. };
  488. uni.navigateTo({
  489. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  490. });
  491. }
  492. }
  493. },
  494. //获取用户身份标识"adminGentle": false, 管理员身份 "rectifyGentle": false, 整改身份"applyGentle": false 检查者身份
  495. async getGentleIdentifier(){
  496. let self = this;
  497. const {data} = await getGentleIdentifier();
  498. if(data.code==200){
  499. let pageType = null
  500. // 如果是管理员 检查者和整改者
  501. let list=[];
  502. if(data.data.adminGentle){
  503. list.push({name:'管理员',pageType:1})
  504. }
  505. if(data.data.applyGentle ||data.data.myApplyGentle){
  506. list.push({name:'检查者',pageType:2})
  507. }
  508. if(data.data.rectifyGentle){
  509. list.push({name:'整改者',pageType:3})
  510. }
  511. uni.setStorageSync('gentleIdentifier',list)
  512. uni.setStorageSync('gentleIdentifierData',data.data)
  513. if(list.length>0){
  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. justify-content: space-between;
  573. margin:20rpx;
  574. .big-icon-button-box_l{
  575. position: relative;
  576. width:372rpx;
  577. height:260rpx;
  578. .big-icon-button-box_bg{
  579. width:372rpx;
  580. height:260rpx;
  581. position: absolute;
  582. z-index: 100;
  583. }
  584. .big-icon-button-box_t1{
  585. width: 149rpx;
  586. height: 40rpx;
  587. background: rgba(225,225,225,0.3);
  588. border-radius: 2rpx;
  589. font-size: 24rpx;
  590. font-family: Microsoft YaHei;
  591. font-weight: 400;
  592. color: #333333;
  593. line-height: 40rpx;
  594. text-align: center;
  595. position:absolute;
  596. right: 42rpx;
  597. top: 94rpx;
  598. z-index: 200;
  599. }
  600. .big-icon-button-box_t2{
  601. width: 175rpx;
  602. height: 20rpx;
  603. font-size: 18rpx;
  604. font-family: Microsoft YaHei;
  605. font-weight: 400;
  606. color: #333333;
  607. line-height: 20rpx;
  608. position:absolute;
  609. right: 28rpx;
  610. top: 148rpx;
  611. z-index: 200;
  612. }
  613. }
  614. .big-icon-button-box_r{
  615. img{
  616. width:320rpx;
  617. height:120rpx;
  618. }
  619. >img:nth-of-type(2){
  620. margin-top: 20rpx;
  621. }
  622. }
  623. }
  624. /* 分级管控 */
  625. .grading{
  626. width :712rpx;
  627. height :80rpx;
  628. background: #FFFFFF;
  629. border-radius: 20rpx;
  630. margin-left:20rpx;
  631. margin-bottom :20rpx;
  632. display:flex;
  633. justify-content :flex-start;
  634. align-items :center;
  635. .grading_l{
  636. width :34rpx;
  637. height :34rpx;
  638. margin-left:16rpx;
  639. }
  640. .grading_c{
  641. font-size: 28rpx;
  642. font-family: PingFang SC;
  643. font-weight: 500;
  644. color: #333333;
  645. margin-left:16rpx;
  646. }
  647. .grading_r{
  648. width :504rpx;
  649. height :80rpx;
  650. font-size: 26rpx;
  651. font-family: PingFang SC;
  652. font-weight: 500;
  653. color: #EE3A3A;
  654. display :flex;
  655. justify-content :flex-end;
  656. align-items: center;
  657. >img{
  658. width: 20rpx;
  659. height: 20rpx;
  660. margin-left :20rpx;
  661. margin-top :8rpx;
  662. }
  663. }
  664. }
  665. .top-max-box{
  666. height:300rpx;
  667. .top-min-box{
  668. display: flex
  669. margin:20rpx;
  670. .left-box{
  671. background #fff
  672. height:130rpx;
  673. width:345rpx;
  674. border-radius: 10px;
  675. display flex
  676. .left-img{
  677. height:80rpx;
  678. width:80rpx;
  679. margin:25rpx 30rpx;
  680. }
  681. view{
  682. line-height:130rpx;
  683. font-size: 28rpx;
  684. color:#333;
  685. flex:1;
  686. }
  687. .right-img{
  688. width:20rpx;
  689. height:20rpx;
  690. margin:55rpx 30rpx 0 0;
  691. }
  692. }
  693. .right-box{
  694. background #fff
  695. height:130rpx;
  696. width:345rpx;
  697. margin-left:20rpx;
  698. border-radius: 10rpx;
  699. display flex
  700. .left-img{
  701. height:80rpx;
  702. width:80rpx;
  703. margin:25rpx 30rpx;
  704. }
  705. .right-min-view{
  706. flex:1;
  707. .right-min-title{
  708. line-height:28rpx;
  709. font-size: 28rpx;
  710. margin-top:32rpx;
  711. color: #333333;
  712. }
  713. .right-bottom-min-box{
  714. display flex
  715. view{
  716. flex:1;
  717. text-align right
  718. margin:25rpx 14rpx 0 0;
  719. font-size: 22rpx;
  720. color: #999999;
  721. line-height: 22rpx;
  722. }
  723. img{
  724. width:20rpx;
  725. height:20rpx;
  726. margin:27rpx 80rpx 0 0;
  727. }
  728. }
  729. }
  730. }
  731. }
  732. .bottom-min-box{
  733. background #fff
  734. height:130rpx;
  735. width:710rpx;
  736. border-radius: 10px;
  737. margin:0 20rpx;
  738. display flex
  739. .left-img{
  740. height:80rpx;
  741. width:80rpx;
  742. margin:25rpx 30rpx;
  743. }
  744. view{
  745. flex:1;
  746. line-height:130rpx;
  747. }
  748. view:nth-child(2){
  749. font-size: 28rpx;
  750. color:#333;
  751. }
  752. view:nth-child(3){
  753. text-align right
  754. font-size: 22rpx;
  755. color:#999;
  756. margin-right:12rpx;
  757. }
  758. .right-img{
  759. width:20rpx;
  760. height:20rpx;
  761. margin:55rpx 30rpx 0 0;
  762. }
  763. }
  764. }
  765. .for-title-p{
  766. border-top-left-radius 20rpx
  767. border-top-right-radius 20rpx
  768. background #fff
  769. padding-left:25rpx;
  770. display flex
  771. margin:0 20rpx;
  772. border-bottom:1rpx solid #e0e0e0;
  773. .left-img{
  774. height:34rpx;
  775. width:34rpx;
  776. margin:22rpx 10rpx 0 0;
  777. }
  778. .name-view{
  779. line-height:77rpx;
  780. font-size:30rpx;
  781. color:#333;
  782. }
  783. .num-view{
  784. width:28rpx;
  785. height:28rpx;
  786. font-size:20rpx;
  787. background:#EE3A3A;
  788. border-radius:50%;
  789. text-align :center;
  790. line-height:24rpx;
  791. color:#fff;
  792. margin:26rpx 0 0 10rpx;
  793. }
  794. .null-view{
  795. flex:1;
  796. }
  797. .right-img{
  798. height:20rpx;
  799. width:10rpx;
  800. margin:28rpx 19rpx 0 0;
  801. }
  802. }
  803. .for-max-box-one{
  804. margin:0 20rpx;
  805. border-bottom-left-radius 20rpx
  806. border-bottom-right-radius 20rpx
  807. .for-box:nth-child(1){
  808. border-top:none;
  809. }
  810. .for-box{
  811. border-top:4rpx solid #dedede;
  812. background #fff
  813. margin-bottom:20rpx;
  814. overflow: hidden
  815. .title-box{
  816. margin:20rpx 20rpx 0;
  817. display flex
  818. view:nth-child(1){
  819. height:40rpx;
  820. line-height:40rpx;
  821. font-size:20rpx;
  822. border-radius:10rpx;
  823. padding:0 20rpx;
  824. color:#fff;
  825. margin-right:20rpx;
  826. }
  827. view:nth-child(2){
  828. line-height:42rpx;
  829. font-size:30rpx;
  830. color:#333;
  831. max-width:600rpx;
  832. flex:1;
  833. }
  834. .colorA{
  835. background:#aa2315;
  836. }
  837. .colorB{
  838. background:#ff9b09;
  839. }
  840. .colorC{
  841. background:#3ea3e9;
  842. }
  843. .colorD{
  844. background:#3ea34c;
  845. }
  846. }
  847. .address-box{
  848. margin:20rpx 20rpx;
  849. font-size:26rpx;
  850. color:#999999;
  851. span{
  852. margin-right:60rpx;
  853. }
  854. }
  855. .address-box-two{
  856. display flex
  857. margin:0 20rpx 20rpx 20rpx;
  858. img{
  859. width:28rpx;
  860. height:30rpx;
  861. margin-right:18rpx;
  862. }
  863. view{
  864. line-height:30rpx;
  865. font-size:24rpx;
  866. color:#999999;
  867. }
  868. }
  869. .for-img-box{
  870. border-top:1rpx solid #e0e0e0;
  871. margin:0 20rpx;
  872. .for-img-min-box{
  873. display flex
  874. img{
  875. width:30rpx;
  876. height:27rpx;
  877. margin-top:24rpx;
  878. margin-right:10rpx;
  879. }
  880. view{
  881. line-height:74rpx;
  882. text-align center
  883. font-size:28rpx;
  884. color:#EE3A3A;
  885. }
  886. }
  887. }
  888. .button-view{
  889. margin:0 20rpx;
  890. border-top:1rpx dashed #e0e0e0;
  891. line-height:90rpx;
  892. text-align :center;
  893. font-size:26rpx;
  894. color:#333;
  895. }
  896. }
  897. .get-null-box{
  898. height:100rpx;
  899. line-height:100rpx;
  900. color:#999;
  901. text-align center
  902. }
  903. }
  904. .for-max-box{
  905. margin:0 20rpx 120rpx;
  906. background: #fff
  907. overflow: hidden
  908. border-bottom-left-radius 20rpx
  909. border-bottom-right-radius 20rpx
  910. .null-img{
  911. display block
  912. width:276rpx;
  913. height:321rpx;
  914. margin:40rpx auto;
  915. }
  916. .for-box:nth-child(1){
  917. border-top:none;
  918. }
  919. .for-box{
  920. border-top:4rpx solid #dedede;
  921. overflow hidden
  922. background #ffffff
  923. margin-bottom:20rpx;
  924. .title-box{
  925. margin:20rpx 20rpx 0;
  926. display flex
  927. view:nth-child(1){
  928. height:40rpx;
  929. line-height:40rpx;
  930. font-size:20rpx;
  931. border-radius:10rpx;
  932. padding:0 20rpx;
  933. color:#fff;
  934. margin-right:20rpx;
  935. }
  936. view:nth-child(2){
  937. line-height:42rpx;
  938. font-size:30rpx;
  939. color:#333;
  940. max-width:600rpx;
  941. flex:1;
  942. }
  943. img{
  944. width:12rpx;
  945. height:20rpx;
  946. margin-top:11rpx;
  947. }
  948. .colorA{
  949. background:#aa2315;
  950. }
  951. .colorB{
  952. background:#ff9b09;
  953. }
  954. .colorC{
  955. background:#3ea3e9;
  956. }
  957. .colorD{
  958. background:#3ea34c;
  959. }
  960. }
  961. .address-box{
  962. margin:20rpx 20rpx;
  963. font-size:26rpx;
  964. color:#999999;
  965. span{
  966. margin-right:60rpx;
  967. }
  968. }
  969. .address-box-two{
  970. display flex
  971. margin:0 20rpx 20rpx 20rpx;
  972. img{
  973. width:28rpx;
  974. height:30rpx;
  975. margin-right:18rpx;
  976. }
  977. view{
  978. line-height:30rpx;
  979. font-size:24rpx;
  980. color:#999999;
  981. }
  982. }
  983. .text-box{
  984. /*border-top:1rpx dashed #e0e0e0;*/
  985. border-top:1rpx solid #E0E0E0;
  986. padding:20rpx 20rpx 0;
  987. /*
  988. overflow-x:scroll;
  989. overflow-y:hidden;
  990. white-space: nowrap;
  991. */
  992. .min-box{
  993. display inline-block
  994. /*padding:0 30rpx 0 10rpx;*/
  995. width:335rpx;
  996. .min-min-box{
  997. display: flex
  998. img{
  999. width:30rpx;
  1000. height:27rpx;
  1001. margin-top:24rpx;
  1002. margin-right:10rpx;
  1003. }
  1004. view{
  1005. line-height:74rpx;
  1006. text-align center
  1007. font-size:28rpx;
  1008. color:#333;
  1009. }
  1010. .colorA{
  1011. color:#EE3A3A;
  1012. }
  1013. }
  1014. }
  1015. }
  1016. .sensor-max-box{
  1017. margin:0 20rpx;
  1018. border-top:1rpx solid #e0e0e0;
  1019. border-bottom:1rpx solid #e0e0e0;
  1020. display flex
  1021. .for-sensor-box{
  1022. flex:1;
  1023. display flex
  1024. font-size:28rpx;
  1025. line-height:94rpx;
  1026. view{
  1027. margin-left:20rpx;
  1028. font-size:25rpx;
  1029. line-height:94rpx;
  1030. color:#0183FA;
  1031. }
  1032. }
  1033. }
  1034. .button-max-box{
  1035. .button-box{
  1036. display flex
  1037. view:nth-child(1){
  1038. flex:1;
  1039. line-height:90rpx;
  1040. color:#333333;
  1041. margin-left:30rpx;
  1042. font-size:28rpx;
  1043. }
  1044. view:nth-child(2){
  1045. width:142rpx;
  1046. line-height:42rpx;
  1047. border:4rpx solid #0183FA;
  1048. border-radius:25rpx;
  1049. color: #0183FA;
  1050. font-size: 30rpx;
  1051. text-align center;
  1052. margin:20rpx 20rpx 20rpx 0;
  1053. }
  1054. }
  1055. .for-button-box{
  1056. display flex
  1057. view{
  1058. flex:1;
  1059. line-height:90rpx;
  1060. color:#333333;
  1061. margin-left:30rpx;
  1062. font-size:28rpx;
  1063. }
  1064. img{
  1065. height:50rpx;
  1066. width:100rpx;
  1067. margin:20rpx 20rpx 20rpx 0;
  1068. }
  1069. view:nth-child(2){
  1070. text-align right
  1071. color:#999;
  1072. margin-right:30rpx;
  1073. }
  1074. }
  1075. }
  1076. }
  1077. }
  1078. }
  1079. </style>