TVWalls.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <div>
  3. <el-dialog title="电视墙" :visible.sync="TVWallVisible" v-if="TVWallVisible" customClass="TVWallCustomWidth"
  4. @close="cancelEventLocationShow()">
  5. <!--<div @click="findCameraByEventCoordinate()">视频联动</div>-->
  6. <!--<div class="forthis" style="width: 22%; position: absolute;left: 0;z-index: 9999999999999;">-->
  7. <!--<div class="i-list-con" style="height: 46vh; overflow-y: scroll;">-->
  8. <!--<span v-for="(item,index) in cameraList" :key="index">-->
  9. <!--<div class="d-l-con" @click="playhk(item.channelCode)">-->
  10. <!--<div class="d-l-l-text">-->
  11. <!--<i class="i-small"></i>-->
  12. <!--<h4>{{ item.cameraName }}</h4>-->
  13. <!--</div>-->
  14. <!--</div>-->
  15. <!--</span>-->
  16. <!--</div>-->
  17. <!--</div>-->
  18. <!--<div style="width:70%;height:400px;position:absolute;">-->
  19. <!--&lt;!&ndash;视频窗口展示-&#45;&#45;大华&ndash;&gt;-->
  20. <!--<div id="dom1" class="dom1"></div>-->
  21. <!--&lt;!&ndash;视频窗口展示-&#45;&#45;海康&ndash;&gt;-->
  22. <!--<div id="playWnd" class="playWnd" style="left: 0px; top: 0px;"></div>-->
  23. <!--</div>-->
  24. <div id="dom1" class="dom1"></div>
  25. </el-dialog>
  26. </div>
  27. </template>
  28. <script>
  29. /** ----------------------------------摄像头预览开始------------------------------------- */
  30. import {getDahuaVideoServer, getTVWallList} from '@/api/dahua/dahua'
  31. import {tvCameraList} from '@/api/haikang/haikang'
  32. import {findCameraByEventCoordinate, rotation} from '@/api/monitor'
  33. import DHWs from '@/dahua/lib/DHWs'
  34. /** ----------------------------------摄像头预览结束------------------------------------- */
  35. export default {
  36. dicts: ['event_source'],
  37. components: {},
  38. data() {
  39. return {
  40. tvListJson: [
  41. {
  42. 'switchTab': '1',
  43. 'treeLabels': [
  44. {
  45. 'labelCode': '123456',
  46. 'labelName': '视频场景',
  47. 'parentLabelCode': null
  48. },
  49. {
  50. 'labelCode': '5a81d1bd499b4940a21fc63ca51f4dfa',
  51. 'labelName': '标签2',
  52. 'parentLabelCode': 123456
  53. },
  54. {
  55. 'labelCode': 'd941adbbd3e64dac92cc448dec5293cd',
  56. 'labelName': '标签1',
  57. 'parentLabelCode': 123456
  58. }
  59. ],
  60. 'labelChannels': [{
  61. 'channelDates': [{
  62. 'channelCode': '6044981090191552',
  63. 'channelName': '复兴大桥中段-交通事故',
  64. 'channelSn': null,
  65. 'cameraType': 0,
  66. 'online': 1
  67. },
  68. {
  69. 'channelCode': 'ZgVzqsjwA1DTF561VGHK5E',
  70. 'channelName': '北京7青羊东二路77号2通道1',
  71. 'channelSn': null,
  72. 'cameraType': 1,
  73. 'online': 1
  74. }
  75. ],
  76. 'labelCode': 'd941adbbd3e64dac92cc448dec5293cd'
  77. },
  78. {
  79. 'channelDates': [{
  80. 'channelCode': 'ZgVzqsjwA1DTF561VGHKK7',
  81. 'channelName': '北京7青羊东二路77号2通道2',
  82. 'channelSn': null,
  83. 'cameraType': 2,
  84. 'online': 0
  85. }],
  86. 'labelCode': '5a81d1bd499b4940a21fc63ca51f4dfa'
  87. }
  88. ]
  89. },
  90. {
  91. 'switchTab': '2',
  92. 'labelChannels': [{
  93. 'channelDates': [{
  94. 'channelCode': 'ZgVzqsjwA1DTF561VGHK5E',
  95. 'channelName': '北京7青羊东二路77号2通道1',
  96. 'channelSn': null,
  97. 'cameraType': 1,
  98. 'online': 1
  99. },
  100. {
  101. 'channelCode': 'ZgVzqsjwA1DTF561VGHKK7',
  102. 'channelName': '北京7青羊东二路77号2通道2',
  103. 'channelSn': null,
  104. 'cameraType': 2,
  105. 'online': 0
  106. }
  107. ]
  108. }]
  109. }
  110. ],
  111. TVWallVisible: false,
  112. activeName: 'tv',
  113. channelId: ['ZgVzqsjwA1DTF561VHG69F'],
  114. /** ----------------------------------摄像头预览开始------------------------------------- */
  115. showModal: true,
  116. activePanel: 'key1',
  117. isLogin: false,
  118. loginType: '1',
  119. token: '',
  120. ctrlType: 'playerWin',
  121. https: 1,
  122. httpsList: [
  123. {
  124. value: 0,
  125. label: 0
  126. },
  127. {
  128. value: 1,
  129. label: 1
  130. }
  131. ],
  132. ctrlTypeList: [{
  133. value: 'playerWin',
  134. label: '播放控件'
  135. }, {
  136. value: 'realMonitorUI',
  137. label: '带设备树实时预览控件'
  138. }, {
  139. value: 'playbackUI',
  140. label: '带设备树视频回放控件'
  141. }, {
  142. value: 'TVWallUI',
  143. label: '视频上墙'
  144. }],
  145. ctrlList: [
  146. {
  147. value: 'ctrl1',
  148. label: '控件1'
  149. },
  150. {
  151. value: 'ctrl2',
  152. label: '控件2'
  153. },
  154. {
  155. value: 'ctrl3',
  156. label: '控件3'
  157. }
  158. ],
  159. splitList: [
  160. {
  161. value: 1,
  162. label: '1 * 1'
  163. },
  164. {
  165. value: 4,
  166. label: '2 * 2'
  167. },
  168. {
  169. value: 9,
  170. label: '3 * 3'
  171. }
  172. ],
  173. displayModeList: [
  174. {
  175. value: 1,
  176. label: '播放器预览模式'
  177. },
  178. {
  179. value: 2,
  180. label: '播放器回放模式'
  181. }
  182. ],
  183. mixedVideoDisplayModeList: [
  184. {
  185. value: 1,
  186. label: '播放实时视频'
  187. },
  188. {
  189. value: 2,
  190. label: '播放回放视频'
  191. }
  192. ],
  193. ctrl: 'ctrl1',
  194. splitNum: 1,
  195. displayMode: 1,
  196. displayTimeRange: [],
  197. modalDisplayTimeRange: [],
  198. mixedVideoTime: null,
  199. recordPath: 'C:\\DSS LightWeight\\DSS LightWeight Client\\Record\\',
  200. downloadName: '',
  201. downTimeRange: [],
  202. downloadFormat: 0,
  203. downloadFormatList: [{
  204. value: 0,
  205. label: 'dav'
  206. },
  207. {
  208. value: 1,
  209. label: 'avi'
  210. }, {
  211. value: 2,
  212. label: 'mp4'
  213. }],
  214. downloadSource: 3,
  215. downloadSourceList: [
  216. {
  217. value: 3,
  218. label: '中心录像'
  219. }, {
  220. value: 2,
  221. label: '设备录像'
  222. }],
  223. showDownloadStreamType: false,
  224. downloadStreamType: 1,
  225. downloadStreamTypeList: [{
  226. value: 1,
  227. label: '主码流'
  228. },
  229. {
  230. value: 2,
  231. label: '辅码流'
  232. },
  233. {
  234. value: 3,
  235. label: '三码流'
  236. }],
  237. downloadIsShow: true,
  238. downloadIsShowList: [{
  239. value: true,
  240. label: '是'
  241. },
  242. {
  243. value: false,
  244. label: '否'
  245. }],
  246. crtPosX: 0,
  247. crtPosY: 0,
  248. crtWidth: 1148,
  249. crtHeight: 650,
  250. domId: 'dom1',
  251. mixedVideoDisplayMode: 2,
  252. isShowTipe: true,
  253. autoList: [],
  254. stringList: [],
  255. data: null,
  256. /** ----------------------------------摄像头预览结束------------------------------------- */
  257. cameraList: [],
  258. initCount: 0,
  259. pubKey: '',
  260. oWebControl: null
  261. }
  262. },
  263. created() {
  264. const DHWsInstance = DHWs.getInstance()
  265. this.ws = DHWsInstance
  266. },
  267. methods: {
  268. cancelEventLocationShow() {
  269. // this.activeName = 'tv'
  270. this.TVWallVisible = false
  271. this.destroy()
  272. if (this.oWebControl != null) {
  273. this.oWebControl.JS_HideWnd() // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题
  274. this.oWebControl.JS_Disconnect().then(function () { // 断开与插件服务连接成功
  275. },
  276. function () { // 断开与插件服务连接失败
  277. })
  278. }
  279. },
  280. showTVWall(data, val) {
  281. this.tvListJson = data
  282. this.data = val
  283. this.autoList = []
  284. this.stringList = []
  285. let length = data[0].treeLabels.length >= 4 ? 5 : data[0].treeLabels.length
  286. for (let i = 1; i < length; i++) {
  287. this.autoList.push({"channelId": data[0].treeLabels[i].labelCode})
  288. this.stringList.push(data[0].treeLabels[i].labelCode)
  289. }
  290. console.log("this.autoList",this.autoList);
  291. console.log("this.stringList",this.stringList);
  292. // let that=this;
  293. /** ----------------------------------大华摄像头预览开始------------------------------------- */
  294. this.ws.addEventListener('connectStateChange', data => {
  295. if (data) {
  296. console.log('连接成功')
  297. } else {
  298. console.log('连接失败,下载客户端')
  299. this.alertReinstall()
  300. this.isShowTipe && this.$modal.confirm({
  301. title: '下载客户端',
  302. content: '检测到您未安装部分插件,将影响部分功能使用,请下载后使用?',
  303. onOk: () => {
  304. //这里写下载方法
  305. this.isShowTipe = false
  306. },
  307. onCancel: () => {
  308. this.isShowTipe = false
  309. }
  310. });
  311. }
  312. })
  313. this.preview()
  314. /** ----------------------------------大华摄像头预览结束------------------------------------- */
  315. /** ----------------------------------海康摄像头预览开始------------------------------------- */
  316. // tvCameraList().then(response => {
  317. // this.cameraList=response.data
  318. // })
  319. // that.initPlugin()
  320. // setTimeout(function() {
  321. // that.playhk();
  322. // }, 5000)
  323. // /** ----------------------------------海康摄像头预览结束------------------------------------- */
  324. this.TVWallVisible = true
  325. },
  326. /** ----------------------------------大华摄像头预览开始------------------------------------- */
  327. alertLogin: function () {
  328. this.$modal.msg('登录中....')
  329. },
  330. alertLoginSuccess: function () {
  331. this.$modal.msgSuccess('登录成功!')
  332. },
  333. alertLoginFailed: function () {
  334. this.$modal.msgError('登陆失败!')
  335. },
  336. alertReinstall: function () {
  337. this.$modal.msgWarning('请重新安装客户端')
  338. },
  339. /** 预览按钮操作 */
  340. preview() {
  341. getDahuaVideoServer().then(newResponse => {
  342. this.ws.detectConnectQt().then(res => {
  343. if (res) { // 连接客户端成功
  344. this.alertLogin()
  345. this.ws.login({
  346. loginIp: newResponse.loginIp,
  347. loginPort: newResponse.loginPort,
  348. userName: newResponse.userName,
  349. userPwd: newResponse.userPwd,
  350. // loginIp: '192.168.100.100',
  351. // loginPort: 8314,
  352. // userName: 'system',
  353. // userPwd: 'Admin@123',
  354. token: '',
  355. https: 1
  356. })
  357. this.ws.on('loginState', (res) => {
  358. this.isLogin = res
  359. console.log('---res-----', res)
  360. if (res) {
  361. this.alertLoginSuccess()
  362. this.activePanel = 'key2'
  363. this.create(this.tvListJson)
  364. } else {
  365. this.alertLoginFailed()
  366. }
  367. })
  368. } else { // 连接客户端失败
  369. this.alertReinstall()
  370. }
  371. })
  372. })
  373. },
  374. playRealMonitorVideo() { // 自定义设备树自动播放指定通道编码视频
  375. const config = this.ws.config
  376. const {loginIp, userCode} = config
  377. this.ws.postMessage('playRealMonitorVideo', {
  378. loginIp,
  379. userCode,
  380. params: {
  381. ctrlCode: "ctrl1",
  382. array: this.autoList
  383. }
  384. })
  385. },
  386. create(tvListJson) { // 调用创建控件接口
  387. let _this = this
  388. const params = [
  389. {
  390. 'ctrlType': 'realMonitorUI',
  391. 'ctrlCode': 'ctrl1',
  392. 'ctrlProperty': {
  393. 'displayMode': 1,
  394. 'splitNum': 1,
  395. 'channelList': [
  396. {
  397. 'channelId': ''
  398. }
  399. ]
  400. },
  401. 'visible': true,
  402. 'domId': 'dom1'
  403. }
  404. ]
  405. this.setPos()
  406. this.customizeTree(tvListJson);
  407. _this.ws.createCtrl(params);
  408. _this.playRealMonitorVideo();
  409. if (_this.data != undefined && _this.data != null) {
  410. setTimeout( _this.rotation(_this.data.longitude, _this.data.latitude, _this.stringList),5000)
  411. }
  412. },
  413. rotation(lng,lat,list){
  414. rotation(lng,lat,list);
  415. },
  416. setPos() {
  417. let target = document.getElementById(this.domId)
  418. console.log(target, 'target')
  419. target.style.right = `${this.crtPosX}px`
  420. target.style.top = `${this.crtPosY}px`
  421. target.style.width = `${this.crtWidth}px`
  422. target.style.height = `${this.crtHeight}px`
  423. if (document.createEvent) {
  424. var event = document.createEvent('HTMLEvents')
  425. event.initEvent('resize', true, true)
  426. window.dispatchEvent(event)
  427. } else if (document.createEventObject) {
  428. window.fireEvent('onresize')
  429. }
  430. },
  431. destroy() { // 调用销毁控件接口
  432. if (!this.isLogin) {
  433. this.$modal.msgWarning('正在登陆客户端,请稍等......')
  434. return false
  435. }
  436. const ctrls = this.ws.ctrls.map(i => {
  437. if (i.ctrlCode === this.ctrl) {
  438. return i.ctrlCode
  439. }
  440. })
  441. this.ws.destroyCtrl(ctrls)
  442. },
  443. customizeTree(tvListJson) { // 调用控件接口树
  444. const config = this.ws.config
  445. const {loginIp, userCode} = config
  446. this.ws.postMessage('customizeTree', {
  447. loginIp,
  448. userCode,
  449. params: {
  450. array: tvListJson
  451. }
  452. })
  453. },
  454. /** ----------------------------------大华摄像头预览结束------------------------------------- */
  455. /** ----------------------------------海康摄像头预览开始------------------------------------- */
  456. // 创建播放实例
  457. initPlugin() {
  458. let that = this
  459. that.oWebControl = new WebControl({
  460. szPluginContainer: 'playWnd', // 指定容器id
  461. iServicePortStart: 15900, // 指定起止端口号,建议使用该值
  462. iServicePortEnd: 15909,
  463. szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // 用于IE10使用ActiveX的clsid
  464. cbConnectSuccess: function () { // 创建WebControl实例成功
  465. that.oWebControl.JS_StartService('window', { // WebControl实例创建成功后需要启动服务
  466. dllPath: './VideoPluginConnect.dll' // 值"./VideoPluginConnect.dll"写死
  467. }).then(function () { // 启动插件服务成功
  468. that.oWebControl.JS_SetWindowControlCallback({ // 设置消息回调
  469. cbIntegrationCallBack: cbIntegrationCallBack
  470. })
  471. that.oWebControl.JS_CreateWnd('playWnd', 850, 615).then(function () { //JS_CreateWnd创建视频播放窗口,宽高可设定
  472. that.init() // 创建播放实例成功后初始化
  473. })
  474. }, function () { // 启动插件服务失败
  475. })
  476. },
  477. cbConnectError: function () { // 创建WebControl实例失败
  478. that.oWebControl = null
  479. $('#playWnd').html('插件未启动,正在尝试启动,请稍候...<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
  480. WebControl.JS_WakeUp('VideoWebPlugin://') // 程序未启动时执行error函数,采用wakeup来启动程序
  481. initCount++
  482. if (initCount < 3) {
  483. setTimeout(function () {
  484. that.initPlugin()
  485. }, 3000)
  486. } else {
  487. $('#playWnd').html('插件启动失败,请检查插件是否安装!<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
  488. }
  489. },
  490. cbConnectClose: function (bNormalClose) {
  491. // 异常断开:bNormalClose = false
  492. // JS_Disconnect正常断开:bNormalClose = true
  493. console.log('cbConnectClose')
  494. that.oWebControl = null
  495. }
  496. })
  497. },
  498. //初始化
  499. init() {
  500. let that = this
  501. this.getPubKey(function () {
  502. ////////////////////////////////// 请自行修改以下变量值 ////////////////////////////////////
  503. var appkey = '24699060' //综合安防管理平台提供的appkey,必填
  504. var secret = that.setEncrypt('tt1pMbsrlwGZUWucdAPw') //综合安防管理平台提供的secret,必填
  505. var ip = '36.49.108.22' //综合安防管理平台IP地址,必填
  506. var playMode = 0 //初始播放模式:0-预览,1-回放
  507. var port = 1443 //综合安防管理平台端口,若启用HTTPS协议,默认443
  508. var snapDir = 'D:\\SnapDir' //抓图存储路径
  509. var videoDir = 'D:\\VideoDir' //紧急录像或录像剪辑存储路径
  510. var layout = '3x3' //playMode指定模式的布局
  511. var enableHTTPS = 1 //是否启用HTTPS协议与综合安防管理平台交互,这里总是填1
  512. var encryptedFields = 'secret' //加密字段,默认加密领域为secret
  513. var showToolbar = 1 //是否显示工具栏,0-不显示,非0-显示
  514. var showSmart = 1 //是否显示智能信息(如配置移动侦测后画面上的线框),0-不显示,非0-显示
  515. var buttonIDs = '0,16,256,257,258,259,260,512,513,514,515,516,517,768,769' //自定义工具条按钮
  516. ////////////////////////////////// 请自行修改以上变量值 ////////////////////////////////////
  517. that.oWebControl.JS_RequestInterface({
  518. funcName: 'init',
  519. argument: JSON.stringify({
  520. appkey: appkey, //API网关提供的appkey
  521. secret: secret, //API网关提供的secret
  522. ip: ip, //API网关IP地址
  523. playMode: playMode, //播放模式(决定显示预览还是回放界面)
  524. port: port, //端口
  525. snapDir: snapDir, //抓图存储路径
  526. videoDir: videoDir, //紧急录像或录像剪辑存储路径
  527. layout: layout, //布局
  528. enableHTTPS: enableHTTPS, //是否启用HTTPS协议
  529. encryptedFields: encryptedFields, //加密字段
  530. showToolbar: showToolbar, //是否显示工具栏
  531. showSmart: showSmart, //是否显示智能信息
  532. buttonIDs: buttonIDs //自定义工具条按钮
  533. })
  534. }).then(function (oData) {
  535. that.oWebControl.JS_Resize(850, 615) // 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
  536. })
  537. })
  538. },
  539. //获取公钥
  540. getPubKey(callback) {
  541. let that = this
  542. that.oWebControl.JS_RequestInterface({
  543. funcName: 'getRSAPubKey',
  544. argument: JSON.stringify({
  545. keyLength: 1024
  546. })
  547. }).then(function (oData) {
  548. console.log(oData)
  549. if (oData.responseMsg.data) {
  550. that.pubKey = oData.responseMsg.data
  551. callback()
  552. }
  553. 125
  554. })
  555. },
  556. //RSA加密
  557. setEncrypt(value) {
  558. var encrypt = new JSEncrypt()
  559. encrypt.setPublicKey(this.pubKey)
  560. return encrypt.encrypt(value)
  561. },
  562. //播放海康摄像头
  563. playhk(channelCode) {
  564. var cameraIndexCode = channelCode //获取输入的监控点编号值,必填
  565. var streamMode = 0 //主子码流标识:0-主码流,1-子码流
  566. var transMode = 1 //传输协议:0-UDP,1-TCP
  567. var gpuMode = 0 //是否启用GPU硬解,0-不启用,1-启用
  568. var wndId = -1 //播放窗口序号(在2x2以上布局下可指定播放窗口)
  569. cameraIndexCode = cameraIndexCode.replace(/(^\s*)/g, '')
  570. cameraIndexCode = cameraIndexCode.replace(/(\s*$)/g, '')
  571. this.oWebControl.JS_RequestInterface({
  572. funcName: 'startPreview',
  573. argument: JSON.stringify({
  574. cameraIndexCode: cameraIndexCode, //监控点编号
  575. streamMode: streamMode, //主子码流标识
  576. transMode: transMode, //传输协议
  577. gpuMode: gpuMode, //是否开启GPU硬解
  578. wndId: wndId //可指定播放窗口
  579. })
  580. })
  581. }
  582. /** ----------------------------------海康摄像头预览结束------------------------------------- */
  583. }
  584. }
  585. // 推送消息
  586. function cbIntegrationCallBack(oData) {
  587. console.log(JSON.stringify(oData.responseMsg))
  588. }
  589. </script>
  590. <style rel="stylesheet/scss" lang="scss" scoped>
  591. @import '@/assets/styles/base.scss';
  592. .event-info-con {
  593. width: 100%;
  594. display: flex;
  595. .e-left {
  596. width: 32%;
  597. }
  598. .e-center {
  599. width: 30%;
  600. margin-left: 1%;
  601. .img-company {
  602. width: 100%;
  603. height: 18.3vh;
  604. img {
  605. }
  606. }
  607. }
  608. .e-right {
  609. margin-left: 1%;
  610. width: 45%;
  611. }
  612. .e-location-left {
  613. width: 28%;
  614. margin-top: 1rem;
  615. }
  616. .e-location-right {
  617. width: 71%;
  618. margin-top: 1.3rem;
  619. margin-left: 1rem;
  620. }
  621. }
  622. .el-dialog:not(.is-fullscreen) {
  623. margin-top: 5.5vh !important;
  624. }
  625. .bottom-menu-normal {
  626. max-width: 90%;
  627. padding: 0 3rem;
  628. position: absolute;
  629. left: 50%;
  630. transform: translateX(-50%);
  631. bottom: 0;
  632. z-index: 100000;
  633. border-radius: 5px;
  634. display: flex;
  635. justify-content: center;
  636. align-items: center;
  637. background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  638. background-size: cover;
  639. overflow: hidden;
  640. .btm-m-con {
  641. position: relative;
  642. color: $inBlue;
  643. font-size: .5rem;
  644. padding: 1rem 1.5rem;
  645. display: flex;
  646. align-items: center;
  647. justify-content: center;
  648. -webkit-transform: translateY(0);
  649. transform: translateY(0);
  650. transition: all 0.2s ease-in-out;
  651. cursor: pointer;
  652. white-space: nowrap;
  653. i {
  654. font-size: 1rem;
  655. color: $inBlue;
  656. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  657. margin-right: 0.2rem;
  658. }
  659. }
  660. .btm-m-con:hover {
  661. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  662. filter: brightness(2.3);
  663. -webkit-transform: translateX(0.2rem);
  664. transform: translateX(0.2rem);
  665. transition: all 0.2s ease-in-out;
  666. i {
  667. color: $inBlueHover;
  668. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  669. }
  670. }
  671. .m-l-none {
  672. .el-input__inner {
  673. margin-left: 0 !important;
  674. }
  675. }
  676. }
  677. /*海康*/
  678. html, body {
  679. padding: 0;
  680. margin: 0;
  681. }
  682. .playWnd {
  683. margin: -13px 0 0 255px;
  684. width: 850px; /*播放容器的宽和高设定*/
  685. height: 615px;
  686. border: 1px solid red;
  687. }
  688. .operate {
  689. margin-top: 24px;
  690. }
  691. .operate::after {
  692. content: '';
  693. display: block;
  694. clear: both;
  695. }
  696. .module {
  697. float: left;
  698. width: 340px;
  699. /*min-height: 320px;*/
  700. margin-left: 16px;
  701. padding: 16px 8px;
  702. box-sizing: border-box;
  703. border: 1px solid #e5e5e5;
  704. }
  705. .module .item {
  706. margin-bottom: 4px;
  707. }
  708. .module input[type="text"] {
  709. box-sizing: border-box;
  710. display: inline-block;
  711. vertical-align: middle;
  712. margin-left: 0;
  713. width: 150px;
  714. min-height: 20px;
  715. }
  716. .module .btn {
  717. min-width: 80px;
  718. min-height: 24px;
  719. margin-top: 100px;
  720. margin-left: 80px;
  721. }
  722. </style>