Przeglądaj źródła

[FE]无法播放背景图

chenxr3 4 lat temu
rodzic
commit
794f4be9f5

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

23
  },
23
  },
24
  // 进出识别
24
  // 进出识别
25
  queryHomeLastInAndOutRecord (data) {
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
  // queryMonitorSceneTerminalRel () {
29
  // queryMonitorSceneTerminalRel () {

BIN
security-protection-platform/src/assets/images/cannot.jpg


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

1
<template>
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
    </div>
7
    </div>
6
    <div>
8
    <div>
7
      <div class="time"><span style="color: #00d8f3;font-size: 21px;">{{ nowDate | dateFormat }}</span></div>
9
      <div class="time"><span style="color: #00d8f3;font-size: 21px;">{{ nowDate | dateFormat }}</span></div>
87
import titleImgBg from '@/assets/images/indexTitle.png'
89
import titleImgBg from '@/assets/images/indexTitle.png'
88
import polygon from '@/assets/images/polygon.png'
90
import polygon from '@/assets/images/polygon.png'
89
import border from '@/assets/images/border.png'
91
import border from '@/assets/images/border.png'
92
import cannot from '@/assets/images/cannot.jpg'
90
import echarts from 'echarts'
93
import echarts from 'echarts'
91
import dasapi from '@/api/dashboard'
94
import dasapi from '@/api/dashboard'
92
import sysapi from '@/api/system'
95
import sysapi from '@/api/system'
143
      avatar: avatar,
146
      avatar: avatar,
144
      polygon: polygon,
147
      polygon: polygon,
145
      border: border,
148
      border: border,
149
      cannot: cannot,
146
      attendanceData: [],
150
      attendanceData: [],
147
      population: 0,
151
      population: 0,
148
      alarmDataX: [],
152
      alarmDataX: [],
566
    .top-logo {
570
    .top-logo {
567
      position: absolute;
571
      position: absolute;
568
      top: 50%;
572
      top: 50%;
569
      left: 50%;
573
      left: 46%;
570
      transform: translate(-50%, -50%);
574
      transform: translate(-50%, -50%);
571
      height: 50%;
575
      height: 50%;
572
      width: 25%;
576
      width: 5%;
573
      vertical-align: middle;
577
      vertical-align: middle;
574
    }
578
    }
575
  }
579
  }
787
.vjs-tech {
791
.vjs-tech {
788
  pointer-events: none;
792
  pointer-events: none;
789
}
793
}
794
.checkedIndex{
795
  border: 1px solid #009bf3;
796
}
790
</style>
797
</style>

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

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