feat: 添加地区管理菜单
This commit is contained in:
parent
97be31a587
commit
d5fe1702d2
|
@ -92,8 +92,4 @@ export default [
|
||||||
component: () => import('@/views/media/Device/Channel/Share/index.vue')
|
component: () => import('@/views/media/Device/Channel/Share/index.vue')
|
||||||
},
|
},
|
||||||
AccountMenu,
|
AccountMenu,
|
||||||
{
|
]
|
||||||
path: '/system/region',
|
|
||||||
component: () => import('@/views/system/Region/index.vue')
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
|
@ -1413,7 +1413,7 @@ export default [
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
accessSupport: { text: "间接支持", value: "indirect" },
|
accessSupport: { text: "间接支持", value: "indirect" },
|
||||||
supportDataAccess: false,
|
supportDataAccess: false,
|
||||||
|
@ -4124,6 +4124,57 @@ export default [
|
||||||
accessSupport: { text: "不支持", value: "unsupported" },
|
accessSupport: { text: "不支持", value: "unsupported" },
|
||||||
supportDataAccess: false
|
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',
|
// code: 'system/License',
|
||||||
// name: 'License管理',
|
// name: 'License管理',
|
||||||
|
|
|
@ -62,6 +62,7 @@ const direction = [
|
||||||
'RadiusUpright',
|
'RadiusUpright',
|
||||||
'Fullscreen',
|
'Fullscreen',
|
||||||
'FullscreenExit',
|
'FullscreenExit',
|
||||||
|
'EnvironmentOutlined',
|
||||||
];
|
];
|
||||||
|
|
||||||
const suggestion = [
|
const suggestion = [
|
||||||
|
|
|
@ -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>
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<page-container>
|
<page-container>
|
||||||
|
<full-page>
|
||||||
<div class="region">
|
<div class="region">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<j-input-search
|
<j-input-search
|
||||||
|
@ -11,9 +12,10 @@
|
||||||
<LeftTree />
|
<LeftTree />
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
地图
|
<Map />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</full-page>
|
||||||
<Save v-if="visible" :data="current" @save="onSave" @close="onClose" />
|
<Save v-if="visible" :data="current" @save="onSave" @close="onClose" />
|
||||||
</page-container>
|
</page-container>
|
||||||
</template>
|
</template>
|
||||||
|
@ -21,6 +23,8 @@
|
||||||
<script setup lang="ts" name="RegionMange">
|
<script setup lang="ts" name="RegionMange">
|
||||||
import LeftTree from './LeftTree/index.vue'
|
import LeftTree from './LeftTree/index.vue'
|
||||||
import Save from './Save/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 searchValue = ref()
|
||||||
const visible = ref<boolean>(false)
|
const visible = ref<boolean>(false)
|
||||||
|
@ -48,10 +52,13 @@ const onClose = () => {
|
||||||
.region {
|
.region {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
|
height: 100%;
|
||||||
|
padding: 16px;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 18px 0;
|
margin: 18px 0;
|
||||||
|
|
Loading…
Reference in New Issue