xieb
2024-04-02 f67722eb3a674f70b56ca9f64fe8e6544bdca1d2
src/pages/page-web/projects/wayline.vue
@@ -16,7 +16,7 @@
                <SelectOutlined />
              </a-button>
            </a-upload>
            <a-button type="text" style="color: white" @click="addWaylineDialogShow = true">
            <a-button type="text" v-if="!isPointListOpen" style="color: white" @click="addWaylineDialogShow = true">
              <template #icon>
                <PlusOutlined />
              </template>
@@ -264,7 +264,6 @@
    pagination.page++
    getWaylines()
  }, 1000)
  console.log(workspaceId.value)
})
onUnmounted(() => {
@@ -275,9 +274,7 @@
  removeAllPoint()
  // removeById('clickBox')
  store.commit('SET_WAYLINE_INFO', {
    isShow: false,
    wayline: {},
    position: null,
    isShow: false
  })
})
@@ -353,9 +350,7 @@
    })
  // 清除选中点柱形和隐藏按钮
  store.commit('SET_WAYLINE_INFO', {
    isShow: false,
    wayline: {},
    position: null,
    isShow: false
  })
  // isPointListOpen.value = !isPointListOpen.value
}
@@ -395,9 +390,7 @@
function backPage () {
  isPointListOpen.value = false
  store.commit('SET_WAYLINE_INFO', {
    isShow: false,
    wayline: {},
    position: 0,
    isShow: false
  })
}
@@ -462,7 +455,9 @@
      createWayline(values).then((createRes: any) => {
        if (createRes) {
          store.commit('SET_WAYLINE_KMZPATH', '')
          isPointListOpen.value = !isPointListOpen.value
          isPointListOpen.value = true
          closeAddWaylineDialog()
          addWaylineDialogShow.value = false
        } else {
          message.error('创建航线失败,错误码:', createRes)
        }