feat(xumu): 添加数据字典
This commit is contained in:
32
project/xumu/AppDictionary/AppDictionary.vue
Normal file
32
project/xumu/AppDictionary/AppDictionary.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<section class="AppDictionary">
|
||||
<component :is="currentPage" v-bind="$props"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DictDetail from "./dictDetail";
|
||||
import DictList from "@project/xumu/AppDictionary/dictList.vue";
|
||||
|
||||
export default {
|
||||
name: "AppDictionary",
|
||||
label: "数据字典",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
computed: {
|
||||
currentPage() {
|
||||
let {hash} = this.$route
|
||||
return hash == "#add" ? DictDetail : DictList
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppDictionary {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user