| | |
| | | import { getPage as getProjectPage } from '/@/api/project-page' |
| | | import { PlusCircleOutlined, MonitorOutlined } from '@ant-design/icons-vue' |
| | | import { projectCard } from './components/data' |
| | | import { useMyStore } from '/@/store' |
| | | import Select from '/@/components/Search/Select.vue' |
| | | import List from './components/ProjectList.vue' |
| | | const router = useRouter() |
| | | const store = useMyStore() |
| | | const sort = ref('createTime') |
| | | const searchInput = ref(false) |
| | | interface paramsFaca { |
| | |
| | | spinning.value = false |
| | | }) |
| | | cardList.value = res.data.records |
| | | const longitudeList = res.data.records.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) |
| | | console.log(store.state.map.pointList, '=============') |
| | | spinning.value = false |
| | | } |
| | | onMounted(() => { |