浏览代码

[FE]处理videoInfo为空时,详情页面无法点击的问题

liuwenxun 4 年之前
父节点
当前提交
5b51d9d4bd
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      security-protection-platform/src/modules/aialarm/index.vue

+ 7 - 1
security-protection-platform/src/modules/aialarm/index.vue

@ -301,10 +301,16 @@ export default {
301 301
      // 去除模态框中的单选项
302 302
      let res = await aialarmapi.getAlarmDetail({ params: { 'workTaskId': scope.row.workTaskId } })
303 303
      if (res.status === 200) {
304
        console.log(res.data.data)
304 305
        this.alarmDetailData = res.data.data.alarmInfo
305 306
        this.pictureDetailData = res.data.data.pictureInfo
306 307
        this.videoDetailData = res.data.data.videoInfo
307
        this.playerOptions.sources[0].src = this.videoDetailData.videoFileUrl
308

309
        if (this.videoDetailData) {
310
          console.log(2222222222222)
311
          this.playerOptions.sources[0].src = this.videoDetailData.videoFileUrl
312
        }
313

308 314
        // console.log(this.playerOptions.sources[0].src)
309 315
      } else { this.$Message.danger('处理失败') }
310 316
      this.status = ''