Files
dvcp_v2_webapp/project/oms/apps/AppCompany/AppCompany.vue
2022-05-16 10:53:21 +08:00

38 lines
690 B
Vue

<template>
<section class="AppCompany">
<keep-alive include="list">
<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>