TVWall.vue 23 KB

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