先提交一波
This commit is contained in:
39
project/oms/apps/develop/AppDataModel/AppDataModel.vue
Normal file
39
project/oms/apps/develop/AppDataModel/AppDataModel.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<section class="AppDataModel">
|
||||
<component :is="currentPage" v-bind="$props"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DmAdd from "./dmAdd";
|
||||
import DmList from "./dmList";
|
||||
|
||||
export default {
|
||||
name: "AppDataModel",
|
||||
components: {DmList, DmAdd},
|
||||
label: "数据模型",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object
|
||||
},
|
||||
computed: {
|
||||
currentPage() {
|
||||
let {hash} = this.$route
|
||||
return hash == "#add" ? DmAdd : DmList
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load("detailType")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppDataModel {
|
||||
height: 100%;
|
||||
|
||||
& > section {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user