TVWalls.vue 27 KB

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