| | |
| | | import { useRouter, useRoute } from 'vue-router' |
| | | import { Search } from '@element-plus/icons-vue' |
| | | import { getTime } from '@/utils/getTime.js' |
| | | import { useRouterStore } from 'store/router' |
| | | const store = useRouterStore() |
| | | let router = useRouter() |
| | | let currentUrl = ref('statistics') |
| | | |
| | |
| | | path: '/layout/survey' |
| | | }, |
| | | { |
| | | menuName: '固定风险源', |
| | | path: '/layout/rs' |
| | | }, |
| | | { |
| | | menuName: '应急空间', |
| | | path: '/layout/space' |
| | | }, |
| | |
| | | path: '/layout/supplies' |
| | | }, |
| | | { |
| | | menuName: '应急设备', |
| | | path: '/layout/equipment' |
| | | }, |
| | | { |
| | | menuName: '三级防控', |
| | | path: '/layout/pac' |
| | | }, |
| | | { |
| | | menuName: '救援队伍', |
| | | path: '/layout/rt' |
| | | }, |
| | | ] |
| | | ) |
| | |
| | | |
| | | if (params.path) { |
| | | if (router.currentRoute.value.path == params.path) return |
| | | |
| | | if (params.path == '/layout/supplies' || params.path == '/layout/rt') { |
| | | store.setLoadSingle(true) |
| | | } else { |
| | | store.setLoadSingle(false) |
| | | } |
| | | router.push(params.path) |
| | | } else { |
| | | params.childrenFlag = !params.childrenFlag |