2025-04-18 18:03:05 +08:00
|
|
|
<template loading="true">
|
2025-03-04 16:25:44 +08:00
|
|
|
<el-config-provider :locale="appStore.locale" :size="appStore.size">
|
|
|
|
<router-view />
|
2025-04-18 18:03:05 +08:00
|
|
|
<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>
|
2025-03-04 16:25:44 +08:00
|
|
|
</el-config-provider>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import useSettingsStore from '@/store/modules/settings';
|
|
|
|
import { handleThemeStyle } from '@/utils/theme';
|
|
|
|
import useAppStore from '@/store/modules/app';
|
2025-04-09 18:07:43 +08:00
|
|
|
import { getProjectTeam } from './utils/projectTeam';
|
2025-04-18 18:03:05 +08:00
|
|
|
import request from '@/utils/request';
|
2025-03-04 16:25:44 +08:00
|
|
|
const appStore = useAppStore();
|
2025-04-18 18:03:05 +08:00
|
|
|
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;
|
|
|
|
});
|
|
|
|
};
|
2025-03-04 16:25:44 +08:00
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
nextTick(() => {
|
|
|
|
// 初始化主题样式
|
|
|
|
handleThemeStyle(useSettingsStore().theme);
|
2025-04-09 18:07:43 +08:00
|
|
|
getProjectTeam();
|
2025-03-04 16:25:44 +08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|