提交对接的接口

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

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

View File

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