地图初始测试
This commit is contained in:
22
src/App.vue
22
src/App.vue
@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<template loading="true">
|
||||
<el-config-provider :locale="appStore.locale" :size="appStore.size">
|
||||
<router-view />
|
||||
<div>123</div>
|
||||
<div v-for="item in aarr">
|
||||
1<span v-for="itm in item.features">{{ itm.geometry.coordinates }}1</span>
|
||||
</div>
|
||||
<el-button type="primary" size="default" @click="a" class="ml-100" v-loading.fullscreen.lock="fullscreenLoading">123</el-button>
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
@ -9,7 +14,22 @@ import useSettingsStore from '@/store/modules/settings';
|
||||
import { handleThemeStyle } from '@/utils/theme';
|
||||
import useAppStore from '@/store/modules/app';
|
||||
import { getProjectTeam } from './utils/projectTeam';
|
||||
import request from '@/utils/request';
|
||||
const appStore = useAppStore();
|
||||
const fullscreenLoading = ref(false);
|
||||
const aarr = ref([]);
|
||||
const a = () => {
|
||||
fullscreenLoading.value = true;
|
||||
request({
|
||||
url: '/project/project/json',
|
||||
method: 'get'
|
||||
}).then((res) => {
|
||||
console.log(res);
|
||||
aarr.value = res.data.layers;
|
||||
|
||||
fullscreenLoading.value = false;
|
||||
});
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
|
Reference in New Issue
Block a user