diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/src/api/home/station/station.ts b/src/api/home/station/station.ts index ce798e9..19375f6 100644 --- a/src/api/home/station/station.ts +++ b/src/api/home/station/station.ts @@ -30,3 +30,11 @@ }, }) } +// 获取不同公司的设备(云台) +export function getDeptStation(data: any) { + return request({ + url: '/monitor/station/treeList', + method: 'post', + data, + }) +} diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/src/api/home/station/station.ts b/src/api/home/station/station.ts index ce798e9..19375f6 100644 --- a/src/api/home/station/station.ts +++ b/src/api/home/station/station.ts @@ -30,3 +30,11 @@ }, }) } +// 获取不同公司的设备(云台) +export function getDeptStation(data: any) { + return request({ + url: '/monitor/station/treeList', + method: 'post', + data, + }) +} diff --git a/src/assets/images/dir-marker.png b/src/assets/images/dir-marker.png new file mode 100644 index 0000000..9784f36 --- /dev/null +++ b/src/assets/images/dir-marker.png Binary files differ diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/src/api/home/station/station.ts b/src/api/home/station/station.ts index ce798e9..19375f6 100644 --- a/src/api/home/station/station.ts +++ b/src/api/home/station/station.ts @@ -30,3 +30,11 @@ }, }) } +// 获取不同公司的设备(云台) +export function getDeptStation(data: any) { + return request({ + url: '/monitor/station/treeList', + method: 'post', + data, + }) +} diff --git a/src/assets/images/dir-marker.png b/src/assets/images/dir-marker.png new file mode 100644 index 0000000..9784f36 --- /dev/null +++ b/src/assets/images/dir-marker.png Binary files differ diff --git a/src/assets/images/mark_bs.png b/src/assets/images/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/src/assets/images/mark_bs.png Binary files differ diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/src/api/home/station/station.ts b/src/api/home/station/station.ts index ce798e9..19375f6 100644 --- a/src/api/home/station/station.ts +++ b/src/api/home/station/station.ts @@ -30,3 +30,11 @@ }, }) } +// 获取不同公司的设备(云台) +export function getDeptStation(data: any) { + return request({ + url: '/monitor/station/treeList', + method: 'post', + data, + }) +} diff --git a/src/assets/images/dir-marker.png b/src/assets/images/dir-marker.png new file mode 100644 index 0000000..9784f36 --- /dev/null +++ b/src/assets/images/dir-marker.png Binary files differ diff --git a/src/assets/images/mark_bs.png b/src/assets/images/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/src/assets/images/mark_bs.png Binary files differ diff --git a/src/components/map/index.vue b/src/components/map/index.vue index 01fedde..d767c84 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -24,6 +24,7 @@ }) const $emits = defineEmits(['complete', 'marke', 'mapClick', 'markerClick', 'lineClick', 'polygonClick', 'massMarksClick']) const loading = ref(true) +const publicPath = window.location.href.split('#')[0] // 设置安全密钥 window._AMapSecurityConfig = { securityJsCode: localStorage.getItem('securityJsCode')!, // 后期需替换 @@ -58,8 +59,8 @@ const layer = ref() // 图层标识 const layerFlag = ref('normal') -const publicPath = import.meta.env.BASE_URL -console.log(publicPath, 'publicPath') +// const publicPath = import.meta.env.BASE_URL +// console.log(publicPath, 'publicPath') // -------------------------------------初始化地图-------------------------------------------------- const initMap = () => { AMapLoader.load({ @@ -249,6 +250,7 @@ // -------------------------------------点标记操作-------------------------------------------------- // 点标记(一般点标记)数组 const markerAllList = ref([]) +const markerHtml = `` // 添加点标记 (一般点标记) const addMarker = (data: any) => { /** @@ -260,7 +262,7 @@ var marker = new AMap.value.Marker({ position: data.position, // 将 html 传给 content - content: data.content, + content: data.content || markerHtml, // 以 icon 的 [center bottom] 为原点 offset: new AMap.value.Pixel(0, 0), }) @@ -294,7 +296,7 @@ // 添加折线 const addPolyline = (data: any) => { /** - * data + * data : {path: [],style: {}} * path: 折线点位数据 [[],[],[]] * style 折线样式 * style样式参考 diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/src/api/home/station/station.ts b/src/api/home/station/station.ts index ce798e9..19375f6 100644 --- a/src/api/home/station/station.ts +++ b/src/api/home/station/station.ts @@ -30,3 +30,11 @@ }, }) } +// 获取不同公司的设备(云台) +export function getDeptStation(data: any) { + return request({ + url: '/monitor/station/treeList', + method: 'post', + data, + }) +} diff --git a/src/assets/images/dir-marker.png b/src/assets/images/dir-marker.png new file mode 100644 index 0000000..9784f36 --- /dev/null +++ b/src/assets/images/dir-marker.png Binary files differ diff --git a/src/assets/images/mark_bs.png b/src/assets/images/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/src/assets/images/mark_bs.png Binary files differ diff --git a/src/components/map/index.vue b/src/components/map/index.vue index 01fedde..d767c84 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -24,6 +24,7 @@ }) const $emits = defineEmits(['complete', 'marke', 'mapClick', 'markerClick', 'lineClick', 'polygonClick', 'massMarksClick']) const loading = ref(true) +const publicPath = window.location.href.split('#')[0] // 设置安全密钥 window._AMapSecurityConfig = { securityJsCode: localStorage.getItem('securityJsCode')!, // 后期需替换 @@ -58,8 +59,8 @@ const layer = ref() // 图层标识 const layerFlag = ref('normal') -const publicPath = import.meta.env.BASE_URL -console.log(publicPath, 'publicPath') +// const publicPath = import.meta.env.BASE_URL +// console.log(publicPath, 'publicPath') // -------------------------------------初始化地图-------------------------------------------------- const initMap = () => { AMapLoader.load({ @@ -249,6 +250,7 @@ // -------------------------------------点标记操作-------------------------------------------------- // 点标记(一般点标记)数组 const markerAllList = ref([]) +const markerHtml = `` // 添加点标记 (一般点标记) const addMarker = (data: any) => { /** @@ -260,7 +262,7 @@ var marker = new AMap.value.Marker({ position: data.position, // 将 html 传给 content - content: data.content, + content: data.content || markerHtml, // 以 icon 的 [center bottom] 为原点 offset: new AMap.value.Pixel(0, 0), }) @@ -294,7 +296,7 @@ // 添加折线 const addPolyline = (data: any) => { /** - * data + * data : {path: [],style: {}} * path: 折线点位数据 [[],[],[]] * style 折线样式 * style样式参考 diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue index d58d515..5979a62 100644 --- a/src/views/home/device/device/components/showPosition.vue +++ b/src/views/home/device/device/components/showPosition.vue @@ -18,6 +18,7 @@ dialogFormVisible.value = true if (completeMapFlag.value === true) { mapRef.value.map.setCenter(location) + mapRef.value.removeMarker() mapRef.value.addMarker({ position: location, content: '', diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/src/api/home/station/station.ts b/src/api/home/station/station.ts index ce798e9..19375f6 100644 --- a/src/api/home/station/station.ts +++ b/src/api/home/station/station.ts @@ -30,3 +30,11 @@ }, }) } +// 获取不同公司的设备(云台) +export function getDeptStation(data: any) { + return request({ + url: '/monitor/station/treeList', + method: 'post', + data, + }) +} diff --git a/src/assets/images/dir-marker.png b/src/assets/images/dir-marker.png new file mode 100644 index 0000000..9784f36 --- /dev/null +++ b/src/assets/images/dir-marker.png Binary files differ diff --git a/src/assets/images/mark_bs.png b/src/assets/images/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/src/assets/images/mark_bs.png Binary files differ diff --git a/src/components/map/index.vue b/src/components/map/index.vue index 01fedde..d767c84 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -24,6 +24,7 @@ }) const $emits = defineEmits(['complete', 'marke', 'mapClick', 'markerClick', 'lineClick', 'polygonClick', 'massMarksClick']) const loading = ref(true) +const publicPath = window.location.href.split('#')[0] // 设置安全密钥 window._AMapSecurityConfig = { securityJsCode: localStorage.getItem('securityJsCode')!, // 后期需替换 @@ -58,8 +59,8 @@ const layer = ref() // 图层标识 const layerFlag = ref('normal') -const publicPath = import.meta.env.BASE_URL -console.log(publicPath, 'publicPath') +// const publicPath = import.meta.env.BASE_URL +// console.log(publicPath, 'publicPath') // -------------------------------------初始化地图-------------------------------------------------- const initMap = () => { AMapLoader.load({ @@ -249,6 +250,7 @@ // -------------------------------------点标记操作-------------------------------------------------- // 点标记(一般点标记)数组 const markerAllList = ref([]) +const markerHtml = `` // 添加点标记 (一般点标记) const addMarker = (data: any) => { /** @@ -260,7 +262,7 @@ var marker = new AMap.value.Marker({ position: data.position, // 将 html 传给 content - content: data.content, + content: data.content || markerHtml, // 以 icon 的 [center bottom] 为原点 offset: new AMap.value.Pixel(0, 0), }) @@ -294,7 +296,7 @@ // 添加折线 const addPolyline = (data: any) => { /** - * data + * data : {path: [],style: {}} * path: 折线点位数据 [[],[],[]] * style 折线样式 * style样式参考 diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue index d58d515..5979a62 100644 --- a/src/views/home/device/device/components/showPosition.vue +++ b/src/views/home/device/device/components/showPosition.vue @@ -18,6 +18,7 @@ dialogFormVisible.value = true if (completeMapFlag.value === true) { mapRef.value.map.setCenter(location) + mapRef.value.removeMarker() mapRef.value.addMarker({ position: location, content: '', diff --git a/src/views/home/operation/trajectory/detail.vue b/src/views/home/operation/trajectory/detail.vue new file mode 100644 index 0000000..6b31c9f --- /dev/null +++ b/src/views/home/operation/trajectory/detail.vue @@ -0,0 +1,191 @@ + + + + + + + + diff --git a/public/image/mark_bs.png b/public/image/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/image/mark_bs.png Binary files differ diff --git a/src/api/home/operation/trajectory.ts b/src/api/home/operation/trajectory.ts new file mode 100644 index 0000000..7316dc0 --- /dev/null +++ b/src/api/home/operation/trajectory.ts @@ -0,0 +1,21 @@ +/** + * 轨迹查询 + */ +import request from '@/api/index' + +// 基础列表 +export function getTrajectoryListPage(data: any) { + return request({ + url: `/system/alarmRecords/tracksList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function getTrajectoryDetail(data: any) { + return request({ + url: '/system/alarmRecords/viewPlace', + method: 'post', + data, + }) +} diff --git a/src/api/home/station/station.ts b/src/api/home/station/station.ts index ce798e9..19375f6 100644 --- a/src/api/home/station/station.ts +++ b/src/api/home/station/station.ts @@ -30,3 +30,11 @@ }, }) } +// 获取不同公司的设备(云台) +export function getDeptStation(data: any) { + return request({ + url: '/monitor/station/treeList', + method: 'post', + data, + }) +} diff --git a/src/assets/images/dir-marker.png b/src/assets/images/dir-marker.png new file mode 100644 index 0000000..9784f36 --- /dev/null +++ b/src/assets/images/dir-marker.png Binary files differ diff --git a/src/assets/images/mark_bs.png b/src/assets/images/mark_bs.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/src/assets/images/mark_bs.png Binary files differ diff --git a/src/components/map/index.vue b/src/components/map/index.vue index 01fedde..d767c84 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -24,6 +24,7 @@ }) const $emits = defineEmits(['complete', 'marke', 'mapClick', 'markerClick', 'lineClick', 'polygonClick', 'massMarksClick']) const loading = ref(true) +const publicPath = window.location.href.split('#')[0] // 设置安全密钥 window._AMapSecurityConfig = { securityJsCode: localStorage.getItem('securityJsCode')!, // 后期需替换 @@ -58,8 +59,8 @@ const layer = ref() // 图层标识 const layerFlag = ref('normal') -const publicPath = import.meta.env.BASE_URL -console.log(publicPath, 'publicPath') +// const publicPath = import.meta.env.BASE_URL +// console.log(publicPath, 'publicPath') // -------------------------------------初始化地图-------------------------------------------------- const initMap = () => { AMapLoader.load({ @@ -249,6 +250,7 @@ // -------------------------------------点标记操作-------------------------------------------------- // 点标记(一般点标记)数组 const markerAllList = ref([]) +const markerHtml = `` // 添加点标记 (一般点标记) const addMarker = (data: any) => { /** @@ -260,7 +262,7 @@ var marker = new AMap.value.Marker({ position: data.position, // 将 html 传给 content - content: data.content, + content: data.content || markerHtml, // 以 icon 的 [center bottom] 为原点 offset: new AMap.value.Pixel(0, 0), }) @@ -294,7 +296,7 @@ // 添加折线 const addPolyline = (data: any) => { /** - * data + * data : {path: [],style: {}} * path: 折线点位数据 [[],[],[]] * style 折线样式 * style样式参考 diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue index d58d515..5979a62 100644 --- a/src/views/home/device/device/components/showPosition.vue +++ b/src/views/home/device/device/components/showPosition.vue @@ -18,6 +18,7 @@ dialogFormVisible.value = true if (completeMapFlag.value === true) { mapRef.value.map.setCenter(location) + mapRef.value.removeMarker() mapRef.value.addMarker({ position: location, content: '', diff --git a/src/views/home/operation/trajectory/detail.vue b/src/views/home/operation/trajectory/detail.vue new file mode 100644 index 0000000..6b31c9f --- /dev/null +++ b/src/views/home/operation/trajectory/detail.vue @@ -0,0 +1,191 @@ + + + + + + + + diff --git a/src/views/home/operation/trajectory/index.vue b/src/views/home/operation/trajectory/index.vue index 0a2feb3..9312fd7 100644 --- a/src/views/home/operation/trajectory/index.vue +++ b/src/views/home/operation/trajectory/index.vue @@ -5,8 +5,11 @@ --> + + + + + + diff --git a/src/views/home/operation/trajectory/index.vue b/src/views/home/operation/trajectory/index.vue index 0a2feb3..9312fd7 100644 --- a/src/views/home/operation/trajectory/index.vue +++ b/src/views/home/operation/trajectory/index.vue @@ -5,8 +5,11 @@ --> + + + + + + diff --git a/src/views/home/operation/trajectory/index.vue b/src/views/home/operation/trajectory/index.vue index 0a2feb3..9312fd7 100644 --- a/src/views/home/operation/trajectory/index.vue +++ b/src/views/home/operation/trajectory/index.vue @@ -5,8 +5,11 @@ -->