| | |
| | | </div> |
| | | </div> |
| | | <div class="item video1" v-show="isShowVideo.video1"> |
| | | <div class="select" v-show="isShowSelect.video1" @mouseenter="enterSelectBox(1)"> |
| | | <div class="select" v-show="isShowSelect.video1"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type1" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(1)" @mouseleave="leaveVideoBox(1)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement1" |
| | | autoplay |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item video2" v-show="isShowVideo.video2"> |
| | | <div class="select" v-show="isShowSelect.video2" @mouseenter="enterSelectBox(2)"> |
| | | <div class="select" v-show="isShowSelect.video2"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type2" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(2)" @mouseleave="leaveVideoBox(2)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement2" |
| | | autoplay |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item video3" v-show="isShowVideo.video3"> |
| | | <div class="select" v-show="isShowSelect.video3" @mouseenter="enterSelectBox(3)"> |
| | | <div class="select" v-show="isShowSelect.video3"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type3" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(3)" @mouseleave="leaveVideoBox(3)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement3" |
| | | autoplay |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item video4" v-show="isShowVideo.video4"> |
| | | <div class="select" v-show="isShowSelect.video4" @mouseenter="enterSelectBox(4)"> |
| | | <div class="select" v-show="isShowSelect.video4"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type4" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(4)" @mouseleave="leaveVideoBox(4)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement4" |
| | | autoplay |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item video5" v-show="isShowVideo.video5"> |
| | | <div class="select" v-show="isShowSelect.video5" @mouseenter="enterSelectBox(5)"> |
| | | <div class="select" v-show="isShowSelect.video5"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type5" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(5)" @mouseleave="leaveVideoBox(5)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement5" |
| | | autoplay |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item video6" v-show="isShowVideo.video6"> |
| | | <div class="select" v-show="isShowSelect.video6" @mouseenter="enterSelectBox(6)"> |
| | | <div class="select" v-show="isShowSelect.video6"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type6" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(6)" @mouseleave="leaveVideoBox(6)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement6" |
| | | autoplay |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item video7" v-show="isShowVideo.video7"> |
| | | <div class="select" v-show="isShowSelect.video7" @mouseenter="enterSelectBox(7)"> |
| | | <div class="select" v-show="isShowSelect.video7"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type7" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(7)" @mouseleave="leaveVideoBox(7)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement7" |
| | | autoplay |
| | |
| | | </div> |
| | | </div> |
| | | <div class="item video8" v-show="isShowVideo.video8"> |
| | | <div class="select" v-show="isShowSelect.video8" @mouseenter="enterSelectBox(8)"> |
| | | <div class="select" v-show="isShowSelect.video8"> |
| | | <el-select |
| | | size="small" |
| | | v-model="monitor.type8" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="video" @mouseenter="enterVideoBox(8)" @mouseleave="leaveVideoBox(8)"> |
| | | <div class="video"> |
| | | <video |
| | | id="videoElement8" |
| | | autoplay |
| | |
| | | type8: '', |
| | | }, |
| | | isShowSelect: { |
| | | video1: false, |
| | | video2: false, |
| | | video3: false, |
| | | video4: false, |
| | | video5: false, |
| | | video6: false, |
| | | video7: false, |
| | | video8: false, |
| | | video1: true, |
| | | video2: true, |
| | | video3: true, |
| | | video4: true, |
| | | video5: true, |
| | | video6: true, |
| | | video7: true, |
| | | video8: true, |
| | | }, |
| | | isShowVideo: { |
| | | video1: false, |
| | |
| | | video7: false, |
| | | video8: false, |
| | | }, |
| | | saveRangeID: '', |
| | | valChoosed: '', |
| | | argsChoosed: '', |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | navClick (val, args) { |
| | | if (this.valChoosed == val && this.argsChoosed == args) return |
| | | this.valChoosed = val |
| | | this.argsChoosed = args |
| | | this.playVideoList(`flvPlayer${args}`, `${this.monitorOption[val].flvUrl}`, `videoElement${args}`) |
| | | }, |
| | | |
| | |
| | | return flvAddress |
| | | }, |
| | | |
| | | // initMonitoringIcon () { |
| | | // this.monitoringList.forEach((item, index) => { |
| | | // this.$EventBus.$emit('layerPointAdd', { |
| | | // layerName: 'monitoringLayers', |
| | | // type: "billboard", |
| | | // params: { |
| | | // name: item.name, |
| | | // lng: item.longitude, |
| | | // lat: item.latitude, |
| | | // alt: 100, |
| | | // url: '/img/icon/video.png', |
| | | // deviceId: item.deviceId |
| | | // }, |
| | | // incident: this.siteClick |
| | | // }) |
| | | initMonitoringIcon () { |
| | | this.monitoringList.forEach((item, index) => { |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'monitoringLayers', |
| | | type: "billboard", |
| | | params: { |
| | | name: item.name, |
| | | lng: item.longitude, |
| | | lat: item.latitude, |
| | | alt: 100, |
| | | url: '/img/icon/video.png', |
| | | // deviceId: item.deviceId |
| | | }, |
| | | // incident: this.siteClick |
| | | }) |
| | | |
| | | // }) |
| | | // }, |
| | | }) |
| | | }, |
| | | |
| | | rowClick (row) { |
| | | if (this.saveRangeID == row.id) return |
| | | this.saveRangeID = row.id |
| | | |
| | | this.isShowVideo = { |
| | | video1: false, |
| | | video2: false, |
| | |
| | | getRegionList(1, 15, positionNewStr).then(res => { |
| | | let monitorData = res.data.data.list |
| | | console.log(res.data.data.list, 123) |
| | | this.monitoringList = res.data.data.list |
| | | this.monitorOption = [] |
| | | monitorData.forEach((item, index) => { |
| | | let flvUrl = '' |
| | |
| | | this.boxShow = val |
| | | }, |
| | | |
| | | enterVideoBox (num) { |
| | | for (let key in this.isShowSelect) { |
| | | this.isShowSelect[key] = false |
| | | } |
| | | if (num == 1) { |
| | | this.$refs.videoSelect1.blur() |
| | | } else if (num == 2) { |
| | | this.$refs.videoSelect2.blur() |
| | | } else if (num == 3) { |
| | | this.$refs.videoSelect3.blur() |
| | | } else if (num == 4) { |
| | | this.$refs.videoSelect4.blur() |
| | | } else if (num == 5) { |
| | | this.$refs.videoSelect5.blur() |
| | | } else if (num == 6) { |
| | | this.$refs.videoSelect6.blur() |
| | | } else if (num == 7) { |
| | | this.$refs.videoSelect7.blur() |
| | | } else if (num == 8) { |
| | | this.$refs.videoSelect8.blur() |
| | | } |
| | | this.isShowSelect[`video${num}`] = true |
| | | }, |
| | | // enterVideoBox (num) { |
| | | // for (let key in this.isShowSelect) { |
| | | // this.isShowSelect[key] = false |
| | | // } |
| | | // if (num == 1) { |
| | | // this.$refs.videoSelect1.blur() |
| | | // } else if (num == 2) { |
| | | // this.$refs.videoSelect2.blur() |
| | | // } else if (num == 3) { |
| | | // this.$refs.videoSelect3.blur() |
| | | // } else if (num == 4) { |
| | | // this.$refs.videoSelect4.blur() |
| | | // } else if (num == 5) { |
| | | // this.$refs.videoSelect5.blur() |
| | | // } else if (num == 6) { |
| | | // this.$refs.videoSelect6.blur() |
| | | // } else if (num == 7) { |
| | | // this.$refs.videoSelect7.blur() |
| | | // } else if (num == 8) { |
| | | // this.$refs.videoSelect8.blur() |
| | | // } |
| | | // this.isShowSelect[`video${num}`] = true |
| | | // }, |
| | | |
| | | leaveVideoBox (num) { |
| | | if (num == 1) { |
| | | this.$refs.videoSelect1.blur() |
| | | } else if (num == 2) { |
| | | this.$refs.videoSelect2.blur() |
| | | } else if (num == 3) { |
| | | this.$refs.videoSelect3.blur() |
| | | } else if (num == 4) { |
| | | this.$refs.videoSelect4.blur() |
| | | } else if (num == 5) { |
| | | this.$refs.videoSelect5.blur() |
| | | } else if (num == 6) { |
| | | this.$refs.videoSelect6.blur() |
| | | } else if (num == 7) { |
| | | this.$refs.videoSelect7.blur() |
| | | } else if (num == 8) { |
| | | this.$refs.videoSelect8.blur() |
| | | } |
| | | this.isShowSelect[`video${num}`] = false |
| | | }, |
| | | // leaveVideoBox (num) { |
| | | // if (num == 1) { |
| | | // this.$refs.videoSelect1.blur() |
| | | // } else if (num == 2) { |
| | | // this.$refs.videoSelect2.blur() |
| | | // } else if (num == 3) { |
| | | // this.$refs.videoSelect3.blur() |
| | | // } else if (num == 4) { |
| | | // this.$refs.videoSelect4.blur() |
| | | // } else if (num == 5) { |
| | | // this.$refs.videoSelect5.blur() |
| | | // } else if (num == 6) { |
| | | // this.$refs.videoSelect6.blur() |
| | | // } else if (num == 7) { |
| | | // this.$refs.videoSelect7.blur() |
| | | // } else if (num == 8) { |
| | | // this.$refs.videoSelect8.blur() |
| | | // } |
| | | // this.isShowSelect[`video${num}`] = false |
| | | // }, |
| | | |
| | | enterSelectBox (num) { |
| | | this.isShowSelect[`video${num}`] = true |
| | | }, |
| | | // enterSelectBox (num) { |
| | | // this.isShowSelect[`video${num}`] = true |
| | | // }, |
| | | |
| | | }, |
| | | |