瀏覽代碼

[FE]无法播放背景图

chenxr3 4 年之前
父節點
當前提交
794f4be9f5

+ 1 - 1
security-protection-platform/src/api/dashboard/index.js

@ -23,7 +23,7 @@ const api = {
23 23
  },
24 24
  // 进出识别
25 25
  queryHomeLastInAndOutRecord (data) {
26
    return $default.get('/sp/inAndOutRecord/queryHomeLastInAndOutRecord?monitorSceneId=3', data)
26
    return $default.get('/sp/homePage/queryHomeLastInAndOutRecord?monitorSceneId=3', data)
27 27
  }
28 28
  // 直播流
29 29
  // queryMonitorSceneTerminalRel () {

二進制
security-protection-platform/src/assets/images/cannot.jpg


+ 12 - 5
security-protection-platform/src/modules/dashboard/index.vue

@ -1,7 +1,9 @@
1 1
<template>
2
  <div class="index" style="overflow:hidden">
3
    <div :style="`background-image: url(${imgBg})`" class="top">
4
      <img src="@/assets/images/brand.png" class="top-logo">
2
  <div class="index" style="overflow:hidden;">
3
    <div :style="`background-image: url(${imgBg})`" class="top" >
4
      <img src="@/assets/images/AsiainfoLogo.png" class="top-logo">
5
      <div style="position: absolute;top:50%;left:54%;transform: translate(-50%,-50%);vertical-align: middle; color: white; font-size: 14px">
6
        <b> | AISI安防一体化平台</b></div>
5 7
    </div>
6 8
    <div>
7 9
      <div class="time"><span style="color: #00d8f3;font-size: 21px;">{{ nowDate | dateFormat }}</span></div>
@ -87,6 +89,7 @@ import avatar from '@/assets/images/avatar.png'
87 89
import titleImgBg from '@/assets/images/indexTitle.png'
88 90
import polygon from '@/assets/images/polygon.png'
89 91
import border from '@/assets/images/border.png'
92
import cannot from '@/assets/images/cannot.jpg'
90 93
import echarts from 'echarts'
91 94
import dasapi from '@/api/dashboard'
92 95
import sysapi from '@/api/system'
@ -143,6 +146,7 @@ export default {
143 146
      avatar: avatar,
144 147
      polygon: polygon,
145 148
      border: border,
149
      cannot: cannot,
146 150
      attendanceData: [],
147 151
      population: 0,
148 152
      alarmDataX: [],
@ -566,10 +570,10 @@ export default {
566 570
    .top-logo {
567 571
      position: absolute;
568 572
      top: 50%;
569
      left: 50%;
573
      left: 46%;
570 574
      transform: translate(-50%, -50%);
571 575
      height: 50%;
572
      width: 25%;
576
      width: 5%;
573 577
      vertical-align: middle;
574 578
    }
575 579
  }
@ -787,4 +791,7 @@ export default {
787 791
.vjs-tech {
788 792
  pointer-events: none;
789 793
}
794
.checkedIndex{
795
  border: 1px solid #009bf3;
796
}
790 797
</style>

+ 13 - 1
security-protection-platform/src/modules/videoSurveillance/index.vue

@ -25,6 +25,7 @@
25 25
import sysapi from '@/api/videoSurveillance'
26 26
import ReplayDialog from './components/ReplayDialog'
27 27
import formatDateTime from '@/utils/formatDateTime.js'
28
import cannot from '@/assets/images/cannot.jpg'
28 29
import videojs from 'video.js'
29 30
window.videojs = videojs
30 31
@ -63,6 +64,7 @@ export default {
63 64
      videoPlayList: [],
64 65
      showReplayDialog: false,
65 66
      replayList: '',
67
      cannot: cannot,
66 68
      beginDay: formatDateTime(new Date(+new Date() - 10 * 60 * 1000), 'yyyy-MM-dd hh:mm:ss'),
67 69
      endDay: formatDateTime(new Date(), 'yyyy-MM-dd hh:mm:ss')
68 70
      // beginDay: '2020-12-19 20:14:00',
@ -240,7 +242,7 @@ export default {
240 242
            flash: { hls: { withCredentials: false } },
241 243
            html5: { hls: { withCredentials: false } },
242 244
            notSupportedMessage: '此视频暂时无法播放,请检查监控设备是否连通', // 允许覆盖Video.js无法播放媒体源时显示的默认信息。
243
            // poster:'https://avatar.csdnimg.cn/F/F/B/0_weixin_44618916.jpg',
245
            poster: this.cannot,
244 246
            controlBar: {
245 247
              timeDivider: false,
246 248
              durationDisplay: false,
@ -360,5 +362,15 @@ export default {
360 362
  .vjs-tech {
361 363
    pointer-events: none;
362 364
  }
365
  .vjs-error-display {
366
    display: none;
367
  }
368
  .vjs-big-play-button {
369
    display: none;
370
  }
371
  .vjs-poster {
372
    -moz-background-size: 100% 100%;
373
    background-size: 100% 100%;
374
  }
363 375
}
364 376
</style>