| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-02-16 14:44:11 |
| | | * @LastEditTime: 2023-02-16 16:26:16 |
| | | * @FilePath: \srs-police-affairs\src\views\video\region.vue |
| | | * @Description: 辖区管理 |
| | | * |
| | |
| | | created () { |
| | | // this.getVideoList(1, 100) |
| | | this.getRegionSaveList(this.currentPage, this.pagesize, this.userInfo.dept_id) |
| | | console.log(this.userInfo.dept_id, 888888) |
| | | |
| | | }, |
| | | |
| | |
| | | if (this.valChoosed == val && this.argsChoosed == args) return |
| | | this.valChoosed = val |
| | | this.argsChoosed = args |
| | | this.playVideoList(`flvPlayer${args}`, `${this.monitorOption[val].flvUrl}`, `videoElement${args}`) |
| | | |
| | | this.monitor[`type${args}`] = this.monitorOption[val].item.name |
| | | |
| | | this.getDevices(this.monitorOption[val].item.channelId).then(res => { |
| | | |
| | | this.playVideoList(`flvPlayer${args}`, `${res}`, `videoElement${args}`) |
| | | }) |
| | | }, |
| | | |
| | | getRegionSaveList (current, size, deptId, name) { |
| | |
| | | type: 'VectorLayer' |
| | | }) |
| | | |
| | | console.log(this.saveRangeList, 9999666) |
| | | |
| | | this.saveRangeList.forEach(item => { |
| | | let positionStr = this.convertPositionDate(item.positions, 'polygon') |
| | | let polygonName = 'polygon' + item.id |
| | |
| | | width: 1, |
| | | }) |
| | | |
| | | console.log(positionStr, polygonLine, 456) |
| | | }) |
| | | |
| | | }, |
| | |
| | | |
| | | rowClick (row) { |
| | | // if (this.saveRangeID == row.id) return |
| | | console.log(row, 959) |
| | | this.saveRangeID = row.id |
| | | |
| | | this.isShowVideo = { |
| | |
| | | this.initMonitoringIcon() |
| | | |
| | | this.monitorOption = [] |
| | | |
| | | monitorData.forEach((item, index) => { |
| | | let flvUrl = '' |
| | | |
| | | if (item.status == 0) return |
| | | this.getDevices(item.channelId).then(res => { |
| | | flvUrl = res |
| | | |
| | | this.monitorOption.push({ value: `${index}`, label: `${item.name}`, flvUrl: `${flvUrl}` }) |
| | | if (index == monitorData.length - 1) { |
| | | this.monitorOption.forEach((itemm, indexx) => { |
| | | if (indexx < 8) { |
| | | this.isShowVideo[`video${indexx + 1}`] = true |
| | | this.monitor[`type${indexx + 1}`] = itemm.label |
| | | this.playVideoList(`flvPlayer${indexx + 1}`, `${itemm.flvUrl}`, `videoElement${indexx + 1}`) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | this.monitorOption.push({ value: index, label: item.name, item }) |
| | | |
| | | if (index < 8) { |
| | | this.isShowVideo[`video${index + 1}`] = true |
| | | this.monitor[`type${index + 1}`] = item.name |
| | | |
| | | this.getDevices(item.channelId).then(res => { |
| | | |
| | | this.playVideoList(`flvPlayer${index + 1}`, `${res}`, `videoElement${index + 1}`) |
| | | |
| | | }) |
| | | |
| | | } |
| | | |
| | | }) |
| | | }) |
| | | }, |