infoPage.vue 26 KB

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