修改 地图

This commit is contained in:
GGJ
2024-01-02 16:34:56 +08:00
parent 0ed9c950ee
commit acac255e5e
10 changed files with 355 additions and 142 deletions

View File

@@ -1,8 +1,8 @@
<template>
<component :is='config.layout.layoutMode'></component>
<component :is="config.layout.layoutMode"></component>
</template>
<script setup lang='ts'>
<script setup lang="ts">
import { reactive } from 'vue'
import { useConfig } from '@/stores/config'
import { useNavTabs } from '@/stores/navTabs'
@@ -50,10 +50,7 @@ onBeforeMount(() => {
})
const init = async () => {
await Promise.all([
getAreaList(),
dictDataCache()
]).then(res => {
await Promise.all([getAreaList(), dictDataCache()]).then(res => {
dictData.state.area = res[0].data
dictData.state.basic = res[1].data
})
@@ -177,7 +174,38 @@ const init = async () => {
component: '/src/views/Event-boot/Region/distribution.vue',
keepalive: 'Event-boot/Region/distribution',
extend: 'none',
children: []
children: [
{
id: 2,
pid: 3,
type: 'menu',
title: '区域概览',
name: 'Region/overview',
path: 'Region/overview',
icon: 'el-icon-Promotion',
menu_type: 'tab',
url: '',
component: '/src/views/dashboard/index.vue',
keepalive: 'Region/overview',
extend: 'none',
children: []
},
{
id: 1,
pid: 3,
type: 'menu',
title: '监测网分布',
name: 'Region/distribution',
path: 'Region/distribution',
icon: 'el-icon-Share',
menu_type: 'tab',
url: '',
component: '/src/views/Event-boot/Region/distribution.vue',
keepalive: 'Region/distribution',
extend: 'none',
children: []
}
]
}
]
},