Files
dvcp_v2_webapp/packages/core/AppDictionary/AppDictionary.vue

33 lines
599 B
Vue
Raw Normal View History

2021-12-14 18:36:19 +08:00
<template>
<section class="AppDictionary">
<component :is="currentPage" v-bind="$props"/>
2021-12-14 18:36:19 +08:00
</section>
</template>
<script>
import DictDetail from "./dictDetail";
import DictList from "@project/xumu/AppDictionary/dictList.vue";
2021-12-14 18:36:19 +08:00
export default {
name: "AppDictionary",
label: "数据字典",
props: {
instance: Function,
dict: Object,
2021-12-14 18:36:19 +08:00
permissions: Function
},
computed: {
currentPage() {
let {hash} = this.$route
return hash == "#add" ? DictDetail : DictList
2021-12-14 18:36:19 +08:00
}
},
}
</script>
<style lang="scss" scoped>
.AppDictionary {
height: 100%;
}
</style>