| | |
| | | * @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-09-21 16:45:06 |
| | | * @FilePath: \Cloud-API-Demo-Web\src\pages\page-web\projects\project_list\list_page\list.vue |
| | | * @Description: |
| | | * |
| | |
| | | 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() |
| | |
| | | router.push({ name: ERouterName.WORKSPACE }) |
| | | store.commit('SET_POINT_LIST', []) |
| | | } |
| | | const cesium = cesiumOperation(global.$viewer) |
| | | console.log(global, 'global') |
| | | const goAdd = () => { |
| | | router.push({ name: ERouterName.ADD_PROJECT }) |
| | | store.commit('SET_POINT_LIST', []) |
| | |
| | | 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(() => { |