guoshilong
2023-11-13 54849757852f6ab40eb17afbd03d1d839b60a38d
src/pages/page-web/projects/project_list/list_page/list.vue
@@ -2,7 +2,7 @@
 * @Author: husq 931347610@qq.com
 * @Date: 2023-09-13 18:21:08
 * @LastEditors: husq 931347610@qq.com
 * @LastEditTime: 2023-09-13 19:24:39
 * @LastEditTime: 2023-10-08 14:35:54
 * @FilePath: \Cloud-API-Demo-Web\src\pages\page-web\projects\project_list\list_page\list.vue
 * @Description:
 *
@@ -50,6 +50,7 @@
import { useMyStore } from '/@/store'
import Select from '/@/components/Search/Select.vue'
import List from './components/ProjectList.vue'
import { cesiumOperation } from '/@/hooks/use-cesium-tsa'
const { appContext } = getCurrentInstance()
const global = appContext.config.globalProperties
const router = useRouter()
@@ -77,6 +78,7 @@
  router.push({ name: ERouterName.WORKSPACE })
  store.commit('SET_POINT_LIST', [])
}
const cesium = cesiumOperation()
const goAdd = () => {
  router.push({ name: ERouterName.ADD_PROJECT })
  store.commit('SET_POINT_LIST', [])
@@ -98,17 +100,8 @@
  const res = await getPlatform(params.value, 1, 20).catch(e => {
    spinning.value = false
  })
  console.log(res, '=====res=====')
  cardList.value = res.data.list
  const longitudeList = res.data.list.map((item: { id: string, longitude: any; latitude: any, projectName: string }) => {
    return {
      longitude: item.longitude,
      latitude: item.latitude,
      label: item.projectName,
      id: item.id
    }
  })
  // store.commit('SET_POINT_LIST', longitudeList)
  cesium.removeAllPoint()
  spinning.value = false
}
onMounted(() => {