husq
2023-09-26 f0701f57ac7ee651c21fe97c9ccae269018bfcaf
修改获取workSpaceID的位置
3 files modified
9 ■■■■■ changed files
src/pages/page-web/projects/devices.vue 2 ●●● patch | view | raw | blame | history
src/pages/page-web/projects/implement.vue 2 ●●● patch | view | raw | blame | history
src/pages/page-web/projects/wayline.vue 5 ●●●●● patch | view | raw | blame | history
src/pages/page-web/projects/devices.vue
@@ -279,7 +279,7 @@
}
type Pagination = TableState['pagination']
const workspaceId = computed(() => store.state.common.projectId)
const workspaceId = computed(() => store.state.common.projectId || localStorage.getItem(ELocalStorageKey.WorkspaceId))
const editableData: UnwrapRef<Record<string, Device>> = reactive({})
const current = ref([EDeviceTypeName.Aircraft])
src/pages/page-web/projects/implement.vue
@@ -216,7 +216,7 @@
const route = useRoute()
const store = useMyStore()
const workspaceId = ref(localStorage.getItem(ELocalStorageKey.WorkspaceId)!)
const workspaceId = computed(() => store.state.common.projectId || localStorage.getItem(ELocalStorageKey.WorkspaceId))
const hmsVisible = new Map<string, boolean>()
const deviceInfo = computed(() => store.state.deviceState.deviceInfo)
const dockInfo = computed(() => store.state.deviceState.dockInfo)
src/pages/page-web/projects/wayline.vue
@@ -113,7 +113,7 @@
})
const root = getRoot()
const workspaceId = computed(() => store.state.common.projectId)
const workspaceId = computed(() => store.state.common.projectId || localStorage.getItem(ELocalStorageKey.WorkspaceId))
const deleteTip = ref(false)
const deleteWaylineId = ref<string>('')
const canRefresh = ref(true)
@@ -134,6 +134,7 @@
    pagination.page++
    getWaylines()
  }, 1000)
  console.log(workspaceId.value)
})
function getWaylines () {
@@ -279,7 +280,7 @@
    fileData.append('file', file, file.name)
    await importKmzFile(workspaceId.value, fileData).then((res) => {
      if (res.code === 0) {
        message.success(`${file.name} file uploaded successfully`)
        message.success(`${file.name} 文件上传成功`)
        canRefresh.value = true
        pagination.total = 0
        pagination.page = 1