| | |
| | | </el-table-column> |
| | | <el-table-column prop="id" label="操作" min-width="50%"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="flytoRange(scope.row)" type="text" size="small" title="定位"> |
| | | <el-button @click.stop="flytoRange(scope.row)" type="text" size="small" title="定位"> |
| | | <i class="el-icon-location"></i> |
| | | </el-button> |
| | | <el-button @click="deleteRegionSaveList(scope.row.id)" type="text" size="small" |
| | | <el-button @click.stop="deleteRegionSaveList(scope.row.id)" type="text" size="small" |
| | | title="删除"> |
| | | <i class="el-icon-delete"></i> |
| | | </el-button> |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | this.$EventBus.$emit('mapRemoveLayer', { |
| | | layerName: 'monitoringLayers', |
| | | type: 'VectorLayer' |
| | | }) |
| | | } else { |
| | | this.isShowVideo = { |
| | | video1: false, |
| | |
| | | type7: '', |
| | | type8: '' |
| | | } |
| | | |
| | | getRegionList({ |
| | | if(row.type == 2){ |
| | | getRegionList({ |
| | | page: 1, |
| | | count: 20, |
| | | id: row.id |
| | |
| | | } |
| | | }) |
| | | }) |
| | | }else{ |
| | | let positionStr = row.positions.replace(/,/g,';') |
| | | positionStr = positionStr.replace(/ /g,',') |
| | | positionStr += ';' |
| | | let coords = global.DC.GeoTools.polylineBuffer(positionStr, row.width) |
| | | let polygon = new global.DC.Polygon(coords) |
| | | let position = '' |
| | | polygon._positions.forEach(item => { |
| | | position += item._lng + ',' + item._lat + ';' |
| | | }) |
| | | getRegionList({ |
| | | page: 1, |
| | | count: 20, |
| | | range: position |
| | | }).then(res => { |
| | | let monitorData = res.data.data.list |
| | | |
| | | this.monitoringList = res.data.data.list |
| | | this.$EventBus.$emit('mapRemoveLayer', { |
| | | layerName: 'monitoringLayers', |
| | | type: 'VectorLayer' |
| | | }) |
| | | |
| | | this.initMonitoringIcon() |
| | | |
| | | this.monitorOption = [] |
| | | |
| | | monitorData.forEach((item, index) => { |
| | | this.monitorOption.push({ value: index, label: item.name, item }) |
| | | |
| | | if (index < 8) { |
| | | const ind = index + 1 |
| | | this.isShowVideo[`video${ind}`] = true |
| | | this.monitor[`type${ind}`] = item.name |
| | | if (item.status == 0) { |
| | | this.isShowOutline[`video${ind}`] = true |
| | | } |
| | | |
| | | this.getDevices(item.channelId).then(res => { |
| | | this.playVideoList(`flvPlayer${ind}`, `${res}`, `videoElement${ind}`) |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | } |
| | | this.saveRangeID = row.id |
| | | }, |
| | |
| | | } |
| | | }, |
| | | |
| | | |
| | | //#region |
| | | // enterVideoBox (num) { |
| | | // for (let key in this.isShowSelect) { |
| | | // this.isShowSelect[key] = false |
| | |
| | | // enterSelectBox (num) { |
| | | // this.isShowSelect[`video${num}`] = true |
| | | // }, |
| | | // #endregion |
| | | |
| | | }, |
| | | |