TVWalls.vue 26 KB

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