TVWalls.vue 24 KB

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