|
|
@@ -54,7 +54,7 @@ import VectorContext from 'ol/render/VectorContext' |
|
|
|
import * as control from 'ol/control' |
|
|
|
import { styleList } from '../tools/style.js' |
|
|
|
import { getTrackList, getLineList } from '@/api/task/index.js' |
|
|
|
|
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
// 视频组件 |
|
|
|
import VideoPlayer from '@/components/VideoPlayer/index.vue' |
|
|
|
export default defineComponent({ |
|
|
@@ -77,6 +77,7 @@ export default defineComponent({ |
|
|
|
}, |
|
|
|
setup(props, { emit }) { |
|
|
|
const originRef = ref() |
|
|
|
const router = useRouter() |
|
|
|
const data = reactive({ |
|
|
|
mapData: null, |
|
|
|
view: null, |
|
|
@@ -147,7 +148,13 @@ export default defineComponent({ |
|
|
|
|
|
|
|
function handleDrawerColse() { |
|
|
|
emit('update:visible', false) |
|
|
|
// 如果是从首页进来的,关闭之后会跳转到首页,首页传进来的会传递一个参数为type==1 |
|
|
|
// 如果是从首页进来的,关闭之后会跳转到首页,首页传进来的会传递一个参数为type==true |
|
|
|
if (props.data.toIndexRoute) { |
|
|
|
router.push({ |
|
|
|
path: '/dashboard' |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* 获取轨迹数据 */ |