Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
chenchenzai 2022-11-21 20:32:54 +08:00
commit 4259e48c70
3 changed files with 124 additions and 116 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23 * @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-08-25 11:16:44 * @LastEditTime: 2022-11-21 19:21:42
* @Description: 地图静态参数配置 * @Description: 地图静态参数配置
*/ */
var _mapConfig = {} var _mapConfig = {}
@ -27,27 +27,6 @@ var _mapConfig = {}
zoom: 5, zoom: 5,
}, },
}, },
qingdao: {
DATABASE_TYPE: 'Highgo',
POI_TYPE: 'Supermap', // POI 'Supermap''Amap''Survey_Institute'
ISERVER_URL: '15.2.21.238:8090',
WORKPLACE_NAME: 'HIMAP-HIGHGO',
MAP_NAME: 'QDMAP',
DATASOURCE_NAME: 'HISENSE_map',
ATMOSPHERE_URL: 'http://15.2.21.151:9015/service-main',
CURRENT_MAP_OPTIONS: {
// crs: CRS_4490,
center: [36.17, 120.13],
maxZoom: 18,
minZoom: 0,
zoom: 10,
},
BDMAP_CONFIG: {
location: 'qingdao',
_initpos: {
point: [120.392795, 36.072854],
zoom: 2,
},
_keyframes: [ _keyframes: [
[121.6011191295479, 36.73422934263509], [121.6011191295479, 36.73422934263509],
[119.83371870221472, 36.082854], [119.83371870221472, 36.082854],
@ -56,13 +35,15 @@ var _mapConfig = {}
}, },
MAP_VENDOR: 'Supermap', // Supermap bdmap 3dbdmap MAP_VENDOR: 'Supermap', // Supermap bdmap 3dbdmap
TITLE_LAYER: { TITLE_LAYER: {
mapUrl: 'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F', mapUrl:
'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F',
type: 'tiled', type: 'tiled',
name: '矢量', name: '矢量',
icon: 'vector_map.png', icon: 'vector_map.png',
}, },
TITLE_LAYER_REMOTE: { TITLE_LAYER_REMOTE: {
mapUrl: 'http://q3d.qd.gov.cn:8195/portalproxy/vw6bffpy/TileServer/arcgis/rest/services/normal_2021_4490Arcgis/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F', mapUrl:
'http://q3d.qd.gov.cn:8195/portalproxy/vw6bffpy/TileServer/arcgis/rest/services/normal_2021_4490Arcgis/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F',
type: 'tiled', type: 'tiled',
name: '矢量', name: '矢量',
icon: 'vector_map.png', icon: 'vector_map.png',
@ -70,7 +51,8 @@ var _mapConfig = {}
// TITLE_LAYER_REMOTE: { mapUrl: 'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F', type: 'tiled', name: '', icon: 'vector_map.png' }, // TITLE_LAYER_REMOTE: { mapUrl: 'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F', type: 'tiled', name: '', icon: 'vector_map.png' },
// TITLE_LAYER_REMOTE: { mapUrl: 'http://15.2.21.238:8090/iserver/services/map-ugcv5-QingdaoRemoteImageMap/rest/maps/QingdaoRemoteImageMap', type: 'remote', name: '', icon: 'satellite_map.png' }, // TITLE_LAYER_REMOTE: { mapUrl: 'http://15.2.21.238:8090/iserver/services/map-ugcv5-QingdaoRemoteImageMap/rest/maps/QingdaoRemoteImageMap', type: 'remote', name: '', icon: 'satellite_map.png' },
TITLE_LAYER_DARK: { TITLE_LAYER_DARK: {
mapUrl: 'http://15.2.21.238:8090/iserver/services/map-ugcv5-shandong/rest/maps/shandong', mapUrl:
'http://15.2.21.238:8090/iserver/services/map-ugcv5-shandong/rest/maps/shandong',
type: 'dark', type: 'dark',
name: '其他', name: '其他',
icon: 'other_map.png', icon: 'other_map.png',
@ -79,22 +61,26 @@ var _mapConfig = {}
} }
var MAPCONFIGMIXTRE = { var MAPCONFIGMIXTRE = {
CURRENT_SERVER_NAME: CONFIGKEY, CURRENT_SERVER_NAME: CONFIGKEY,
BUFFER_URL: 'http://' + BUFFER_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/spatialAnalysis-' + '/iserver/services/spatialAnalysis-' +
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME + BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +
'/restjsr/spatialanalyst', '/restjsr/spatialanalyst',
QUERY_URL: 'http://' + QUERY_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/map-HIMAP_HIGHGO/rest/maps/' + '/iserver/services/map-HIMAP_HIGHGO/rest/maps/' +
BASECONFIGITEM[CONFIGKEY].MAP_NAME, BASECONFIGITEM[CONFIGKEY].MAP_NAME,
// QUERY_URL: 'http://' + BASECONFIGITEM[CONFIGKEY].ISERVER_URL + '/iserver/services/data-HIMAP_HIGHGO/rest/data/datasources/HISENSE_himap', // QUERY_URL: 'http://' + BASECONFIGITEM[CONFIGKEY].ISERVER_URL + '/iserver/services/data-HIMAP_HIGHGO/rest/data/datasources/HISENSE_himap',
DYNAMIC_ROAD_URL: 'http://' + DYNAMIC_ROAD_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/spatialAnalysis-' + '/iserver/services/spatialAnalysis-' +
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME + BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +
'/restjsr/spatialanalyst', '/restjsr/spatialanalyst',
DYNMIC_URL: 'http://' + DYNMIC_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/map-' + '/iserver/services/map-' +
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME + BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +
@ -103,16 +89,20 @@ var _mapConfig = {}
// //
// NETWORK_URL: 'http://' + BASECONFIGITEM[CONFIGKEY].ISERVER_URL + '/iserver/services/transportationAnalyst-' + BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME + '/rest/networkanalyst/BuildNetwork_2@' + BASECONFIGITEM[CONFIGKEY].DATASOURCE_NAME, // NETWORK_URL: 'http://' + BASECONFIGITEM[CONFIGKEY].ISERVER_URL + '/iserver/services/transportationAnalyst-' + BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME + '/rest/networkanalyst/BuildNetwork_2@' + BASECONFIGITEM[CONFIGKEY].DATASOURCE_NAME,
// //
NETWORK_URL: 'http://' + NETWORK_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/transportationAnalyst-road/rest/networkanalyst/BuildNetwork_2@road', '/iserver/services/transportationAnalyst-road/rest/networkanalyst/BuildNetwork_2@road',
PLOTTING_URL: 'http://' + PLOTTING_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/plot-JY/rest/plot/', '/iserver/services/plot-JY/rest/plot/',
POI_URL: 'http://' + POI_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', '/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address',
EDITORDATA_URL: 'http://' + EDITORDATA_URL:
'http://' +
BASECONFIGITEM[CONFIGKEY].ISERVER_URL + BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
'/iserver/services/data-' + '/iserver/services/data-' +
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME + BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +

View File

@ -152,11 +152,17 @@ export default defineComponent({
} }
// //
const tabClick = (id) => { const tabClick = (id) => {
if(chooseId.value === id){
chooseId.value = ''
mybus.emit('clearLeftSelect')
}else{
chooseId.value = id chooseId.value = id
let placeTypeCode =[] let placeTypeCode =[]
placeTypeCode.push(id) placeTypeCode.push(id)
mybus.emit('CameraConditionPlaceType', placeTypeCode) mybus.emit('CameraConditionPlaceType', placeTypeCode)
} }
}
// //
const init = async () => { const init = async () => {
treeData.value = [] treeData.value = []
@ -196,14 +202,15 @@ export default defineComponent({
chooseId.value='' chooseId.value=''
}) })
const onSelect = async (item, val, child) => { const onSelect = async (item, val, child) => {
// if(selectId.value===val.id){
// selectId.value=''
//   mybus.emit('clearLeftSelect')
// }else{
let res = {} let res = {}
if (whoShow1.value && !whoShow1.value.itShowXiHaiAn) {
res = await getCameraAllOrgan({ parentId: val.id })
} else {
 mybus.emit('getCameraByParentId', val.id)  mybus.emit('getCameraByParentId', val.id)
// 西
res = await getCameraInfoByAreaId({ areaId: val.id }) res = await getCameraInfoByAreaId({ areaId: val.id })
}
treeData.value.map((treeDataItem, index) => { treeData.value.map((treeDataItem, index) => {
if (item.id == treeDataItem.id) { if (item.id == treeDataItem.id) {
treeData.value[index].children.map((childItem, childIndex) => { treeData.value[index].children.map((childItem, childIndex) => {
@ -215,11 +222,20 @@ export default defineComponent({
} }
}) })
if (child) { if (child) {
if(selectId.value===child.id){
selectId.value=''
  mybus.emit('clearLeftSelect')
}else{
selectId.value = child.id selectId.value = child.id
} }
}
// }
} }
watch(selectId, (newVal) => { watch(selectId, (newVal) => {
if (newVal == '') { if (newVal == '') {
mybus.emit('getCameraByParentId', '') mybus.emit('getCameraByParentId', '')
mybus.emit('getListByParentId', '') mybus.emit('getListByParentId', '')
@ -244,14 +260,15 @@ export default defineComponent({
}) })
} }
const showDown = (item, val) => { const showDown = (item, val) => {
selectId.value = val.id selectId.value = val.id
console.log('item---showDown--------->', item)
console.log('val----showDown-------->', val)
if (item.children) { if (item.children) {
val.show = !val.show val.show = !val.show
// //
if (!val.show) { if (!val.show) {
selectId.value = '' selectId.value = ''
mybus.emit('clearLeftSelect')
} }
} }
} }
@ -286,8 +303,9 @@ export default defineComponent({
font-size: 18px; font-size: 18px;
color: #7e7676; color: #7e7676;
margin-bottom: 10px; margin-bottom: 10px;
padding-left: 10px; padding-left: 6px;
border-left: 6px solid #1296db; border-left: 6px solid #1296db;
margin-left: 10px;
} }
.glgkmk { .glgkmk {
cursor: pointer; cursor: pointer;
@ -310,6 +328,7 @@ export default defineComponent({
} }
.active { .active {
color: #0058e1; color: #0058e1;
font-weight: bold;
} }
} }
@ -317,15 +336,15 @@ export default defineComponent({
color: #0058e1; color: #0058e1;
} }
.nav { .nav {
margin-bottom: 13px;
display: flex; display: flex;
justify-content: space-around; justify-content: space-between;
margin-right: 20px;
align-items: center; align-items: center;
font-size: 18px; font-size: 18px;
font-family: 'Alibaba PuHuiTi'; font-family: 'Alibaba PuHuiTi';
color: #000000; color: #000000;
line-height: 0.32rem; line-height: 0.32rem;
margin-bottom: 0.1rem; margin-bottom: 24px;
.photo { .photo {
display: inline-block; display: inline-block;

View File

@ -396,7 +396,6 @@ import { ElMessage } from 'element-plus'
}) })
}, },
getCameraByParentId(type) { getCameraByParentId(type) {
debugger
if (!this.whoShow1.itShowXiHaiAn) { if (!this.whoShow1.itShowXiHaiAn) {
getCameraByParentId(this.mapSearchParam).then((res) => { getCameraByParentId(this.mapSearchParam).then((res) => {
console.log('根据parent查询摄像头', res.data.data) console.log('根据parent查询摄像头', res.data.data)