manageWorkbench.vue 28 KB

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