TVWall.vue 22 KB

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