shuishen
2023-02-16 6560c203cca2de3499df2b40eb4a4838b9f8231e
播放逻辑调整
1 files modified
44 ■■■■ changed files
src/views/video/region.vue 44 ●●●● patch | view | raw | blame | history
src/views/video/region.vue
@@ -2,7 +2,7 @@
 * @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: 辖区管理
 * 
@@ -432,7 +432,6 @@
    created () {
        // this.getVideoList(1, 100)
        this.getRegionSaveList(this.currentPage, this.pagesize, this.userInfo.dept_id)
        console.log(this.userInfo.dept_id, 888888)
    },
@@ -517,7 +516,13 @@
            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) {
@@ -558,8 +563,6 @@
                type: 'VectorLayer'
            })
            console.log(this.saveRangeList, 9999666)
            this.saveRangeList.forEach(item => {
                let positionStr = this.convertPositionDate(item.positions, 'polygon')
                let polygonName = 'polygon' + item.id
@@ -580,7 +583,6 @@
                    width: 1,
                })
                console.log(positionStr, polygonLine, 456)
            })
        },
@@ -637,7 +639,6 @@
        rowClick (row) {
            // if (this.saveRangeID == row.id) return
            console.log(row, 959)
            this.saveRangeID = row.id
            this.isShowVideo = {
@@ -673,24 +674,25 @@
                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}`)
                        })
                    }
                })
            })
        },