西海岸问题修复
This commit is contained in:
parent
a692d9fcd9
commit
ae7983720b
|
@ -148,6 +148,7 @@
|
||||||
const btnClick = (index) => {
|
const btnClick = (index) => {
|
||||||
itemIndex.value = index
|
itemIndex.value = index
|
||||||
if (index === 2) {
|
if (index === 2) {
|
||||||
|
// 按标签搜索
|
||||||
if (chooseId.value !== '') {
|
if (chooseId.value !== '') {
|
||||||
let placeTypeCode = []
|
let placeTypeCode = []
|
||||||
placeTypeCode.push(chooseId.value)
|
placeTypeCode.push(chooseId.value)
|
||||||
|
@ -156,6 +157,7 @@
|
||||||
mybus.emit('clearLeftSelect')
|
mybus.emit('clearLeftSelect')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// 按部门搜索
|
||||||
if (selectId.value !== '') {
|
if (selectId.value !== '') {
|
||||||
mybus.emit('getCameraByParentId', {
|
mybus.emit('getCameraByParentId', {
|
||||||
id: selectId.value,
|
id: selectId.value,
|
||||||
|
@ -165,6 +167,8 @@
|
||||||
mybus.emit('clearLeftSelect')
|
mybus.emit('clearLeftSelect')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 重置地图搜索模式
|
||||||
|
mybus.emit('resetMapSearch', index)
|
||||||
}
|
}
|
||||||
//选择标签内容
|
//选择标签内容
|
||||||
const tabClick = (id) => {
|
const tabClick = (id) => {
|
||||||
|
|
|
@ -163,10 +163,12 @@
|
||||||
camreaTree: [],
|
camreaTree: [],
|
||||||
camreaTreeIsShow: true,
|
camreaTreeIsShow: true,
|
||||||
camreaTreeSingle: [],
|
camreaTreeSingle: [],
|
||||||
|
placeTypeCode: [], // 标签数据
|
||||||
checkStatus: '2',
|
checkStatus: '2',
|
||||||
labelSearch: '',
|
labelSearch: '',
|
||||||
timer: null,
|
timer: null,
|
||||||
openVideo: false,
|
openVideo: false,
|
||||||
|
labelMode: false, // 标签模式
|
||||||
channelCode: [],
|
channelCode: [],
|
||||||
circleModeFlag: false,
|
circleModeFlag: false,
|
||||||
areaModeFlag: false,
|
areaModeFlag: false,
|
||||||
|
@ -176,15 +178,15 @@
|
||||||
whoShow1: whoShow,
|
whoShow1: whoShow,
|
||||||
mapSearchParam: {
|
mapSearchParam: {
|
||||||
// 地图搜索初始化数据
|
// 地图搜索初始化数据
|
||||||
parentId: '',
|
regionId: '',
|
||||||
checkStatus: '1',
|
// checkStatus: '1',
|
||||||
pageNum: '1',
|
// pageNum: '1',
|
||||||
pageSize: '20000',
|
// pageSize: '20000',
|
||||||
gpsX: '',
|
gpsX: '',
|
||||||
gpsY: '',
|
gpsY: '',
|
||||||
radius: '',
|
radius: '',
|
||||||
borderPolygonList: [],
|
borderPolygonList: [],
|
||||||
type: 0, //0是无,1画圆,2不规则
|
type: 1, //0是无,1画圆,2不规则
|
||||||
},
|
},
|
||||||
pointAllData:[],
|
pointAllData:[],
|
||||||
restaurants:[],
|
restaurants:[],
|
||||||
|
@ -221,13 +223,14 @@
|
||||||
mybus.on('getCameraByParentId', (val) => {
|
mybus.on('getCameraByParentId', (val) => {
|
||||||
debugger
|
debugger
|
||||||
console.log('倒腾位置1')
|
console.log('倒腾位置1')
|
||||||
|
console.info('根据部门进行查询')
|
||||||
// 判断是否重置位置
|
// 判断是否重置位置
|
||||||
if (val.reset) {
|
if (val.reset) {
|
||||||
this.hiMapFun.mapFlyTo({lat:'36.017043',lng: '119.922772'}, 9)
|
this.hiMapFun.mapFlyTo({lat:'36.017043',lng: '119.922772'}, 9)
|
||||||
}
|
}
|
||||||
this.mapSearchParam.parentId = val.id
|
this.mapSearchParam.regionId = val.id
|
||||||
this.mapSearchParam.type = "1"
|
// this.mapSearchParam.type = "1"
|
||||||
this.mapSearchParam.pageSize = 10000
|
// this.mapSearchParam.pageSize = 10000
|
||||||
this.getCameraByParentId('','department')
|
this.getCameraByParentId('','department')
|
||||||
})
|
})
|
||||||
//表格勾选
|
//表格勾选
|
||||||
|
@ -253,10 +256,21 @@
|
||||||
//行政区划点击查询摄像头
|
//行政区划点击查询摄像头
|
||||||
mybus.off('CameraConditionPlaceType')
|
mybus.off('CameraConditionPlaceType')
|
||||||
mybus.on('CameraConditionPlaceType', (data) => {
|
mybus.on('CameraConditionPlaceType', (data) => {
|
||||||
this.queryCameraConditionPlace(data)
|
console.info('根据标签进行查询')
|
||||||
|
this.placeTypeCode = data
|
||||||
|
this.queryCameraConditionPlace()
|
||||||
|
})
|
||||||
|
// 重置地图搜索模式
|
||||||
|
mybus.off('resetMapSearch')
|
||||||
|
mybus.on('resetMapSearch', (index) => {
|
||||||
|
if (index == 2) {
|
||||||
|
this.labelMode = true
|
||||||
|
this.queryCameraConditionPlace()
|
||||||
|
} else {
|
||||||
|
this.labelMode = false
|
||||||
|
this.getCameraByParentId('map')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
//清空地图上所有数据
|
//清空地图上所有数据
|
||||||
mybus.off('clearLeftSelect')
|
mybus.off('clearLeftSelect')
|
||||||
mybus.on('clearLeftSelect', () => {
|
mybus.on('clearLeftSelect', () => {
|
||||||
|
@ -271,11 +285,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//查询标签视频
|
//查询标签视频
|
||||||
queryCameraConditionPlace(data) {
|
queryCameraConditionPlace(param) {
|
||||||
|
debugger
|
||||||
let params = {
|
let params = {
|
||||||
placeTypeCode: data,
|
placeTypeCode: this.placeTypeCode,...param
|
||||||
}
|
}
|
||||||
|
if (params.regionId) {
|
||||||
|
params.regionId = '70be8c5b664f4bcf869d82f2e8335051'
|
||||||
|
}
|
||||||
|
this.spinning = true;
|
||||||
CameraConditionPlaceType(params).then((res) => {
|
CameraConditionPlaceType(params).then((res) => {
|
||||||
|
this.spinning = false;
|
||||||
const byteArray = this.unzip(res.data.data)
|
const byteArray = this.unzip(res.data.data)
|
||||||
this.addResourceTomap('videoMap', byteArray)
|
this.addResourceTomap('videoMap', byteArray)
|
||||||
})
|
})
|
||||||
|
@ -371,7 +391,12 @@
|
||||||
type: this.mapSearchParam.type,
|
type: this.mapSearchParam.type,
|
||||||
}
|
}
|
||||||
// mybus.emit('getListByMap', params);
|
// mybus.emit('getListByMap', params);
|
||||||
|
if (this.labelMode) {
|
||||||
|
debugger
|
||||||
|
this.queryCameraConditionPlace(params)
|
||||||
|
} else {
|
||||||
this.getCameraByParentId('map');
|
this.getCameraByParentId('map');
|
||||||
|
}
|
||||||
console.log("areaSelectResource -> latlngs", latlngs)
|
console.log("areaSelectResource -> latlngs", latlngs)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -400,11 +425,17 @@
|
||||||
circlePloygonLayer
|
circlePloygonLayer
|
||||||
)
|
)
|
||||||
console.log('查询图层为何发生了改变', e.layer)
|
console.log('查询图层为何发生了改变', e.layer)
|
||||||
this.mapSearchParam.gpsX = e.layer._latlng.lng
|
this.mapSearchParam.regionId = this.mapSearchParam.regionId ||
|
||||||
this.mapSearchParam.gpsY = e.layer._latlng.lat
|
'70be8c5b664f4bcf869d82f2e8335051',
|
||||||
|
this.mapSearchParam.longitude = e.layer._latlng.lng
|
||||||
|
this.mapSearchParam.latitude = e.layer._latlng.lat
|
||||||
this.mapSearchParam.radius = radius
|
this.mapSearchParam.radius = radius
|
||||||
this.mapSearchParam.type = 1
|
this.mapSearchParam.type = 1
|
||||||
this.getCameraByParentId('map')
|
if (this.labelMode) {
|
||||||
|
this.queryCameraConditionPlace(this.mapSearchParam)
|
||||||
|
} else {
|
||||||
|
this.getCameraByParentId('map');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -420,11 +451,11 @@
|
||||||
// this.hiMapFun.mapFlyTo({lat:'36.017043',lng: '119.922772'}, 9)
|
// this.hiMapFun.mapFlyTo({lat:'36.017043',lng: '119.922772'}, 9)
|
||||||
let params = {
|
let params = {
|
||||||
regionId:
|
regionId:
|
||||||
this.mapSearchParam.parentId ||
|
this.mapSearchParam.regionId ||
|
||||||
'70be8c5b664f4bcf869d82f2e8335051',
|
'70be8c5b664f4bcf869d82f2e8335051',
|
||||||
name: this.mapSearchParam.cameraName || '',
|
name: this.mapSearchParam.cameraName || '',
|
||||||
longitude: this.mapSearchParam.gpsX || '',
|
longitude: this.mapSearchParam.gpsX || this.mapSearchParam.longitude || '',
|
||||||
latitude: this.mapSearchParam.gpsY || '',
|
latitude: this.mapSearchParam.gpsY || this.mapSearchParam.latitude || '',
|
||||||
radius: this.mapSearchParam.radius || '',
|
radius: this.mapSearchParam.radius || '',
|
||||||
type: this.mapSearchParam.type,
|
type: this.mapSearchParam.type,
|
||||||
borderPolygonList: this.mapSearchParam.borderPolygonList || [],
|
borderPolygonList: this.mapSearchParam.borderPolygonList || [],
|
||||||
|
@ -454,7 +485,7 @@
|
||||||
this.spinning = false;
|
this.spinning = false;
|
||||||
const byteArray = this.unzip(res.data.data)
|
const byteArray = this.unzip(res.data.data)
|
||||||
if(type=='map'){
|
if(type=='map'){
|
||||||
let params = this.mapSearchParam;
|
let params = JSON.parse(JSON.stringify(this.mapSearchParam));
|
||||||
// const byteArray = this.unzip(res.data.data)
|
// const byteArray = this.unzip(res.data.data)
|
||||||
params.dataSource = byteArray||0;
|
params.dataSource = byteArray||0;
|
||||||
params.total = res.data.count||0;
|
params.total = res.data.count||0;
|
||||||
|
@ -508,21 +539,19 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resetCircle(){
|
resetCircle(){
|
||||||
|
debugger
|
||||||
// 关闭圈选模式,清空圈选内容,重新上图
|
// 关闭圈选模式,清空圈选内容,重新上图
|
||||||
this.hiMapFun.removeLayerByLayerName('circlePloygonLayer')
|
this.hiMapFun.removeLayerByLayerName('circlePloygonLayer')
|
||||||
// 重置内容
|
// 重置内容
|
||||||
this.mapSearchParam.gpsX = ''
|
this.mapSearchParam.longitude = ''
|
||||||
this.mapSearchParam.gpsY = ''
|
this.mapSearchParam.latitude = ''
|
||||||
this.mapSearchParam.radius = ''
|
this.mapSearchParam.radius = ''
|
||||||
this.mapSearchParam.type = 0;
|
this.mapSearchParam.type = 0;
|
||||||
const params = {
|
if (this.labelMode) {
|
||||||
gpsX: this.mapSearchParam.gpsX,
|
this.queryCameraConditionPlace(this.mapSearchParam)
|
||||||
gpsY: this.mapSearchParam.gpsY,
|
} else {
|
||||||
radius: this.mapSearchParam.radius,
|
this.getCameraByParentId('map');
|
||||||
type: this.mapSearchParam.type
|
|
||||||
}
|
}
|
||||||
this.getCameraByParentId('map')
|
|
||||||
// mybus.emit('getListByMap', params);
|
|
||||||
},
|
},
|
||||||
resetArea(){
|
resetArea(){
|
||||||
// 关闭不规则形状模式模式,清空不规则形状模式内容,重新上图
|
// 关闭不规则形状模式模式,清空不规则形状模式内容,重新上图
|
||||||
|
@ -534,7 +563,12 @@
|
||||||
borderPolygonList: this.mapSearchParam.borderPolygonList,
|
borderPolygonList: this.mapSearchParam.borderPolygonList,
|
||||||
type: this.mapSearchParam.type
|
type: this.mapSearchParam.type
|
||||||
}
|
}
|
||||||
this.getCameraByParentId('map')
|
if (this.labelMode) {
|
||||||
|
this.queryCameraConditionPlace(params)
|
||||||
|
} else {
|
||||||
|
this.getCameraByParentId('map');
|
||||||
|
}
|
||||||
|
// this.getCameraByParentId('map')
|
||||||
// mybus.emit('getListByMap', params);
|
// mybus.emit('getListByMap', params);
|
||||||
},
|
},
|
||||||
//查询地址建议匹配
|
//查询地址建议匹配
|
||||||
|
|
Loading…
Reference in New Issue