infoPage.vue 26 KB

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