manageWorkbench.vue 28 KB

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