|  |  | @ -134,8 +134,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       type: Boolean, | 
			
		
	
		
			
				
					|  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     activeIndex: { | 
			
		
	
		
			
				
					|  |  |  |       type: String, | 
			
		
	
		
			
				
					|  |  |  |     activeItemIndex: { | 
			
		
	
		
			
				
					|  |  |  |       type: Number, | 
			
		
	
		
			
				
					|  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     isPublishLayer: { | 
			
		
	
		
			
				
					|  |  |  |       type: Boolean, | 
			
		
	
		
			
				
					|  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
	
		
			
				
					|  |  | @ -183,7 +187,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       videoNum: 0, | 
			
		
	
		
			
				
					|  |  |  |       previewVisible: false, // 预览 | 
			
		
	
		
			
				
					|  |  |  |       previewSrc: null, | 
			
		
	
		
			
				
					|  |  |  |       previewType: null | 
			
		
	
		
			
				
					|  |  |  |       previewType: null, | 
			
		
	
		
			
				
					|  |  |  |       materialTypeNot: null | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   computed: { | 
			
		
	
	
		
			
				
					|  |  | @ -197,30 +202,39 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         this.selectedListId = [] | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     activeIndex(newName, oldName) { | 
			
		
	
		
			
				
					|  |  |  |       this.tabIndex = newName | 
			
		
	
		
			
				
					|  |  |  |       this.$nextTick(() => { | 
			
		
	
		
			
				
					|  |  |  |         switch (this.tabIndex) { | 
			
		
	
		
			
				
					|  |  |  |           case '0': | 
			
		
	
		
			
				
					|  |  |  |             this.$refs.uploadMaterial.isActiveType = null | 
			
		
	
		
			
				
					|  |  |  |             break | 
			
		
	
		
			
				
					|  |  |  |           case '1': | 
			
		
	
		
			
				
					|  |  |  |             this.formatType = 1 | 
			
		
	
		
			
				
					|  |  |  |             this.$refs.uploadMaterial.isActiveType = 0 | 
			
		
	
		
			
				
					|  |  |  |             break | 
			
		
	
		
			
				
					|  |  |  |           case '2': | 
			
		
	
		
			
				
					|  |  |  |             this.formatType = 2 | 
			
		
	
		
			
				
					|  |  |  |             this.$refs.uploadMaterial.isActiveType = 1 | 
			
		
	
		
			
				
					|  |  |  |             break | 
			
		
	
		
			
				
					|  |  |  |           case '3': | 
			
		
	
		
			
				
					|  |  |  |             this.formatType = 2 | 
			
		
	
		
			
				
					|  |  |  |             this.$refs.uploadMaterial.isActiveType = 2 | 
			
		
	
		
			
				
					|  |  |  |             break | 
			
		
	
		
			
				
					|  |  |  |     activeItemIndex(val) { | 
			
		
	
		
			
				
					|  |  |  |       console.log(this.isPublishLayer) | 
			
		
	
		
			
				
					|  |  |  |       console.log(val) | 
			
		
	
		
			
				
					|  |  |  |       if (this.isPublishLayer) { | 
			
		
	
		
			
				
					|  |  |  |         if (val == 0) { | 
			
		
	
		
			
				
					|  |  |  |           this.tabType = null | 
			
		
	
		
			
				
					|  |  |  |           this.materialTypeNot = 2 | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |           this.tabType = val - 1 | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     '$route.query.folderTag'(Val) { | 
			
		
	
		
			
				
					|  |  |  |       // console.log(Val) | 
			
		
	
		
			
				
					|  |  |  |         this.getMaterialList() | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.tabIndex = val | 
			
		
	
		
			
				
					|  |  |  |         this.$nextTick(() => { | 
			
		
	
		
			
				
					|  |  |  |           switch (this.tabIndex) { | 
			
		
	
		
			
				
					|  |  |  |             case 0: | 
			
		
	
		
			
				
					|  |  |  |               this.$refs.uploadMaterial.isActiveType = null | 
			
		
	
		
			
				
					|  |  |  |               break | 
			
		
	
		
			
				
					|  |  |  |             case 1: | 
			
		
	
		
			
				
					|  |  |  |               this.formatType = 1 | 
			
		
	
		
			
				
					|  |  |  |               this.$refs.uploadMaterial.isActiveType = 0 | 
			
		
	
		
			
				
					|  |  |  |               break | 
			
		
	
		
			
				
					|  |  |  |             case 2: | 
			
		
	
		
			
				
					|  |  |  |               this.formatType = 2 | 
			
		
	
		
			
				
					|  |  |  |               this.$refs.uploadMaterial.isActiveType = 1 | 
			
		
	
		
			
				
					|  |  |  |               break | 
			
		
	
		
			
				
					|  |  |  |             case 3: | 
			
		
	
		
			
				
					|  |  |  |               this.formatType = 2 | 
			
		
	
		
			
				
					|  |  |  |               this.$refs.uploadMaterial.isActiveType = 2 | 
			
		
	
		
			
				
					|  |  |  |               break | 
			
		
	
		
			
				
					|  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   mounted: function() { | 
			
		
	
	
		
			
				
					|  |  | @ -265,7 +279,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           'folder_id': this.currentFolderId, | 
			
		
	
		
			
				
					|  |  |  |           'material_name': null, | 
			
		
	
		
			
				
					|  |  |  |           'material_type': this.tabType, | 
			
		
	
		
			
				
					|  |  |  |           'material_type_not': null, | 
			
		
	
		
			
				
					|  |  |  |           'material_type_not': this.materialTypeNot, | 
			
		
	
		
			
				
					|  |  |  |           'orga_id': this.orga_id | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
	
		
			
				
					|  |  | @ -276,7 +290,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           'folder_id': null, | 
			
		
	
		
			
				
					|  |  |  |           'material_name': null, | 
			
		
	
		
			
				
					|  |  |  |           'material_type': this.tabType, | 
			
		
	
		
			
				
					|  |  |  |           'material_type_not': null, | 
			
		
	
		
			
				
					|  |  |  |           'material_type_not': this.materialTypeNot, | 
			
		
	
		
			
				
					|  |  |  |           'orga_id': this.orga_id | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
	
		
			
				
					|  |  | 
 |