Files
dvcp_v2_webapp/project/oms/apps/AppDeployCustom/AppDeployCustom.vue
2022-07-01 18:26:52 +08:00

37 lines
630 B
Vue

<template>
<section class="AppDeployCustom">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<script>
import List from "./list";
import Add from "./add";
export default {
name: "AppDeployCustom",
components: {Add, List},
label: "定制项目",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentPage() {
let {hash} = this.$route
return hash == "#add" ? Add : List
}
},
created() {
this.dict.load('yesOrNo','systemType')
}
}
</script>
<style lang="scss" scoped>
.AppDeployCustom {
height: 100%;
}
</style>