209 Commits 61868caf3c ... 5a85c7712a

Author SHA1 Message Date
  xiayu3 5a85c7712a Merge remote-tracking branch 'origin/dev-security' into dev-security 4 years ago
  xiayu3 26f78ba0b9 [FE]:视频监控界面流媒体完成 4 years ago
  xiayu3 01bf6c60e0 [FE]:合并冲突 4 years ago
  xiayu3 6ed3c853d8 [FE]:修改视频监控页面逻辑以及界面 4 years ago
  xiayu3 b6f500b56d Merge remote-tracking branch 'origin/dev-security' into dev-security 4 years ago
  xiayu3 0011b3d9f8 feat:ai任务接口调整 4 years ago
  liuchang e0b96780f3 [FE]更新和后端联调改动 4 years ago
  liuchang b01af74802 [FE]更新服务接口文件 4 years ago
  liuchang 38857426c4 [FE]提交监控终端api更新 4 years ago
  chenlp5 91638384f1 feat: DraggableGrid 4 years ago
  luoxu5 b84df77a3a feat:修改新增假勤数据回显问题,设备管理接口联调 4 years ago
  xiayu3 a1a85805a0 Merge branch 'dev-security' of http://10.1.235.20:3000/asiainfo/ebc into dev-security 4 years ago
  xiayu3 e732ae3768 feat:更新ai任务界面&视频监控界面 4 years ago
  liuchang 095c160e93 修复文件格式,修复拖拽异常问题 4 years ago
  liuwenxun 729f257dae [FE]增加了Ai报警和进出口记录界面 4 years ago
  luoxu5 4803da2fe4 feat:修改设备管理页面 4 years ago
  liuchang 9196fa66e5 增添测试提示 4 years ago
  liuchang bfef089fbd 更新视频配置 4 years ago
  xiayu3 b4fce4e26f feat:修改视频监控数据接口 4 years ago
  luoxu5 e1e6b4e721 feat:修改设备管理页面 4 years ago
  xiayu3 774138e475 feat:修改识别记录界面 4 years ago
  xiayu3 d3b072645a feat:添加数据接口 4 years ago
  chenlp5 cc99a6b298 Merge remote-tracking branch 'origin/storedev' into dev-security 4 years ago
  chenlp5 41b0e3ffa1 [FE]考勤及安防前端部分 4 years ago
  wangdong6 855dee76a3 Merge remote-tracking branch 'origin/master' 4 years ago
  wangdong6 ce6caf3e9e 新增安防场景与设备关联关系服务 4 years ago
  konghl 3ace2b8fb2 新增minio配置 4 years ago
  konghl 95a5af6883 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl b235b8cc7c 增加时间工具方法 4 years ago
  konghl 0f893e9871 轨迹回放时间轴显示船舶 4 years ago
  konghl 5b25048c26 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl 569b70605d 修改单人轨迹时间抽 4 years ago
  konghl f3b7a571da 重构人员定位轨迹回放 4 years ago
  chenxr3 c5de3eedce 月考勤数据查询接口修改bug 4 years ago
  konghl d1691caa94 工单申请修改用户和部门 4 years ago
  wangchao 1690e0e21b 修改考勤查询日报bug 4 years ago
  wangdong6 0584159bd1 Merge remote-tracking branch 'origin/master' 4 years ago
  wangdong6 f02a5c9889 修改考勤规则查询接口 4 years ago
  wangdong6 013e377cef 修改考勤规则查询接口 4 years ago
  konghl 2ac7393605 重构人员轨迹查询 4 years ago
  konghl 190e8a2ec0 新增工单申请及审批接口 4 years ago
  wangdong6 a0a75ce1c6 修改考勤规则保存接口 4 years ago
  wangchao 208cc9c6ed Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao eb0f593fc9 查询报表修改参数 4 years ago
  wangchao 78caba4d27 考勤详情修改 4 years ago
  wangchao 69f40fa73d Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 6ff5fe626a 考勤报告接收前台参数方式修改 4 years ago
  wangdong6 5151d2fea9 Merge remote-tracking branch 'origin/master' 4 years ago
  wangdong6 9a5dcf3200 封装考勤规则管理接口 4 years ago
  zhaolx5 84e32ed3ca 解决打包失败的问题 4 years ago
  zhaolx5 ac019a0444 Merge remote-tracking branch 'origin/master' 4 years ago
  zhaolx5 d80c144412 变更ipu-cache的版本号 4 years ago
  konghl 5c299da82a 问题修改 4 years ago
  chenxr3 c65072f9be 定位提交 4 years ago
  konghl 9d8fd7b88a 增加设备和围栏的判断字段 4 years ago
  wangchao 9773787bd2 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 0c3414ba5f 配置文件增加注释 4 years ago
  wangchao 62a630e635 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 59071e3124 增加空格 4 years ago
  konghl 4b9cfc964f 新增mock工程 4 years ago
  konghl 8ff2333bdb 修改配置文件,用于上传服务器 4 years ago
  konghl 35e8568374 修改项目名称,用于上传服务器 4 years ago
  konghl 296cdba193 重构后台系统,仅用于上传服务器 4 years ago
  konghl 0122efbabc 重构后台系统,仅用于上传服务器 4 years ago
  konghl 9a39799cc0 部署服务器,修改配置文件 4 years ago
  konghl ddf35fd300 暂时不启用非实体对象的判断 4 years ago
  chenxr3 7939fc8ace 首页修改提交 4 years ago
  konghl db678770b9 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl bebb2b89fe 人员定位问题修改 4 years ago
  konghl 04ada0e6f8 实时救援问题修改 4 years ago
  wangkang3 33bb67ddb7 提交 4 years ago
  chenxr3 b15b5e27ad 首页修改提交 4 years ago
  konghl 8b281e8053 修改pom,排除登录验证 4 years ago
  konghl cb0c0e8182 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl 53804e97f6 修改镜屏推送信息 4 years ago
  konghl 6809ddead2 重构实时报警和历史报警 4 years ago
  konghl 2363abc631 修改镜屏topic 4 years ago
  konghl 6c328c4398 轨迹查询重构 4 years ago
  konghl b0ee3a41b4 历史轨迹回放重构,增加定时任务判断设备离线 4 years ago
  chenxr3 622b446cee 首页修改提交 4 years ago
  chenxr3 4756df9027 修改提交 4 years ago
  konghl 67e75e92ff 删除枚举等,重构人员定位 4 years ago
  chenxr3 563af28335 修改提交 4 years ago
  konghl 08a6631852 修改设备类型 4 years ago
  konghl c183618ccb Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl 2387b3f8e5 修改设备 4 years ago
  konghl 7712978aac 修改地图标记类型和设备类型 4 years ago
  konghl 97a96a8da4 中台服务的版本从2.1升级为2.1.5 4 years ago
  chenxr3 626a7699ce 修改提交 4 years ago
  konghl cbbdfa675d 修改北向接口缓存方式 4 years ago
  konghl 387e92633d Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc into master 4 years ago
  konghl 9ec6ffcd72 统一设备管理返回格式 4 years ago
  konghl 46d45bf56c Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc into master 4 years ago
  konghl b61fa21c4f 修改kafka配置文件 4 years ago
  konghl 24f03b82fc 统一设备管理的返回格式 4 years ago
  konghl 8c1bd0a40d Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl d6c9ee7ac9 统一用户管理返回值 4 years ago
  konghl 2667543ebe 修改人员信息返回值 4 years ago
  konghl 33f605d78d Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc into master 4 years ago
  konghl 8c6e6b34db 统一地图标记和终端管理的返回格式 4 years ago
  konghl 6f5679bb9b 修改pom 4 years ago
  konghl f8ec732c5e 配置kafka 4 years ago
  wangchao 91cb23750d Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 7a19aa2489 加入uspa拦截器token验证 4 years ago
  wangchao 605bfe142d Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 0307a3595b 用户管理删除和新增 4 years ago
  wangchao 42c9ce12f2 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 2f12fb16fb 终端绑定 4 years ago
  wangchao a4780fea36 后台项目初始化 4 years ago
  wangchao 1d225203e0 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 7b5bd7fc8f 解绑查询关联关系 4 years ago
  wangchao 5b7ada9d09 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 3abd9ac159 测试 4 years ago
  wangchao 5c2edbe8f2 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 701921f2c7 设备管理分页查询的修改 4 years ago
  wangchao d1e6198a6c 设备管理报错修改 4 years ago
  wangchao cd2a9a0807 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 42136256e1 设备管理模块后台修改 4 years ago
  konghl e5ac90e3cc 修改git忽略文件配置 4 years ago
  konghl 173629f8c7 修改用户管理 4 years ago
  konghl 8b50ef3257 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl 15425d68aa 用户管理功能修改 4 years ago
  wangchao f4c0dc51b9 后台项目安防一体化系统初始化 4 years ago
  konghl e9eb1c63df 修改工程,无错误 4 years ago
  zhaolx5 12e2261ca9 初始化工程 4 years ago
  wangchao 21a1d106ba Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao d53bf64414 修改项目结构 4 years ago
  wangchao 10d36573b9 修改项目结构 4 years ago
  wangkang3 657320fadd 提交 4 years ago
  wangchao 993f22008d Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 1e6aae2459 修改设备添加数据库时间 4 years ago
  konghl aa3a0f690d 实际报警初始化查询 4 years ago
  konghl 3640ccd134 拆分properties配置文件 4 years ago
  konghl 9afed3d1cd 修改镜屏名称、新增查询历史报警救援等 4 years ago
  konghl 52a85f945f 修改日期工具类 4 years ago
  wanyao ee205bc24c 回退 4 years ago
  wanyao 16d1d23fee 主机启动慢的原因测试1 4 years ago
  wangkang3 d34871ad0c Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 years ago
  wangkang3 57e2b527f0 修改镜屏uuid 4 years ago
  wangkang3 a4f2b748b2 提交 4 years ago
  wangkang3 07f3e9bb23 修改提交 4 years ago
  konghl 499e7a7d94 合并海图参数 4 years ago
  konghl fe61027787 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git 4 years ago
  konghl 70691e3608 增加海图配置参数、重构数据推送、新增轨迹回放接口 4 years ago
  konghl 510c6be0e7 修改人员定位功能数据订阅的解析 4 years ago
  chenxr3 186e9e66f4 轨迹分析页面 4 years ago
  wangchao 71ba3d6e50 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao eb6f6af53e 修改时间工具类与轨迹分析 4 years ago
  wangchao dc4c59924a Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 1c6dc5d9cd 轨迹分析信息查询 4 years ago
  chenxr3 69f534d648 地图标记绘制多边形颜色优化 4 years ago
  konghl ea8cc62767 修改配置文件 4 years ago
  wangchao ffb3b16b49 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 4f36bbe4f2 考勤方法的修改 4 years ago
  wangchao 4ea204d4e4 考勤查询功能详情信息 4 years ago
  wangchao 76ba12e88b Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 8088a9af4d 考勤查询功能 4 years ago
  konghl 0824340e9c 修改人员定位功能 4 years ago
  wangchao ceb2e684c3 测试批量插入 4 years ago
  wangchao a19b9e2346 合并代码 4 years ago
  wangchao d0cdba1219 Merge remote-tracking branch 'origin/master' 4 years ago
  wangchao 14d32a62c0 删除终端时删除终端绑定关系 4 years ago
  wangchao 1d834a772a 删除终端时删除终端绑定关系 4 years ago
  chenxr3 8e19767361 设备类型标识格式更改 4 years ago
  konghl b8a06cf6e6 添加人员的枚举值 4 years ago
  konghl ec04cf2f49 删除.project文件 4 years ago
  konghl 2e3c3b67ca 修改枚举位置 4 years ago
  konghl 004b6f9498 新增定位推送,修改枚举类的位置 4 years ago
  wangkang3 76ef98bf1e 代码提交 4 years ago
  wangchao 63feb0d24b 终端管理页面加ui替换 4 years ago
  wangchao e0572c53e1 关联终端,解绑终端修改,考勤管理架子编写 4 years ago
  wangchao 9ff2237cbf 关联终端,解绑终端修改 4 years ago
  wangchao 7acc72f757 关联终端,解绑终端修改 4 years ago
  wangchao 332e05b5f4 关联终端,解绑终端修改 4 years ago
  wangchao b7fe4ca37c 后台daoimpl的修改 4 years ago
  konghl a3c4950238 修改字段 4 years ago
  konghl 48cb0bbdfa 增加返回参数 4 years ago
  konghl 429b4dbfa9 修改北向接口 4 years ago
  konghl 2e0b6dcd44 增加业务常量 4 years ago
  konghl 12d7573f2e 新增功能:地图标记增删改查 4 years ago
  wangkang3 8f7b30e3be 地图标记模块接口接入 4 years ago
  chenxr3 1013865ef3 设备管理页面 4 years ago
  wangchao 97dca84162 修改设备验证 4 years ago
  wangchao 0c9930d3e3 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 years ago
  wangchao 8bd1ff2323 终端关联,终端解绑等接口 4 years ago
  wangchao d01adabd91 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 years ago
  wangchao d40c613702 修改gis接口等 4 years ago
  wangchao 35550a3e47 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 years ago
  wangchao bd86ba7a47 设备增删改查以及关联与解绑终端 4 years ago
  wangchao a8c7c1cf4d 项目配置修改以及剔除uspa 4 years ago
  wangchao c251472c3d gis获取token接口 4 years ago
  wangchao fba9354c6a Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 years ago
  wangchao 5ff38a7f9b 解决跨域问题 4 years ago
  wangchao 74f666ab34 添加注释,增加轨迹文件等 4 years ago
  wangchao 5f13388aac 修改地图管理文件 4 years ago
  wangchao 41aea6126c Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 years ago
  wangchao 24f1743496 按评审要求修改文件 4 years ago
  wangchao 666c0f81c2 Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc 4 years ago
  wangchao 779c6e3826 修改日志文件 4 years ago
  wangchao 0e5599165c 修改日志文件 4 years ago
  wangchao c217a49b3a 更新项目 4 years ago
  wangchao 408a2042a9 后台项目初始化 4 years ago
  wangkang3 7bbf8eb6a8 页面初始化提交 4 years ago
  liuchang 000ebd90c9 更新文件 4 years ago
  liuchang 46a262ab4b 删除 4 years ago
  liuchang d1d76df146 更新提交 4 years ago
  wanyao 1d2d95bc39 删除 4 years ago
  wanyao f74da4a0dd 删除 4 years ago
  wanyao b667fddfbc 初始化 4 years ago

+ 1 - 2
security-protection-platform/src/components/VideoPlayer/index.vue

@ -34,8 +34,7 @@ const defaultPlayerOptions = {
34 34
        name: 'volumePanel', // 音量控制
35 35
        inline: true // 不使用水平方式
36 36
      },
37
      {name: 'FullscreenToggle'}, // 全屏
38
      {name: 'FullscreenToggle'}
37
      {name: 'FullscreenToggle'} // 全屏
39 38
    ]
40 39
  }
41 40
}

+ 1 - 30
security-protection-platform/src/modules/system/assignment/index.vue

@ -103,8 +103,6 @@ export default {
103 103
    }
104 104
  },
105 105
  created () {
106
    this.getDeviceData()
107
    this.getDeviceTypes()
108 106
    this.getTaskName()
109 107
    this.getmatchingType()
110 108
  },
@ -116,6 +114,7 @@ export default {
116 114
    },
117 115
    getmatchingType() {
118 116
      sysapi.getCharSpecList('AI_MATCHER_MODE').then(res => {
117
        console.log(res);
119 118
        this.matchingTypeList = res.data
120 119
      })
121 120
    },
@ -132,34 +131,6 @@ export default {
132 131
      }
133 132
      return typecellClass
134 133
    },
135
    // 获取设备列表数据
136
    async getDeviceData () {
137
      const res = await sysapi.getDeviceData({ params: { page: this.page, limit: this.limit, taskName: this.taskName, matchingType: this.matchingType, taskStatus: this.taskStatus } }
138
      )
139
      if (res.status === 200) {
140
        const list = res.data.data.data
141
        let dataList = list.map(item => {
142
          return {
143
            taskName: item.deviceName,
144
            status: item.deviceType
145
          }
146
        })
147
        console.log(dataList)
148
        this.taskDataList = dataList
149
        this.total = res.data.total
150
      } else {
151
        this.$Message.danger('设备数据列表获取失败!')
152
      }
153
    },
154
    // 向服务器发送请求获取设备类型列表数据
155
    async getDeviceTypes () {
156
      const res = await sysapi.getDeviceTypes()
157
      if (res.status === 200) {
158
        this.taskNameList = res.data.data
159
      } else {
160
        this.$Message.danger('设备类型列表数据获取失败!')
161
      }
162
    },
163 134
    // 查询数据
164 135
    selectHandle () {
165 136
      this.page = 1

+ 7 - 5
security-protection-platform/src/modules/videoSurveillance/components/rtmpVideoPlay/index.vue

@ -62,9 +62,15 @@ export default {
62 62
    }
63 63
  },
64 64
  methods: {
65
    // 初始化
65 66
    handlePlayerInited(player) {
66 67
      this.$player = player
67 68
      window.player = this
69
      var myButton = player.controlBar.addChild('button')
70
      myButton.addClass('vjs-play-control')
71
      myButton.on('click', () => {
72
        this.$emit('videoReplay')
73
      })
68 74
    },
69 75
    async handleTabChange(name, index) {
70 76
      this.$player.pause()
@ -79,7 +85,6 @@ export default {
79 85
    resetVideoList() {
80 86
      const videoList = this.list.map((item, index) => {
81 87
        const { fileId, fileType } = item
82
        console.log(fileType)
83 88
        return {
84 89
          index,
85 90
          fileId,
@ -136,10 +141,7 @@ export default {
136 141
      // fake
137 142
      return new Promise((resolve, reject) => {
138 143
        setTimeout(() => {
139
          const x = Math.random()
140
          const url = x > 0.5
141
            ? 'http://10.19.90.34:19000/tool-image/tool-image_7d359725fac4464fb248284caf321993.mp4'
142
            : 'http://10.19.90.34:19000/tool-image/tool-image_7fa1f7b30f0640f2a67ac8b4c2e0b574.mp4'
144
          const url = 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1'
143 145
          resolve({
144 146
            url
145 147
          })

+ 107 - 86
security-protection-platform/src/modules/videoSurveillance/index.vue

@ -13,76 +13,32 @@
13 13
      </t-select>
14 14
    </div>
15 15
    <div class="page-bottom">
16
      <!-- <div v-for="(item,index) in videoList" :key="index">
17
        <t-card class="card-video">
18
          <img :src="item.url" class="card-image">
19
          <div slot="foot" class="bottom">
20
            <span v-tooltip="item.videoDetail">{{ item.videoDetail.content | handleText }}</span>
21
            <div style="margin-left:auto">
22
              <t-button v-tooltip="item.options1" class="bottom-btn" @click="goDistinguishRecord(item.videoId)">
23
                <t-icon size="16" icon="image-outline"></t-icon>
24
              </t-button>
25
              <t-button v-tooltip="item.options2" class="bottom-btn" @click="handleReview(item.videoId)">
26
                <t-icon size="16" icon="piechart-outline"></t-icon>
27
              </t-button>
28
              <t-button v-tooltip="item.options3" class="bottom-btn">
29
                <t-icon size="16" icon="arrow-expand-all-outline"></t-icon>
30
              </t-button>
31
            </div>
32
          </div>
33
        </t-card>
16
      <!-- <div v-for="(item,index) in videoList" :key="index" :value="item.id" style="width:400px;margin:24px 0px 0 24px;">
17
        <rtmp-video :list="replayList" @videoReplay="handleReview"></rtmp-video>
34 18
      </div> -->
35
      <div style="width:400px;margin:24px 24px 0 0;">
36
        <!-- <video id="videoPlayer" class="video-js vjs-default-skin vjs-big-play-centered"
37
               controls autoplay preload="auto" width="640" height="360"
38
               data-setup="{ &quot;html5&quot; : { &quot;nativeTextTracks&quot; : false } }">
39
          <source src="rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1" type="rtmp/flv" />
40
        </video> -->
19
      <div style="width:400px;margin:24px 0px 0 24px;">
20
        <rtmp-video :list="replayList" @videoReplay="handleReview"></rtmp-video>
41 21
      </div>
42 22
    </div>
43 23
    <t-pager :page-size="videoPageSize" :current="videoCurrent" :total="videoTotal" :sizer-range="[ 5, 10, 20, 30 ]" class="pager" show-elevator @on-change="onChangeGate"></t-pager>
44
    <replay-dialog :list="replayList" />
24
    <replay-dialog :list="replayList" :visibled.sync="showReplayDialog"/>
45 25
  </div>
46 26
</template>
47 27
<script>
48 28
import sysapi from '@/api/videoSurveillance'
49
import commonapi from '@/api/common'
50
import ReplayDialog from './components/rtmpVideoPlay'
29
import RtmpVideo from './components/rtmpVideoPlay'
30
import ReplayDialog from './components/ReplayDialog'
51 31
import VideoPlayer from '@/components/VideoPlayer'
52 32
import videojs from 'video.js'
53 33
window.videojs = videojs
34
54 35
require('videojs-flash')
55 36
require('videojs-playlist')
56 37
require('video.js/dist/lang/zh-CN.js')
57 38
require('video.js/dist/video-js.min.css')
58 39
59
const defaultPlayerOptions = {
60
  controls: true,
61
  autoplay: false,
62
  muted: false,
63
  language: 'zh-CN',
64
  fluid: true,
65
  // liveui: true,
66
  controlBar: {
67
    children: [
68
      {name: 'playToggle'}, // 播放按钮
69
      {name: 'currentTimeDisplay'}, // 当前已播放时间
70
      {name: 'progressControl'}, // 播放进度条
71
      {name: 'durationDisplay'}, // 总时间
72
      { // 倍数播放
73
        name: 'playbackRateMenuButton',
74
        playbackRates: [0.5, 1, 1.5, 2, 2.5]
75
      },
76
      {
77
        name: 'volumePanel', // 音量控制
78
        inline: false // 不使用水平方式
79
      },
80
      {name: 'FullscreenToggle'} // 全屏
81
    ]
82
  }
83
}
84 40
export default {
85
  components: { ReplayDialog, VideoPlayer },
41
  components: { ReplayDialog, VideoPlayer, RtmpVideo },
86 42
  filters: {
87 43
    handleText (value) {
88 44
      if (!value) return ''
@ -93,9 +49,7 @@ export default {
93 49
    }
94 50
  },
95 51
  data () {
96
    const playerOptions = Object.assign({}, defaultPlayerOptions, this.options)
97 52
    return {
98
      playerOptions,
99 53
      videoCurrent: 1, // 大门分页数据
100 54
      videoPageSize: 10, // 大门分页数据
101 55
      videoTotal: 100, // 大门分页总数
@ -106,24 +60,94 @@ export default {
106 60
      },
107 61
      organizationList: [], // 风场数据
108 62
      gateFieldData: 101101,
109
      videoList: [],
63
      videoList: [], // 场景数据列表
110 64
      sceneList: [], // 场景列表
111 65
      totalList: [], // 所有风场数据列表
112
      selectedMonitorScene: '',
113
      showReplayDialog: true,
66
      selectedMonitorScene: '', // 当前选择场景
67
      videoPlayList: [],
68
      showReplayDialog: false,
114 69
      replayList: []
115 70
    }
116 71
  },
117 72
  mounted () {
118
    // var myButton = videojs.player.controlBar.addChild('button', {
119
    //   text: 'Press me'
120
    //   // other options
121
    // })
122
    // myButton.addClass('html-classname')
123 73
    this.getWindFiledList() // 获取风场列表
124
    this.handleReview()
74
    this.getdata()
125 75
  },
126 76
  methods: {
77
    getdata() {
78
      this.replayList = [{
79
        fileName: '12月14 16:55',
80
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
81
        fileType: 'rtmp/flv'
82
      }, {
83
        fileName: '12月14 16:56',
84
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
85
        fileType: 'rtmp/flv'
86
      }, {
87
        fileName: '12月14 16:57',
88
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
89
        fileType: 'rtmp/flv'
90
      }, {
91
        fileName: '12月14 16:58',
92
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
93
        fileType: 'rtmp/flv'
94
      }, {
95
        fileName: '12月14 16:59',
96
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
97
        fileType: 'rtmp/flv'
98
      }, {
99
        fileName: '12月14 17:00',
100
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
101
        fileType: 'rtmp/flv'
102
      }]
103
      this.replayList = [{
104
        sources: [{
105
          src: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
106
          type: 'rtmp/flv'
107
        }]
108
      }, {
109
        sources: [{
110
          src: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
111
          type: 'rtmp/flv'
112
        }]
113
      }]
114
      this.videoPlayList = [{
115
        fileName: '12月14 16:55',
116
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
117
        fileType: 'rtmp/flv'
118
      }, {
119
        fileName: '12月14 16:56',
120
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
121
        fileType: 'rtmp/flv'
122
      }, {
123
        fileName: '12月14 16:57',
124
        fileId: 'ai-video_5A02296PAKA885B-video20201214165528.mp4',
125
        fileType: 'rtmp/flv'
126
      }, {
127
        fileName: '12月14 16:58',
128
        fileId: 'ai-video_5A02296PAKA885B-video20201214165529.mp4',
129
        fileType: 'rtmp/flv'
130
      }, {
131
        fileName: '12月14 16:59',
132
        fileId: 'ai-video_5A02296PAKA885B-video20201214165530.mp4',
133
        fileType: 'rtmp/flv'
134
      }, {
135
        fileName: '12月14 17:00',
136
        fileId: 'ai-video_5A02296PAKA885B-video20201214165531.mp4',
137
        fileType: 'rtmp/flv'
138
      }]
139
      this.videoPlayList = [{
140
        sources: [{
141
          src: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
142
          type: 'rtmp/flv'
143
        }]
144
      }, {
145
        sources: [{
146
          src: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
147
          type: 'rtmp/flv'
148
        }]
149
      }]
150
    },
127 151
    // 获取场景列表
128 152
    getSceneList() {
129 153
      this.sceneList = []
@ -132,50 +156,49 @@ export default {
132 156
          this.sceneList.push(this.totalList[i])
133 157
        }
134 158
      }
135
      const {a, b} = this.totalList[0]
136
      console.log(this.totalList[0]);
137
      console.log(a, b)
138 159
    },
139 160
    async handleReview (id) {
140 161
      // const res = await sysapi.getVideoPlayBack(id)
141 162
      // console.log(res)
142 163
      this.replayList = [{
143 164
        fileName: '12月14 16:55',
144
        fileId: 'ai-video_5A02296PAKA885B-video20201214165526.mp4',
145
        fileType: 'video/mp4'
165
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
166
        fileType: 'rtmp/flv'
146 167
      }, {
147 168
        fileName: '12月14 16:56',
148
        fileId: 'ai-video_5A02296PAKA885B-video20201214165527.mp4',
149
        fileType: 'video/mp4'
169
        fileId: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
170
        fileType: 'rtmp/flv'
150 171
      }, {
151 172
        fileName: '12月14 16:57',
152 173
        fileId: 'ai-video_5A02296PAKA885B-video20201214165528.mp4',
153
        fileType: 'video/mp4'
174
        fileType: 'rtmp/flv'
154 175
      }, {
155 176
        fileName: '12月14 16:58',
156 177
        fileId: 'ai-video_5A02296PAKA885B-video20201214165529.mp4',
157
        fileType: 'video/mp4'
178
        fileType: 'rtmp/flv'
158 179
      }, {
159 180
        fileName: '12月14 16:59',
160 181
        fileId: 'ai-video_5A02296PAKA885B-video20201214165530.mp4',
161
        fileType: 'video/mp4'
182
        fileType: 'rtmp/flv'
162 183
      }, {
163 184
        fileName: '12月14 17:00',
164 185
        fileId: 'ai-video_5A02296PAKA885B-video20201214165531.mp4',
165
        fileType: 'video/mp4'
186
        fileType: 'rtmp/flv'
166 187
      }]
167 188
      this.replayList = [{
168 189
        sources: [{
169
          src: 'http://10.19.90.34:19000/tool-image/tool-image_7fa1f7b30f0640f2a67ac8b4c2e0b574.mp4',
170
          type: 'video/mp4'
190
          src: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
191
          type: 'rtmp/flv'
171 192
        }]
172 193
      }, {
173 194
        sources: [{
174
          src: 'http://10.19.90.34:19000/tool-image/tool-image_7fa1f7b30f0640f2a67ac8b4c2e0b574.mp4',
175
          type: 'video/mp4'
195
          src: 'rtmp://10.19.90.34:2935/live?token=039b6232ce6548210722a4c0de19c62e/1',
196
          type: 'rtmp/flv'
176 197
        }]
177 198
      }]
199
      this.showReplayDialog = true
178 200
    },
201
    // 切换场景
179 202
    async tabClick (id) {
180 203
      this.selectedMonitorScene = id
181 204
      this.paramsObj.page = 0
@ -184,6 +207,7 @@ export default {
184 207
      this.videoCurrent = 1
185 208
      this.getVideoSurveillanceData(id)
186 209
    },
210
    // 获取风场下拉框列表
187 211
    getWindFiledList () {
188 212
      sysapi.getMonitorScene().then(resp => {
189 213
        let arr = resp.data.data
@ -204,12 +228,10 @@ export default {
204 228
    },
205 229
    // 获得风场大门数据
206 230
    getVideoSurveillanceData (id) {
207
      if (this.videoList.length <= 10) {
208
        this.paramsObj.page = this.videoCurrent
209
        sysapi.getVideoSurveillanceData({ params: {monitorSceneId: id} }).then(res => {
210
          console.log(res)
211
        })
212
      }
231
      this.paramsObj.page = this.videoCurrent
232
      sysapi.getVideoSurveillanceData({ params: {monitorSceneId: id} }).then(res => {
233
        this.videoList.push(res.data.data[0])
234
      })
213 235
    },
214 236
    // 进入识别记录界面
215 237
    goDistinguishRecord (id) {
@ -219,7 +241,6 @@ export default {
219 241
    onChangeGate (val) {
220 242
      this.videoList = []
221 243
      this.videoCurrent = val
222
      this.getVideoSurveillanceData()
223 244
    }
224 245
  }
225 246
}