46 lines
		
	
	
		
			880 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			880 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.setStorage([{
 | |
|       key: "systemType",
 | |
|       name: "系统类型",
 | |
|       values: [
 | |
|         {dictValue: "web", dictName: "web端"},
 | |
|         {dictValue: "mp", dictName: "小程序"},
 | |
|         {dictValue: "h5", dictName: "移动端H5"},
 | |
|       ]
 | |
|     }])
 | |
|     this.dict.load('yesOrNo')
 | |
|   }
 | |
| }
 | |
| </script>
 | |
| 
 | |
| <style lang="scss" scoped>
 | |
| .AppDeployCustom {
 | |
|   height: 100%;
 | |
| }
 | |
| </style>
 |