Pārlūkot izejas kodu

[FE]:修改视频监控样式

xiayu3 4 gadi atpakaļ
vecāks
revīzija
2233772536

+ 5 - 5
security-protection-platform/src/modules/attendance/components/DeptStaffCascader/index.vue

63
          }
63
          }
64
        })
64
        })
65
65
66
        if (this.source.length > 0) {
67
          const orgId = this.source[0].value
68
          // const depId = this.source[0].children[0].value
69
          this.staff = [orgId]
70
        }
66
        // if (this.source.length > 0) {
67
        //   const orgId = this.source[0].value
68
        //   // const depId = this.source[0].children[0].value
69
        //   this.staff = [orgId]
70
        // }
71
71
72
        this.$emit('inited')
72
        this.$emit('inited')
73
      }, err => {
73
      }, err => {

+ 19 - 15
security-protection-platform/src/modules/attendance/report/index.vue

158
    },
158
    },
159
    // 搜索
159
    // 搜索
160
    handSearchDay () {
160
    handSearchDay () {
161
      this.dailyForm.current = 1
162
      this.getDailyTable()
161
      if (this.dailyForm.workDay && this.dailyForm.orgId) {
162
        this.dailyForm.current = 1
163
        this.getDailyTable()
164
      } else { return this.$Message.warning('请选择时间和部门') }
163
    },
165
    },
164
    handSearchMonth () {
166
    handSearchMonth () {
165
      this.monthlyForm.current = 1
166
      this.getMonthTable()
167
      if (this.monthlyForm.month && this.monthlyForm.orgId) {
168
        this.monthlyForm.current = 1
169
        this.getMonthTable()
170
      } else { return this.$Message.warning('请选择时间和部门') }
167
    },
171
    },
168
    // 分页
172
    // 分页
169
    onChangeDay (val) {
173
    onChangeDay (val) {
176
    },
180
    },
177
    // 重置日报数据
181
    // 重置日报数据
178
    resetDailyData() {
182
    resetDailyData() {
179
      let now = new Date()
180
      this.dailyForm = {
181
        workDay: formatDateTime(now, 'yyyy-MM-dd'),
182
        userid: null,
183
        depId: '',
184
        orgId: '',
185
        current: 1,
186
        pageSize: 10
187
      }
183
      this.$nextTick(() => {
184
        this.dailyForm = {
185
          workDay: '',
186
          userid: null,
187
          depId: '',
188
          orgId: '',
189
          current: 1,
190
          pageSize: 10
191
        }
192
      })
188
    },
193
    },
189
    // 重置月报数据
194
    // 重置月报数据
190
    resetMonthData() {
195
    resetMonthData() {
191
      let now = new Date()
192
      this.monthlyForm = {
196
      this.monthlyForm = {
193
        month: formatDateTime(new Date().setMonth(now.getMonth() - 1), 'yyyy-MM'),
197
        month: '',
194
        userid: null,
198
        userid: null,
195
        depId: '',
199
        depId: '',
196
        orgId: '',
200
        orgId: '',

+ 13 - 3
security-protection-platform/src/modules/videoSurveillance/components/rtmpVideoPlay/index.vue

60
    handlePlayerInited (player) {
60
    handlePlayerInited (player) {
61
      this.$player = player
61
      this.$player = player
62
      window.player = this
62
      window.player = this
63
      var myButton = player.controlBar.addChild('button')
64
      myButton.addClass('vjs-play-control')
65
      myButton.on('click', () => {
63
      let distinguishBtn = player.controlBar.addChild('button')
64
      distinguishBtn.addClass('aidicon')
65
      distinguishBtn.addClass('aidicon-image-outline')
66
      distinguishBtn.setAttribute('title', '识别记录')
67
      distinguishBtn.size = '20'
68
      distinguishBtn.on('click', () => {
69
        this.$emit('goDistinguishRecord')
70
      })
71
      let repalyBtn = player.controlBar.addChild('button')
72
      repalyBtn.addClass('aidicon')
73
      repalyBtn.addClass('aidicon-piechart-outline')
74
      repalyBtn.setAttribute('title', '视频回放')
75
      repalyBtn.on('click', () => {
66
        this.$emit('videoReplay', this.list[0].id)
76
        this.$emit('videoReplay', this.list[0].id)
67
      })
77
      })
68
    },
78
    },

+ 9 - 3
security-protection-platform/src/modules/videoSurveillance/index.vue

16
    </div>
16
    </div>
17
    <div class="page-bottom">
17
    <div class="page-bottom">
18
      <div v-for="(item,index) in videoList" :key="index" :value="item.id" style="width:400px;margin:24px 0px 0 24px;">
18
      <div v-for="(item,index) in videoList" :key="index" :value="item.id" style="width:400px;margin:24px 0px 0 24px;">
19
        <rtmp-video :list="getVideoPlayList(item)" @videoReplay="handleReview"></rtmp-video>
19
        <rtmp-video :list="getVideoPlayList(item)" @goDistinguishRecord="goDistinguishRecord" @videoReplay="handleReview"></rtmp-video>
20
      </div>
20
      </div>
21
    </div>
21
    </div>
22
    <t-pager :page-size="videoPageSize" :current="videoCurrent" :total="videoTotal" :sizer-range="[ 5, 10, 20, 30 ]" class="pager" show-elevator @on-change="onChangeGate"></t-pager>
22
    <t-pager :page-size="videoPageSize" :current="videoCurrent" :total="videoTotal" :sizer-range="[ 5, 10, 20, 30 ]" class="pager" show-elevator @on-change="onChangeGate"></t-pager>
87
    getSceneList () {
87
    getSceneList () {
88
      this.sceneList = []
88
      this.sceneList = []
89
      this.videoList = []
89
      this.videoList = []
90
      console.log(this.organizationList)
91
      this.organizationList.forEach((element, index) => {
90
      this.organizationList.forEach((element, index) => {
92
        if (element.id === this.gateFieldData) {
91
        if (element.id === this.gateFieldData) {
93
          sysapi.getMonitorScene(this.organizationList[index].id).then((resp) => {
92
          sysapi.getMonitorScene(this.organizationList[index].id).then((resp) => {
100
    // 向服务器发送请求获取视频回放数据
99
    // 向服务器发送请求获取视频回放数据
101
    async queryMonitorVideoLog (data) {
100
    async queryMonitorVideoLog (data) {
102
      let res = []
101
      let res = []
103
      // console.log(this.beginDay, this.endDay)
104
      if (data) {
102
      if (data) {
105
        res = await sysapi.queryMonitorVideoLog({ params: { id: this.replayId, ...data } })
103
        res = await sysapi.queryMonitorVideoLog({ params: { id: this.replayId, ...data } })
106
      } else {
104
      } else {
142
    getVideoSurveillanceData (id) {
140
    getVideoSurveillanceData (id) {
143
      this.paramsObj.page = this.videoCurrent
141
      this.paramsObj.page = this.videoCurrent
144
      sysapi.getVideoSurveillanceData({ params: { monitorSceneId: id } }).then(res => {
142
      sysapi.getVideoSurveillanceData({ params: { monitorSceneId: id } }).then(res => {
143
        console.log(res);
145
        this.videoList = res.data.data
144
        this.videoList = res.data.data
146
      })
145
      })
147
    },
146
    },
230
  .btn-outline-secondary {
229
  .btn-outline-secondary {
231
    background: none;
230
    background: none;
232
  }
231
  }
232
  .video-js .vjs-control:focus, .video-js .vjs-control:focus:before, .video-js .vjs-control:hover:before{
233
    color:#0089d4;
234
    text-shadow: none;
235
  }
236
  .video-js .vjs-control{
237
    cursor: pointer;
238
  }
233
}
239
}
234
</style>
240
</style>

+ 6 - 0
security-protection-platform/src/routes.js

40
        path: '',
40
        path: '',
41
        component: () => import(/* webpackChunkName: "videoSurveillance" */ './modules/videoSurveillance'),
41
        component: () => import(/* webpackChunkName: "videoSurveillance" */ './modules/videoSurveillance'),
42
        meta: { title: '视频监控', icon: 'video' }
42
        meta: { title: '视频监控', icon: 'video' }
43
      },
44
      {
45
        path: '/videoSurveillance/distinguishRecord',
46
        component: () => import(/* webpackChunkName: "videoSurveillance" */ './modules/videoSurveillance/distinguishRecord'),
47
        meta: { title: '视频监控', icon: 'video' },
48
        hidden: true
43
      }
49
      }
44
    ]
50
    ]
45
  },
51
  },