Files
dvcp_v2_webapp/project/oms/apps/AppCompany/AppCompany.vue
2022-05-10 11:02:57 +08:00

38 lines
675 B
Vue

<template>
<section class="AppCompany">
<keep-alive>
<component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/>
</keep-alive>
</section>
</template>
<script>
import List from "./components/List";
import Sta from "./components/Statistics";
export default {
name: "AppCompany",
label: "企业管理",
components: {List, Sta},
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentComponent() {
return this.$route.hash == "#sta" ? Sta : List
}
},
created() {
}
}
</script>
<style lang="scss" scoped>
.AppCompany {
height: 100%;
}
</style>