guoshilong
2023-09-26 dc349bff332e75f8dfc948b4225c8e0f6581fc22
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 () {
@@ -192,7 +193,6 @@
function selectRoute (wayline: WaylineFile) {
  loading.value = true
  getWayLineFile(workspaceId.value, wayline.id).then(res => {
    console.log(res, 'res')
    store.commit('SET_SELECT_WAYLINE_INFO', wayline)
    initKmlFile(res.data)
  }).finally(() => {
@@ -279,7 +279,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