|
@@ -91,7 +91,7 @@
|
|
prefix-icon="el-icon-search"
|
|
prefix-icon="el-icon-search"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- <div class="i-list-con" style="height: 62vh">
|
|
|
|
|
|
+ <div class="i-list-con" style="height: 38vh;overflow:scroll" >
|
|
<el-tree
|
|
<el-tree
|
|
:data="deptOptions"
|
|
:data="deptOptions"
|
|
:props="defaultProps"
|
|
:props="defaultProps"
|
|
@@ -103,7 +103,25 @@
|
|
@node-click="handleNodeClick"
|
|
@node-click="handleNodeClick"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="overflow-y" style="height: 34vh" v-show="onShe">
|
|
|
|
+ <div class="d-l-con-icon">
|
|
|
|
+ <div
|
|
|
|
+ class="icon-con w-33 m-btm-no"
|
|
|
|
+ v-for="(item, index) in CameraCoverageList"
|
|
|
|
+ :class="{ on: onCoverage==index }"
|
|
|
|
+ @click="selectDeviceType(item.cameraRadius,index)"
|
|
|
|
+ >
|
|
|
|
+ <!--@click="laClick"-->
|
|
|
|
+ <!-->-->
|
|
|
|
+ <div class="icon-text">
|
|
|
|
+ <h6>{{ item.cameraCount }}</h6>
|
|
|
|
+ <h5>{{ item.radius }}</h5>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</dv-border-box-13>
|
|
</dv-border-box-13>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -221,8 +239,8 @@ import {
|
|
getDlblistBydeptId,
|
|
getDlblistBydeptId,
|
|
selectKeyAreaList,
|
|
selectKeyAreaList,
|
|
getRegionalFlag,
|
|
getRegionalFlag,
|
|
- getCamerasByDeptId,
|
|
|
|
-} from "@/api/monitor";
|
|
|
|
|
|
+ getCamerasByDeptId, selectCameraByCoverage
|
|
|
|
+} from '@/api/monitor'
|
|
import { treeselect } from "@/api/system/dept";
|
|
import { treeselect } from "@/api/system/dept";
|
|
import supermap from "@/components/supermap-2.5d"; //超图
|
|
import supermap from "@/components/supermap-2.5d"; //超图
|
|
import vheader from "@/components/v-header.vue"; //一体化共用头部
|
|
import vheader from "@/components/v-header.vue"; //一体化共用头部
|
|
@@ -266,7 +284,7 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
// 初始化地图数据
|
|
// 初始化地图数据
|
|
this.getSuperMapUrl();
|
|
this.getSuperMapUrl();
|
|
-
|
|
|
|
|
|
+ this.selectCameraByCoverage()
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.selectKeyAreaList();
|
|
this.selectKeyAreaList();
|
|
this.bottomMenuList(); //获取底部公共组件消息和任务
|
|
this.bottomMenuList(); //获取底部公共组件消息和任务
|
|
@@ -274,7 +292,7 @@ export default {
|
|
this.deptId = parseInt(Cookies.get("deptId"));
|
|
this.deptId = parseInt(Cookies.get("deptId"));
|
|
this.getMonitorDeviceAndDataLists(this.deptId);
|
|
this.getMonitorDeviceAndDataLists(this.deptId);
|
|
this.getDlblistBydeptIds();
|
|
this.getDlblistBydeptIds();
|
|
- this.selectDeviceType(-1);
|
|
|
|
|
|
+ this.selectDeviceType('',-2);
|
|
}, 2000)
|
|
}, 2000)
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
@@ -338,14 +356,16 @@ export default {
|
|
placeholderMsg: "请输入摄像头名称",
|
|
placeholderMsg: "请输入摄像头名称",
|
|
domId: "dom1",
|
|
domId: "dom1",
|
|
localMark: "she",
|
|
localMark: "she",
|
|
- onShe: false,
|
|
|
|
|
|
+ onShe: true,
|
|
onChuan: false,
|
|
onChuan: false,
|
|
onLa: false,
|
|
onLa: false,
|
|
|
|
+ onCoverage: '-1',
|
|
colors: "green",
|
|
colors: "green",
|
|
sensorNum: 0,
|
|
sensorNum: 0,
|
|
loudspeakerNum: 0,
|
|
loudspeakerNum: 0,
|
|
cgqTimer: null,
|
|
cgqTimer: null,
|
|
values: Math.random(),
|
|
values: Math.random(),
|
|
|
|
+ CameraCoverageList:[]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -365,6 +385,12 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ selectCameraByCoverage()
|
|
|
|
+ {
|
|
|
|
+ selectCameraByCoverage(365).then(res=>{
|
|
|
|
+ this.CameraCoverageList=res.data
|
|
|
|
+ })
|
|
|
|
+ },
|
|
//初始化地图数据
|
|
//初始化地图数据
|
|
getSuperMapUrl(){
|
|
getSuperMapUrl(){
|
|
getUserProfile().then(response => {
|
|
getUserProfile().then(response => {
|
|
@@ -513,7 +539,7 @@ export default {
|
|
this.deptId=Cookies.get("deptId")
|
|
this.deptId=Cookies.get("deptId")
|
|
this.placeholderMsg = "请输入摄像头名称";
|
|
this.placeholderMsg = "请输入摄像头名称";
|
|
clearInterval(this.cgqTimer);
|
|
clearInterval(this.cgqTimer);
|
|
- this.selectDeviceType();
|
|
|
|
|
|
+ this.selectDeviceType('',-2);
|
|
this.jkListIcon = 'sj-icon-jkzx'
|
|
this.jkListIcon = 'sj-icon-jkzx'
|
|
},
|
|
},
|
|
laClick() {
|
|
laClick() {
|
|
@@ -1164,10 +1190,13 @@ export default {
|
|
this.$refs.supermap.layerSwitchingList(urlList);
|
|
this.$refs.supermap.layerSwitchingList(urlList);
|
|
},
|
|
},
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
- selectDeviceType() {
|
|
|
|
|
|
+ selectDeviceType(cameraRadius,index) {
|
|
//获取左侧动态感知设备
|
|
//获取左侧动态感知设备
|
|
let that = this;
|
|
let that = this;
|
|
- selectDeviceType(this.deptId).then((res) => {
|
|
|
|
|
|
+ that.onCoverage=index
|
|
|
|
+ this.$refs.supermap.clearM()
|
|
|
|
+ this.$refs.supermap.clearMRadius()
|
|
|
|
+ selectDeviceType({deptId:this.deptId,cameraRadius:cameraRadius,type:8}).then((res) => {
|
|
that.cameraMarkersList = [];
|
|
that.cameraMarkersList = [];
|
|
that.visuForestCloudMapDeviceBOList =
|
|
that.visuForestCloudMapDeviceBOList =
|
|
res.data.visuForestCloudMapDeviceBOList;
|
|
res.data.visuForestCloudMapDeviceBOList;
|