37 lines
		
	
	
		
			659 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			659 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <div class="AppEquipmentManage">
 | |
|     <keep-alive :include="['List']">
 | |
|       <component :is="currentPage" v-bind="$props"/>
 | |
|     </keep-alive>
 | |
|   </div>
 | |
| </template>
 | |
| 
 | |
| <script>
 | |
| import List from './components/List'
 | |
| import taskList from './components/taskList'
 | |
| 
 | |
| export default {
 | |
|   label: '广播设备管理',
 | |
|   name: 'AppEquipmentManage',
 | |
|   props: {
 | |
|     instance: Function,
 | |
|     dict: Object,
 | |
|   },
 | |
|   computed: {
 | |
|     currentPage: v => v.$route.hash == "#taskList" ? taskList : List
 | |
|   },
 | |
|   components: {
 | |
|     List,
 | |
|     taskList,
 | |
|   }
 | |
| }
 | |
| </script>
 | |
| 
 | |
| <style lang="scss">
 | |
| .AppEquipmentManage {
 | |
|   height: 100%;
 | |
|   background: #f3f6f9;
 | |
|   overflow: auto;
 | |
| }
 | |
| </style>
 |