TVWall.vue 22 KB

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