Browse Source

字典编辑 提交

master
OUMYYE\Administrator 2 years ago
parent
commit
e95182b621
  1. 11
      src/layout/components/Aside.vue
  2. 1
      src/views/setting/dict/data/index.vue

11
src/layout/components/Aside.vue

@ -13,7 +13,7 @@
<span>{{ route.meta.title }}</span> <span>{{ route.meta.title }}</span>
</section> </section>
<el-button link size="small" v-if="route.children?.length"> <el-button link size="small" v-if="route.children?.length">
<template #icon> <template #icon >
<icon name="el-icon-ArrowDownBold" /> <icon name="el-icon-ArrowDownBold" />
</template> </template>
</el-button> </el-button>
@ -27,18 +27,22 @@
" "
:expand="route.meta.isExpand" :expand="route.meta.isExpand"
> >
<div v-for="item in route.children" >
<a <a
v-for="item in route.children"
:key="item.name" :key="item.name"
v-if="!item.meta.hidden"
@click.stop=" @click.stop="
router.push({ router.push({
name: item.name, name: item.name,
}) })
" "
class="flex center v-center" class="flex center v-center"
> >
<span>{{ item.meta.title }}</span>
<span v-if="!item.meta.hidden">{{ item.meta.title }} </span>
</a> </a>
</div>
</div> </div>
</a> </a>
</nav> </nav>
@ -74,6 +78,7 @@ function handleAsideCollapse() {
} }
function handleMenuClick(route) { function handleMenuClick(route) {
console.log(route)
if (route.meta.type === "C") { if (route.meta.type === "C") {

1
src/views/setting/dict/data/index.vue

@ -171,4 +171,5 @@ const handleDelete = async (ids: any[] | number) => {
} }
getLists() getLists()
</script> </script>

Loading…
Cancel
Save