TVWalls.vue 26 KB

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