manageWorkbench.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  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" @click="goPage('gasManage')">
  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 v-if="alarmList.length == index+1" 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. overflow: hidden;
  813. .for-box:nth-child(1){
  814. border-top:none;
  815. }
  816. .for-box{
  817. border-top:4rpx solid #dedede;
  818. background #fff
  819. overflow: hidden
  820. .title-box{
  821. margin:20rpx 20rpx 0;
  822. display flex
  823. view:nth-child(1){
  824. height:40rpx;
  825. line-height:40rpx;
  826. font-size:20rpx;
  827. border-radius:10rpx;
  828. padding:0 20rpx;
  829. color:#fff;
  830. margin-right:20rpx;
  831. }
  832. view:nth-child(2){
  833. line-height:42rpx;
  834. font-size:30rpx;
  835. color:#333;
  836. max-width:600rpx;
  837. flex:1;
  838. }
  839. .colorA{
  840. background:#aa2315;
  841. }
  842. .colorB{
  843. background:#ff9b09;
  844. }
  845. .colorC{
  846. background:#3ea3e9;
  847. }
  848. .colorD{
  849. background:#3ea34c;
  850. }
  851. }
  852. .address-box{
  853. margin:20rpx 20rpx;
  854. font-size:26rpx;
  855. color:#999999;
  856. span{
  857. margin-right:60rpx;
  858. }
  859. }
  860. .address-box-two{
  861. display flex
  862. margin:0 20rpx 20rpx 20rpx;
  863. img{
  864. width:28rpx;
  865. height:30rpx;
  866. margin-right:18rpx;
  867. }
  868. view{
  869. line-height:30rpx;
  870. font-size:24rpx;
  871. color:#999999;
  872. }
  873. }
  874. .for-img-box{
  875. border-top:1rpx solid #e0e0e0;
  876. margin:0 20rpx;
  877. .for-img-min-box{
  878. display flex
  879. img{
  880. width:30rpx;
  881. height:27rpx;
  882. margin-top:24rpx;
  883. margin-right:10rpx;
  884. }
  885. view{
  886. line-height:74rpx;
  887. text-align center
  888. font-size:28rpx;
  889. color:#EE3A3A;
  890. }
  891. }
  892. }
  893. .button-view{
  894. margin:0 20rpx;
  895. border-top:1rpx dashed #e0e0e0;
  896. line-height:90rpx;
  897. text-align :center;
  898. font-size:26rpx;
  899. color:#333;
  900. }
  901. }
  902. .get-null-box{
  903. height:100rpx;
  904. line-height:100rpx;
  905. color:#999;
  906. text-align center
  907. }
  908. }
  909. .for-max-box{
  910. margin:0 20rpx 120rpx;
  911. background: #fff
  912. overflow: hidden
  913. border-bottom-left-radius 20rpx
  914. border-bottom-right-radius 20rpx
  915. .null-img{
  916. display block
  917. width:276rpx;
  918. height:321rpx;
  919. margin:40rpx auto;
  920. }
  921. .for-box:nth-child(1){
  922. border-top:none;
  923. }
  924. .for-box{
  925. border-top:4rpx solid #dedede;
  926. overflow hidden
  927. background #ffffff
  928. margin-bottom:20rpx;
  929. .title-box{
  930. margin:20rpx 20rpx 0;
  931. display flex
  932. view:nth-child(1){
  933. height:40rpx;
  934. line-height:40rpx;
  935. font-size:20rpx;
  936. border-radius:10rpx;
  937. padding:0 20rpx;
  938. color:#fff;
  939. margin-right:20rpx;
  940. }
  941. view:nth-child(2){
  942. line-height:42rpx;
  943. font-size:30rpx;
  944. color:#333;
  945. max-width:600rpx;
  946. flex:1;
  947. }
  948. img{
  949. width:12rpx;
  950. height:20rpx;
  951. margin-top:11rpx;
  952. }
  953. .colorA{
  954. background:#aa2315;
  955. }
  956. .colorB{
  957. background:#ff9b09;
  958. }
  959. .colorC{
  960. background:#3ea3e9;
  961. }
  962. .colorD{
  963. background:#3ea34c;
  964. }
  965. }
  966. .address-box{
  967. margin:20rpx 20rpx;
  968. font-size:26rpx;
  969. color:#999999;
  970. span{
  971. margin-right:60rpx;
  972. }
  973. }
  974. .address-box-two{
  975. display flex
  976. margin:0 20rpx 20rpx 20rpx;
  977. img{
  978. width:28rpx;
  979. height:30rpx;
  980. margin-right:18rpx;
  981. }
  982. view{
  983. line-height:30rpx;
  984. font-size:24rpx;
  985. color:#999999;
  986. }
  987. }
  988. .text-box{
  989. /*border-top:1rpx dashed #e0e0e0;*/
  990. border-top:1rpx solid #E0E0E0;
  991. padding:20rpx 20rpx 0;
  992. /*
  993. overflow-x:scroll;
  994. overflow-y:hidden;
  995. white-space: nowrap;
  996. */
  997. .min-box{
  998. display inline-block
  999. /*padding:0 30rpx 0 10rpx;*/
  1000. width:335rpx;
  1001. .min-min-box{
  1002. display: flex
  1003. img{
  1004. width:30rpx;
  1005. height:27rpx;
  1006. margin-top:24rpx;
  1007. margin-right:10rpx;
  1008. }
  1009. view{
  1010. line-height:74rpx;
  1011. text-align center
  1012. font-size:28rpx;
  1013. color:#333;
  1014. }
  1015. .colorA{
  1016. color:#EE3A3A;
  1017. }
  1018. }
  1019. }
  1020. }
  1021. .sensor-max-box{
  1022. margin:0 20rpx;
  1023. border-top:1rpx solid #e0e0e0;
  1024. border-bottom:1rpx solid #e0e0e0;
  1025. display flex
  1026. .for-sensor-box{
  1027. flex:1;
  1028. display flex
  1029. font-size:28rpx;
  1030. line-height:94rpx;
  1031. view{
  1032. margin-left:20rpx;
  1033. font-size:25rpx;
  1034. line-height:94rpx;
  1035. color:#0183FA;
  1036. }
  1037. }
  1038. }
  1039. .button-max-box{
  1040. .button-box{
  1041. display flex
  1042. view:nth-child(1){
  1043. flex:1;
  1044. line-height:90rpx;
  1045. color:#333333;
  1046. margin-left:30rpx;
  1047. font-size:28rpx;
  1048. }
  1049. view:nth-child(2){
  1050. width:142rpx;
  1051. line-height:42rpx;
  1052. border:4rpx solid #0183FA;
  1053. border-radius:25rpx;
  1054. color: #0183FA;
  1055. font-size: 30rpx;
  1056. text-align center;
  1057. margin:20rpx 20rpx 20rpx 0;
  1058. }
  1059. }
  1060. .for-button-box{
  1061. display flex
  1062. view{
  1063. flex:1;
  1064. line-height:90rpx;
  1065. color:#333333;
  1066. margin-left:30rpx;
  1067. font-size:28rpx;
  1068. }
  1069. img{
  1070. height:50rpx;
  1071. width:100rpx;
  1072. margin:20rpx 20rpx 20rpx 0;
  1073. }
  1074. view:nth-child(2){
  1075. text-align right
  1076. color:#999;
  1077. margin-right:30rpx;
  1078. }
  1079. }
  1080. }
  1081. }
  1082. }
  1083. }
  1084. </style>