提交对接的接口
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user