36 lines
		
	
	
		
			576 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			576 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <script>
 | |
| import add from "./add.vue";
 | |
| import list from "./list.vue";
 | |
| 
 | |
| export default {
 | |
|   name: "AppDeathManage",
 | |
|   label: "死亡登记",
 | |
|   props: {
 | |
|     instance: Function,
 | |
|     dict: Object,
 | |
|     permissions: Function
 | |
|   },
 | |
|   computed: {
 | |
|     currentPage() {
 | |
|       let {hash} = this.$route
 | |
|       return hash == "#add" ? add : list
 | |
|     }
 | |
|   },
 | |
|   data() {
 | |
|     return {}
 | |
|   }
 | |
| }
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <section class="AppDeathManage">
 | |
|     <component :is="currentPage" v-bind="$props"/>
 | |
|   </section>
 | |
| </template>
 | |
| 
 | |
| <style scoped lang="scss">
 | |
| .AppDeathManage {
 | |
|   height: 100%;
 | |
| }
 | |
| </style>
 |