infoPageOne.vue 26 KB

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