infoPage.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <template>
  2. <div class="infoPage" v-if="newData.id">
  3. <div class="left-max-box scrollbar-box">
  4. <div class="top-max-box" style="position: relative">
  5. <div class="all-title-box">
  6. <p></p>
  7. <p>实验室安全信息牌</p>
  8. </div>
  9. <div class="left-top-title-box">
  10. <div class="left-box">
  11. <div class="lv-name-box">
  12. <p :style="'color:'+newData.fiedColor+';border:1px solid '+newData.fiedColor+';'">{{newData.levelName}}</p>
  13. <p>{{newData.name}}</p>
  14. </div>
  15. <div class="type-address-box">
  16. <p>{{newData.typeName}}</p>
  17. <p v-if="newData.subAddrr">{{newData.subAddrr.buildName}}{{newData.subAddrr.floorName}}</p>
  18. </div>
  19. </div>
  20. <div class="right-code-img" @click="clickCode">
  21. <vue-qr style="display: block;height:60px;width:60px;cursor:pointer;margin:0 10px 0 0;" :text="newData.qrCode" :size="300" @click="clickCode"></vue-qr>
  22. </div>
  23. </div>
  24. <div class="user-max-box">
  25. <div class="left-box">
  26. <p>实验室责任人:<span>{{newData.adminName}}</span></p>
  27. <p>联系方式:<span>{{newData.adminPhone}}</span></p>
  28. </div>
  29. <div class="right-box">
  30. <div v-for="(item,index) in newData.safeUserName" :key="index">
  31. <p>安全责任人:<span>{{newData.safeUserName[index]}}</span></p>
  32. <p>联系方式:<span>{{newData.safeUserPhone[index]?newData.safeUserPhone[index]:'未填写'}}</span></p>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="info-max-box">
  37. <div class="left-box">
  38. <div class="for-text-box">
  39. <p class="info-title">主要危险类别:</p>
  40. <div class="for-box" v-for="(item,index1) in newData.hazardCategory" :key="index1">
  41. <p class="for-info-p" v-for="(minItem,index2) in hazardCategory" :key="index2" v-if="minItem.dictValue == item">● {{minItem.dictLabel}}</p>
  42. </div>
  43. </div>
  44. <div class="for-text-box">
  45. <p class="info-title">灭火要点:</p>
  46. <div class="for-box" v-for="(item,index1) in newData.outfire" :key="index1">
  47. <p class="for-info-p" v-for="(minItem,index2) in extinguishingKeyPoints" :key="index2" v-if="minItem.dictValue == item">● {{minItem.dictLabel}}</p>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="right-box">
  52. <div class="for-text-box">
  53. <p class="info-title">风险防控措施:</p>
  54. <div class="for-box" v-for="(item,index1) in newData.riskMeasure" :key="index1">
  55. <p class="for-info-p" v-for="(minItem,index2) in riskMeasure" :key="index2" v-if="minItem.dictValue == item">● {{minItem.dictLabel}}</p>
  56. </div>
  57. </div>
  58. <div class="for-img-box">
  59. <p class="info-title" style="margin-bottom:7px;">安全警示标示:</p>
  60. <img src="@/assets/newImages/icon_aqxxp_jzxy.png" v-if="item == 'xiyan'" v-for="(item,index) in newData.safeSigns" :key="index">
  61. <img src="@/assets/newImages/icon_aqxxp_jzys.png" v-if="item == 'yinshi'" v-for="(item,index) in newData.safeSigns" :key="index">
  62. <img src="@/assets/newImages/icon_aqxxp_dxaq.png" v-if="item == 'anquan'" v-for="(item,index) in newData.safeSigns" :key="index">
  63. <img src="@/assets/newImages/icon_aqxxp_gzf.png" v-if="item == 'gongzuofu'" v-for="(item,index) in newData.safeSigns" :key="index">
  64. <img src="@/assets/newImages/icon_aqxxp_gbmc.png" v-if="item == 'menchuang'" v-for="(item,index) in newData.safeSigns" :key="index">
  65. <img src="@/assets/newImages/icon_aqxxp_gbsd.png" v-if="item == 'shuidian'" v-for="(item,index) in newData.safeSigns" :key="index">
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="bottom-max-box">
  71. <div class="all-title-box">
  72. <p></p>
  73. <p>关联预案</p>
  74. </div>
  75. <div class="for-list-box">
  76. <div class="title-box">
  77. <p>预案名称</p>
  78. <p>启动次数</p>
  79. <p>最近启动时间</p>
  80. </div>
  81. <div class="list-box" v-for="(item,index) in newData.riskPlanList" :key="index">
  82. <p>{{item.planName}}</p>
  83. <p>{{item.planCount}}</p>
  84. <p>{{item.lastTime}}</p>
  85. </div>
  86. <img class="null-data-img" src="@/assets/ZDimages/null-data.png" v-if="!newData.riskPlanList[0]">
  87. <p class="null-p" v-if="!newData.riskPlanList[0]" >暂未关联预案信息,请在应急管理-预案管理中进行配置</p>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="right-max-box scrollbar-box">
  92. <div class="all-title-box" style="height:40px;">
  93. <p></p>
  94. <p>传感器监测</p>
  95. <p>{{newData.sensorFunctionStatusList[0]?'数据上报时间:'+newData.sensorFunctionStatusList[0].sendDate:''}}</p>
  96. <p class="reset-button-one" @click="backPage">返回</p>
  97. </div>
  98. <p class="sensor-box" v-for="(item,index) in newData.sensorFunctionStatusList" :key="index">{{item.funcName}}:<span>{{item.formatVal}}</span></p>
  99. <img class="null-data-img" src="@/assets/ZDimages/null-data.png" v-if="!newData.sensorFunctionStatusList[0]">
  100. <p class="null-p" v-if="!newData.sensorFunctionStatusList[0]" >暂无环境监测信息,请在更多操作-物联设备配置中进行添加</p>
  101. <div class="all-title-box" style="height:40px;margin-top:20px;">
  102. <p></p>
  103. <p>物联控制</p>
  104. </div>
  105. <div class="things-box" v-for="(item,index) in newData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'SWITCH'">
  106. <div class="things-for-box">
  107. <p class="left-title">电源控制</p>
  108. <el-switch
  109. v-if="item.state.code == 3||item.state.code == 4"
  110. class="switch"
  111. @click.native="changeIsNeedCaptcha(item)"
  112. v-model="item.state.code"
  113. :active-value="3"
  114. :inactive-value="4"
  115. active-text="开"
  116. inactive-text="关"
  117. disabled>
  118. </el-switch>
  119. <p class="switch-null-p" v-else>{{item.state.name}}</p>
  120. </div>
  121. </div>
  122. <div class="things-box" v-for="(item,index) in newData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'AI_VENTILATION'">
  123. <div class="things-for-box">
  124. <p class="left-title">智能通风</p>
  125. <el-switch
  126. v-if="item.state.code == 3||item.state.code == 4"
  127. class="switch"
  128. @click.native="changeIsNeedCaptcha(item)"
  129. v-model="item.state.code"
  130. :active-value="3"
  131. :inactive-value="4"
  132. active-text="开"
  133. inactive-text="关"
  134. disabled>
  135. </el-switch>
  136. <p class="switch-null-p" v-else>{{item.state.name}}</p>
  137. </div>
  138. </div>
  139. <div class="things-box" v-for="(item,index) in newData.labHardwareVOListTwo" :key="item.id" v-if="item.hardwareTypeEnum.enumName == 'ONE_MACHINE'">
  140. <div class="things-for-box">
  141. <p class="left-title">广播系统</p>
  142. <p class="right-button" @click="handleAdd">播放文字</p>
  143. </div>
  144. </div>
  145. <img class="null-data-img" src="@/assets/ZDimages/null-data.png" v-if="!newData.labHardwareVOListTwo[0]">
  146. <p class="null-p" v-if="!newData.labHardwareVOListTwo[0]" >暂无物联控制信息,请在更多操作-物联设备配置中进行添加</p>
  147. <div class="all-title-box" style="height:40px;margin-top:10px;">
  148. <p></p>
  149. <p>危险源信息</p>
  150. </div>
  151. <div class="source-box">
  152. <span v-for="(item,index) in newData.hazardList" :key="index">{{index==0?item.label:'、'+item.label}}</span>
  153. </div>
  154. <img class="null-data-img" src="@/assets/ZDimages/null-data.png" v-if="!newData.hazardList[0]">
  155. <p class="null-p" v-if="!newData.hazardList[0]" >暂无危险源信息,请在更多操作-关联配置中进行添加</p>
  156. <div class="all-title-box" style="height:40px;margin-top:20px;">
  157. <p></p>
  158. <p>视频监控</p>
  159. </div>
  160. <div class="video-max-box">
  161. <div class="video-min-box" v-for="(item,index) in newData.videoData" :key="item.id">
  162. <video :id="item.divId" ref="videoRef" autoplay controls muted width="240" height="130px"></video>
  163. <p class="el-icon-full-screen position-p" @click="videoFullScreen(index)"></p>
  164. </div>
  165. </div>
  166. <img class="null-data-img" src="@/assets/ZDimages/null-data.png" v-if="!newData.videoData[0]">
  167. <p class="null-p" v-if="!newData.videoData[0]" >暂无视频监控信息,请在更多操作-物联设备配置中进行添加</p>
  168. <div class="all-title-box" style="height:30px;">
  169. <p></p>
  170. <p>检查项信息</p>
  171. </div>
  172. <div class="inspection-box">
  173. <div>
  174. <p>穿戴检查项:</p>
  175. <p>
  176. <span v-for="(item,index) in newData.safeInfo.checkInData">{{index==0?item:'、'+item}}</span>
  177. <span v-if="!newData.safeInfo.checkInData">未设置</span>
  178. </p>
  179. </div>
  180. <div>
  181. <p>穿戴检查可跳过:</p>
  182. <p>{{newData.skipped == '1'?'是':(newData.skipped == '0'?'否':'')}}</p>
  183. </div>
  184. <div v-if="newData.skipped == 1">
  185. <p>穿戴检查识别上限:</p>
  186. <p>{{newData.checkCount?newData.checkCount:'未设置'}}</p>
  187. </div>
  188. <div>
  189. <p>离开检查项:</p>
  190. <p>
  191. <span v-for="(item,index) in newData.safeInfo.checkOutData">{{index==0?item:'、'+item}}</span>
  192. <span v-if="!newData.safeInfo.checkOutData">未设置</span>
  193. </p>
  194. </div>
  195. </div>
  196. </div>
  197. <!--展示实验室二维码-->
  198. <el-dialog title="实验室二维码" :visible.sync="codeType" width="500px" append-to-body>
  199. <vue-qr style="display: block;height:460px;width:460px;cursor:pointer;margin:0 auto;" :text="newData.qrCode" :size="200"></vue-qr>
  200. </el-dialog>
  201. <!--播放文字窗口-->
  202. <el-dialog title="广播系统" :visible.sync="open" width="500px" append-to-body>
  203. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  204. <el-form-item label="播放文字" prop="txt">
  205. <el-input v-model="form.txt" placeholder="请输入播放文字" />
  206. </el-form-item>
  207. <el-form-item label="播报方式" prop="type">
  208. <el-radio-group v-model="form.type">
  209. <el-radio :label="1">文字</el-radio>
  210. <el-radio :label="2">音频</el-radio>
  211. </el-radio-group>
  212. </el-form-item>
  213. </el-form>
  214. <div slot="footer" class="dialog-footer">
  215. <el-button @click="cancel">取 消</el-button>
  216. <el-button type="primary" @click="submitFormOne">确 定</el-button>
  217. </div>
  218. </el-dialog>
  219. </div>
  220. </template>
  221. <script>
  222. import flvjs from 'flv.js'
  223. import { hardWareControl } from "@/api/laboratory/hardware";
  224. import { subjectInfo,mangerVoice } from "@/api/laboratory/subject";
  225. import vueQr from 'vue-qr'
  226. export default {
  227. name: "infoPage",
  228. components: {
  229. vueQr
  230. },
  231. props:{
  232. newData:{},
  233. },
  234. data() {
  235. return {
  236. // newData:{},
  237. //主要危险类别
  238. hazardCategory:[],
  239. //风险防控措施
  240. riskMeasure:[],
  241. //灭火要点
  242. extinguishingKeyPoints:[],
  243. //实验室二维码展示开关
  244. codeType:false,
  245. //播放文字的实验室id
  246. open:false,
  247. form:{},
  248. rules:{
  249. txt:[
  250. {required: true, message: '请输入播放文字', trigger: 'blur'},
  251. { required: true, message: "请输入播放文字", validator: this.spaceJudgment, trigger: "blur" }
  252. ],
  253. type:[
  254. {required: true, message: '请选择播报方式', trigger: 'blur'}
  255. ],
  256. },
  257. videoList:[],
  258. }
  259. },
  260. created() {
  261. //主要危险类别
  262. this.getDicts("sys_hazard_category").then(response => {
  263. this.hazardCategory = response.data;
  264. });
  265. //风险防控措施
  266. this.getDicts("sys_risk_measure").then(response => {
  267. this.riskMeasure = response.data;
  268. });
  269. //灭火要点
  270. this.getDicts("sys_extinguishing_key_points").then(response => {
  271. this.extinguishingKeyPoints = response.data;
  272. });
  273. },
  274. mounted(){
  275. let self = this;
  276. setTimeout(function(){
  277. self.videoFunction();
  278. },500);
  279. },
  280. methods:{
  281. //视频方法
  282. videoFunction(){
  283. let self = this;
  284. self.videoList = [];
  285. for(let i=0;i<self.newData.videoData.length;i++){
  286. let obj = {
  287. player :{},
  288. flvPlayer:{}
  289. };
  290. obj.player = document.getElementById(self.newData.videoData[i].divId);
  291. obj.flvPlayer = flvjs.createPlayer(
  292. {
  293. // isLive: true, //=> 是否为直播流
  294. // hasAudio: false, //=> 是否开启声音
  295. type: self.newData.videoData[i].videoType, //媒体类型 flv 或 mp4
  296. url: self.newData.videoData[i].url //视频流地址
  297. },
  298. {
  299. enableStashBuffer: true,//启用 IO 存储缓冲区。 如果您需要实时流播放(最小延迟),请设置为 false,但如果存在网络抖动,则可能会停止。
  300. stashInitialSize: 128,//IO 存储缓冲区初始大小。 默认值为 384KB。 指示合适的大小可以改善视频加载/搜索时间。
  301. isLive: true,//是否是直播
  302. lazyLoadRecoverDuration: 30,//指示以秒为单位的lazyLoad 恢复时间边界。
  303. autoCleanupSourceBuffer: true,//进行自动清理
  304. autoCleanupMaxBackwardDuration: 3 * 60,//3 * 60 当向后缓冲持续时间超过这个值(以秒为单位)时,对 SourceBuffer 进行自动清理
  305. autoCleanupMinBackwardDuration: 2 * 60,//2 * 60 指示在执行自动清理时为后向缓冲区保留的持续时间(以秒为单位)。
  306. }
  307. );
  308. self.videoList.push(obj);
  309. console.log("i",i)
  310. }
  311. for(let i=0;i<self.videoList.length;i++){
  312. self.videoList[i].flvPlayer.attachMediaElement(self.videoList[i].player);
  313. self.videoList[i].flvPlayer.load(); //加载
  314. self.videoList[i].flvPlayer.play(); //加载
  315. }
  316. },
  317. //视屏全屏方法
  318. videoFullScreen(index){
  319. this.$refs.videoRef[index].webkitRequestFullScreen();
  320. },
  321. //数据中心视频关闭
  322. videoOff(){
  323. let self = this;
  324. if(self.videoList[0]){
  325. for(let i=0;i<self.videoList.length;i++){
  326. self.videoList[i].flvPlayer.pause();
  327. self.videoList[i].flvPlayer.unload();
  328. self.videoList[i].flvPlayer.detachMediaElement();
  329. self.videoList[i].flvPlayer.destroy();
  330. self.videoList[i].flvPlayer = null;
  331. }
  332. self.videoList = [];
  333. }
  334. },
  335. //播放文字
  336. handleAdd() {
  337. this.open = true;
  338. },
  339. // 取消按钮
  340. cancel() {
  341. this.form = {};
  342. this.open = false;
  343. },
  344. /*播放文字*/
  345. submitFormOne(){
  346. this.$refs["form"].validate(valid => {
  347. if (valid) {
  348. let id = this.newData.id;
  349. mangerVoice(this.form,id).then(response => {
  350. this.msgSuccess("播放成功");
  351. this.open = false;
  352. });
  353. }
  354. });
  355. },
  356. //展示实验室二维码
  357. clickCode(){
  358. this.codeType = true;
  359. },
  360. // 开启关闭验证
  361. async changeIsNeedCaptcha (row) {
  362. let self = this;
  363. console.log(row)
  364. if(row.state.code!=3 && row.state.code!=4){
  365. return
  366. }
  367. let text = row.state.code==3?'关闭':(row.state.code==4?'开启':'')
  368. this.$confirm(`是否`+text+`此设备`, "提示", {
  369. confirmButtonText: "确定",
  370. cancelButtonText: "取消",
  371. type: "warning"
  372. }).then(async () => {
  373. self.switchChange(row)
  374. }).catch(() => {
  375. })
  376. },
  377. //开关按钮
  378. switchChange(row){
  379. let switchData = {
  380. id:row.id,
  381. switchVal:row.state.code==3?'close':(row.state.code==4?'open':'')
  382. };
  383. hardWareControl(switchData).then(response => {
  384. console.log(response);
  385. if(response.code==200){
  386. row.state.code = row.state.code==3?4:(row.state.code==4?3:'')
  387. this.msgSuccess("操作成功")
  388. }
  389. });
  390. },
  391. //返回上一页
  392. backPage(){
  393. this.$parent.clickPage(1);
  394. },
  395. },
  396. beforeDestroy() {
  397. //清除定时器
  398. let self = this;
  399. self.videoOff();
  400. console.log("beforeDestroy");
  401. },
  402. }
  403. </script>
  404. <style lang="scss" scoped>
  405. .infoPage{
  406. flex:1;
  407. display: flex;
  408. overflow: hidden;
  409. /*padding:5px 20px 20px 10px!important;*/
  410. *{
  411. margin:0;
  412. }
  413. .null-data-img{
  414. width:137px;
  415. height:137px;
  416. display: block;
  417. margin:10px auto;
  418. }
  419. .all-title-box{
  420. display: flex;
  421. height:18px;
  422. p{
  423. line-height:18px;
  424. }
  425. p:nth-child(1){
  426. width:4px;
  427. height:18px;
  428. margin-right:12px;
  429. background: #0045af;
  430. }
  431. p:nth-child(2){
  432. font-size:18px;
  433. color:#0045af;
  434. margin-right:28px;
  435. font-weight:700;
  436. }
  437. p:nth-child(3){
  438. font-size:14px;
  439. color:#999;
  440. flex:1;
  441. }
  442. p:nth-child(4){
  443. line-height:40px!important;
  444. }
  445. }
  446. .null-p{
  447. line-height:50px;
  448. text-align: center;
  449. font-size:14px;
  450. color:#999;
  451. }
  452. .left-max-box{
  453. font-weight:500;
  454. width:1035px;
  455. display: flex;
  456. flex-direction: column;
  457. .top-max-box{
  458. border-radius:10px!important;
  459. box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1) !important;
  460. padding:20px;
  461. margin:5px 10px 20px 10px;
  462. .left-top-title-box{
  463. margin-top:13px;
  464. height:74px;
  465. display: flex;
  466. border-bottom:1px dashed #999999;
  467. .left-box{
  468. flex:1;
  469. .lv-name-box{
  470. height:34px;
  471. display: flex;
  472. p:nth-child(1){
  473. height:22px;
  474. line-height:20px;
  475. margin:6px 15px 0 0;
  476. font-size:12px;
  477. text-align: center;
  478. padding:0 8px;
  479. border-radius:4px;
  480. }
  481. p:nth-child(2){
  482. font-size:16px;
  483. height:34px;
  484. line-height:34px;
  485. color:#333;
  486. }
  487. }
  488. .type-address-box{
  489. display: flex;
  490. p{
  491. font-size:14px;
  492. height:40px;
  493. line-height:40px;
  494. color:#999;
  495. }
  496. p:nth-child(1){
  497. margin-right:40px;
  498. }
  499. }
  500. }
  501. .right-code-img{
  502. width:60px;
  503. height:60px;
  504. margin:0 10px 0 0;
  505. cursor: pointer;
  506. }
  507. }
  508. .user-max-box{
  509. margin-top:10px;
  510. display: flex;
  511. .left-box{
  512. width:420px;
  513. display: flex;
  514. p{
  515. line-height: 32px;
  516. font-size:14px;
  517. flex:1;
  518. color:#333;
  519. span{
  520. color:#999;
  521. }
  522. }
  523. }
  524. .right-box{
  525. flex:1;
  526. div{
  527. flex:1;
  528. display: flex;
  529. p{
  530. line-height: 32px;
  531. font-size:14px;
  532. flex:1;
  533. color:#333;
  534. span{
  535. color:#999;
  536. }
  537. }
  538. }
  539. }
  540. }
  541. .info-max-box{
  542. margin-top:7px;
  543. display: flex;
  544. .left-box{
  545. width:420px;
  546. .for-text-box{
  547. .info-title{
  548. font-size:14px;
  549. color:#333;
  550. line-height:40px;
  551. font-weight:700;
  552. }
  553. .for-box{
  554. overflow: hidden;
  555. .for-info-p{
  556. line-height:16px;
  557. font-size:14px;
  558. color:#999;
  559. margin:7px 0;
  560. overflow: hidden;
  561. }
  562. }
  563. }
  564. }
  565. .right-box{
  566. flex:1;
  567. .for-text-box{
  568. .info-title{
  569. font-size:14px;
  570. color:#333;
  571. line-height:40px;
  572. font-weight:700;
  573. }
  574. .for-box{
  575. overflow: hidden;
  576. .for-info-p{
  577. line-height:16px;
  578. font-size:14px;
  579. color:#999;
  580. margin:7px 0;
  581. overflow: hidden;
  582. }
  583. }
  584. }
  585. .for-img-box{
  586. .info-title{
  587. font-size:14px;
  588. color:#333;
  589. line-height:40px;
  590. font-weight:700;
  591. }
  592. img{
  593. width:37px;
  594. height:50px;
  595. margin:0 14px 14px 0;
  596. }
  597. }
  598. }
  599. }
  600. }
  601. .bottom-max-box{
  602. border-radius:10px!important;
  603. box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1) !important;
  604. padding:20px;
  605. margin:0 10px 20px 10px;
  606. .for-list-box{
  607. margin-top:22px;
  608. .title-box{
  609. background: #F5F5F5;
  610. height:50px;
  611. line-height:50px;
  612. display: flex;
  613. p{
  614. flex:1;
  615. font-size:16px;
  616. color:#333;
  617. font-weight:700;
  618. }
  619. p:nth-child(1){
  620. margin-left:50px;
  621. }
  622. }
  623. .list-box:nth-child(2){
  624. border:none;
  625. }
  626. .list-box{
  627. border-top:1px solid #E0E0E0;
  628. height:40px;
  629. line-height:40px;
  630. display: flex;
  631. p{
  632. flex:1;
  633. font-size:14px;
  634. color:#999;
  635. }
  636. p:nth-child(1){
  637. margin-left:50px;
  638. }
  639. }
  640. }
  641. }
  642. }
  643. .right-max-box{
  644. font-weight:500;
  645. width:545px;
  646. border-radius:10px!important;
  647. box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1) !important;
  648. margin:5px 20px 20px 10px;
  649. padding:20px;
  650. .sensor-box{
  651. display: inline-block;
  652. font-size:14px;
  653. color:#333;
  654. line-height:34px;
  655. width:220px;
  656. span{
  657. color:#999;
  658. }
  659. }
  660. .things-box{
  661. width:210px;
  662. height:30px;
  663. display: inline-block;
  664. margin-bottom:10px;
  665. .things-for-box{
  666. display: flex;
  667. .left-title{
  668. font-size:14px;
  669. color:#333;
  670. line-height:30px;
  671. margin-right:30px;
  672. }
  673. .switch{
  674. }
  675. .switch-null-p{
  676. font-size:14px;
  677. color:#999;
  678. line-height:30px;
  679. }
  680. .right-button{
  681. cursor: pointer;
  682. line-height:30px;
  683. border-radius:6px;
  684. border:1px solid #0045af;
  685. color:#0045af;
  686. font-size:14px;
  687. text-align: center;
  688. width:100px;
  689. }
  690. }
  691. }
  692. .source-box{
  693. span{
  694. font-size:14px;
  695. line-height:18px;
  696. color:#333;
  697. }
  698. }
  699. .video-max-box{
  700. .video-min-box{
  701. display: inline-block;
  702. overflow: hidden;
  703. width:240px;
  704. margin-bottom:20px;
  705. height:130px;
  706. position: relative;
  707. .position-p{
  708. width:30px;
  709. height:30px;
  710. text-align: center;
  711. line-height:30px;
  712. font-size:18px;
  713. position: absolute;
  714. top:0;
  715. right:0;
  716. color:#fff;
  717. cursor: pointer;
  718. }
  719. }
  720. .video-min-box:nth-child(2n+0){
  721. margin-left:20px;
  722. }
  723. }
  724. .inspection-box{
  725. div{
  726. display: flex;
  727. p:nth-child(1){
  728. line-height:16px;
  729. font-size:14px;
  730. margin:11px 0;
  731. color:#333;
  732. }
  733. p:nth-child(2){
  734. flex:1;
  735. line-height:16px;
  736. font-size:14px;
  737. margin:11px 0;
  738. color:#999;
  739. span{
  740. color:#999;
  741. }
  742. }
  743. }
  744. }
  745. }
  746. }
  747. </style>