38 lines
690 B
Vue
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>
|