提交对接的接口

This commit is contained in:
Digo
2025-12-26 01:26:50 +08:00
parent afe078dd1d
commit 6de279cc85
4 changed files with 12 additions and 5 deletions

View File

@@ -5,8 +5,8 @@ VITE_WS_BASE_URL ='ws://220.185.188.222:8055/api/gisWs'
# VITE_APP_BASE_URL = 'http://125.124.131.105:6811/api' # VITE_APP_BASE_URL = 'http://125.124.131.105:6811/api'
# 成彬本地 # 成彬本地
VITE_APP_BASE_URL = 'http://100.95.157.241:6061/api' # VITE_APP_BASE_URL = 'http://100.95.157.241:6061/api'
# VITE_APP_BASE_URL = 'http://100.95.236.218:6061/api' VITE_APP_BASE_URL = 'http://100.95.236.218:6061/api'
# VITE_APP_BASE_URL = 'http://119.167.138.11:6061/video-service' # VITE_APP_BASE_URL = 'http://119.167.138.11:6061/video-service'
# 智能体访问地址 # 智能体访问地址

View File

@@ -28,7 +28,8 @@ const useMapStore = defineStore(
}, },
dialog: { dialog: {
visible: false, visible: false,
type: '' // 弹窗类型 alarm/CCTV/UAV type: '', // 弹窗类型 alarm/CCTV/UAV
data: {}
}, },
// 无人机信息 // 无人机信息
uavs: { uavs: {
@@ -57,9 +58,10 @@ const useMapStore = defineStore(
this.hik.data = data this.hik.data = data
}, },
updateDialog(option) { updateDialog(option) {
const { visible = false, type = '' } = option const { visible = false, type = '', data } = option
this.dialog.visible = visible this.dialog.visible = visible
this.dialog.type = type this.dialog.type = type
this.dialog.data = data
}, },
updateUavData(option) { updateUavData(option) {
this.uavs.data = option this.uavs.data = option

View File

@@ -118,7 +118,7 @@ const toggle = (index) => {
const handle = (type, item) => { const handle = (type, item) => {
switch (type) { switch (type) {
case 'more': case 'more':
mapStore.updateDialog({ visible: true, type: 'alarm' }) mapStore.updateDialog({ visible: true, type: 'alarm', data: { isHasBoatName: current.value == 1 ? 1 : 2 } })
break break
default: default:
break break

View File

@@ -98,6 +98,9 @@ import { useRoute } from 'vue-router'
import DialogComponent from '@/components/Dialog/screen.vue' import DialogComponent from '@/components/Dialog/screen.vue'
import DetailComponent from './detail.vue' import DetailComponent from './detail.vue'
import useMapStore from '@/store/modules/map'
const mapStore = useMapStore()
const route = useRoute() const route = useRoute()
const illegalTypes = [ const illegalTypes = [
{ value: '未封舱预警', label: '未封舱预警', prop: 'warning' }, { value: '未封舱预警', label: '未封舱预警', prop: 'warning' },
@@ -523,6 +526,8 @@ const closeDetail = () => {
initData() initData()
} }
onMounted(() => { onMounted(() => {
model.isHasBoatName = mapStore.dialog.data.isHasBoatName
console.log(model)
if(Object.keys(route.query).length > 0 && route.query.type === 'alarm') { if(Object.keys(route.query).length > 0 && route.query.type === 'alarm') {
model.takeType = route.query.takeType model.takeType = route.query.takeType
illegalType.value = route.query.illegalType illegalType.value = route.query.illegalType