feat: 添加地区管理菜单

This commit is contained in:
XieYongHong 2023-10-25 11:58:33 +08:00
parent 97be31a587
commit d5fe1702d2
6 changed files with 84 additions and 8 deletions

View File

@ -92,8 +92,4 @@ export default [
component: () => import('@/views/media/Device/Channel/Share/index.vue')
},
AccountMenu,
{
path: '/system/region',
component: () => import('@/views/system/Region/index.vue')
},
]

View File

@ -4124,6 +4124,57 @@ export default [
accessSupport: { text: "不支持", value: "unsupported" },
supportDataAccess: false
},
{
code: 'system/Region',
name: '地区管理',
owner: 'iot',
id: 'b69782873cc24be8165c6ad29233333',
sortIndex: 12,
url: '/system/region',
icon: 'FormOutlined',
showPage: ['region'],
permissions: [],
buttons: [
{
id: "add",
name: "新增",
permissions: [
{
permission: "region",
actions: [
"save"
]
}
]
},
{
id: "delete",
name: "删除",
permissions: [
{
permission: "region",
actions: [
"delete"
]
}
]
},
{
id: "update",
name: "编辑",
permissions: [
{
permission: "region",
actions: [
"save"
]
}
]
},
],
accessSupport: { text: "不支持", value: "unsupported" },
supportDataAccess: false
},
// {
// code: 'system/License',
// name: 'License管理',

View File

@ -62,6 +62,7 @@ const direction = [
'RadiusUpright',
'Fullscreen',
'FullscreenExit',
'EnvironmentOutlined',
];
const suggestion = [

View File

View File

@ -0,0 +1,21 @@
<template>
<AMapComponent>
</AMapComponent>
</template>
<script name="RegionMap" setup>
const props = defineProps({
path: {
type: Array,
default: () => []
}
})
const emit = defineEmits('')
</script>
<style scoped>
</style>

View File

@ -1,5 +1,6 @@
<template>
<page-container>
<full-page>
<div class="region">
<div class="left">
<j-input-search
@ -11,9 +12,10 @@
<LeftTree />
</div>
<div class="right">
地图
<Map />
</div>
</div>
</full-page>
<Save v-if="visible" :data="current" @save="onSave" @close="onClose" />
</page-container>
</template>
@ -21,6 +23,8 @@
<script setup lang="ts" name="RegionMange">
import LeftTree from './LeftTree/index.vue'
import Save from './Save/index.vue'
import Map from './MapTool/map.vue'
import FullPage from "components/Layout/FullPage.vue";
const searchValue = ref()
const visible = ref<boolean>(false)
@ -48,10 +52,13 @@ const onClose = () => {
.region {
display: flex;
gap: 24px;
height: 100%;
padding: 16px;
.left {
width: 300px;
.btn {
width: 100%;
margin: 18px 0;