| | |
| | | <script setup lang="ts"> |
| | | import { DashOutlined, UserOutlined, ExportOutlined, ExclamationCircleOutlined } from '@ant-design/icons-vue' |
| | | import { defineEmits, defineProps, createVNode } from 'vue' |
| | | import { ERouterName } from '/@/types/index' |
| | | import { ELocalStorageKey, ERouterName } from '/@/types/index' |
| | | import { status, projectCard } from './data' |
| | | import { del, edit } from '/@/api/project-page' |
| | | import { delPlatformInfo } from '/@/api/manage' |
| | |
| | | |
| | | const goDetail = (item: any) => { |
| | | store.commit('SET_PROJECT_ID', item.workspace_id) |
| | | localStorage.setItem(ELocalStorageKey.WorkspaceId, item.workspace_id) |
| | | store.commit('SET_POINT_LIST', []) |
| | | router.push({ |
| | | name: ERouterName.WORKSPACE, |
| | |
| | | |
| | | const root = getRoot() |
| | | const store = useMyStore() |
| | | |
| | | const workspace_id = computed(() => store.state.common.projectId) |
| | | const messageHandler = async (payload: any) => { |
| | | if (!payload) { |
| | | return |
| | |
| | | break |
| | | } |
| | | case EBizCode.DockOsd: { |
| | | // if (payload.data.sn === workspace_id.value) { |
| | | store.commit('SET_DOCK_INFO', payload.data) |
| | | // console.log(payload.data, 'data') |
| | | // } |
| | | break |
| | | } |
| | | case EBizCode.MapElementCreate: { |
| | |
| | | } |
| | | }) |
| | | state.layerBaseInfo = obj |
| | | console.log('state.layerBaseInfo', state.layerBaseInfo) |
| | | }, |
| | | getLayerInfo ({ state }, id:string) { |
| | | return state.layerBaseInfo[id] |
| | |
| | | map, |
| | | common |
| | | }, |
| | | plugins: [createPersistedState()] |
| | | plugins: [createPersistedState({ |
| | | storage: window.sessionStorage, |
| | | key: 'drone-client', |
| | | paths: ['map', 'common'], |
| | | })] |
| | | } |
| | | |
| | | const rootStore = createStore(storeOptions) |