|  |  | @ -40,7 +40,7 @@ | 
			
		
	
		
			
				
					|  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |           <template v-slot:right> | 
			
		
	
		
			
				
					|  |  |  |             <el-button v-permission="permission.del" icon="el-icon-delete" size="mini" :loading="crud.delAllLoading" :disabled="crud.selections.length === 0" @click="toDelete(crud.selections)">删除</el-button> | 
			
		
	
		
			
				
					|  |  |  |             <el-button v-permission="permission.sort" icon="el-icon-sort" size="mini" :loading="sortLoading" :disabled="!crud.selections[0]||!crud.selections[0].children || crud.selections[0].children.length <= 1" @click="toSort(crud.selections)">排序</el-button> | 
			
		
	
		
			
				
					|  |  |  |             <el-button v-permission="permission.sort" icon="el-icon-sort" size="mini" :loading="sortLoading" :disabled="brotherNodeNum.length <= 1" @click="toSort(crud.selections)">排序</el-button> | 
			
		
	
		
			
				
					|  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |         </crudOperation> | 
			
		
	
		
			
				
					|  |  |  |         <!--门类树状结构--> | 
			
		
	
	
		
			
				
					|  |  | @ -115,7 +115,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       selectedCategory: {}, | 
			
		
	
		
			
				
					|  |  |  |       deleteData: {}, | 
			
		
	
		
			
				
					|  |  |  |       activeIndex: 0, | 
			
		
	
		
			
				
					|  |  |  |       sortLoading: false | 
			
		
	
		
			
				
					|  |  |  |       sortLoading: false, | 
			
		
	
		
			
				
					|  |  |  |       brotherNodeNum: 0 | 
			
		
	
		
			
				
					|  |  |  |       // sortTableData: [] | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
	
		
			
				
					|  |  | @ -136,15 +137,17 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       return 'baseInfo' | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |     // , | 
			
		
	
		
			
				
					|  |  |  |     // brotherNodeNum: function() { | 
			
		
	
		
			
				
					|  |  |  |     //   const selectedNode = this.$refs.tree.getCurrentNode() | 
			
		
	
		
			
				
					|  |  |  |     //   if (selectedNode && selectedNode.pid && this.$refs.tree.getNode(selectedNode.pid)) { | 
			
		
	
		
			
				
					|  |  |  |     //     return this.$refs.tree.getNode(selectedNode.pid).childNodes.length | 
			
		
	
		
			
				
					|  |  |  |     //   } else { | 
			
		
	
		
			
				
					|  |  |  |     //     return 0 | 
			
		
	
		
			
				
					|  |  |  |     //   } | 
			
		
	
		
			
				
					|  |  |  |     // } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |     // 右边初始化数据是空 | 
			
		
	
		
			
				
					|  |  |  |     // [CRUD.HOOK.beforeRefresh]() { | 
			
		
	
		
			
				
					|  |  |  |     //   if (this.$refs.dictDetail) { | 
			
		
	
		
			
				
					|  |  |  |     //     this.$refs.dictDetail.query.id = '' | 
			
		
	
		
			
				
					|  |  |  |     //   } | 
			
		
	
		
			
				
					|  |  |  |     //   return true | 
			
		
	
		
			
				
					|  |  |  |     // }, | 
			
		
	
		
			
				
					|  |  |  |     // 逆归实现 获取指定元素 | 
			
		
	
		
			
				
					|  |  |  |     findNode(tree, func) { | 
			
		
	
		
			
				
					|  |  |  |       for (const node of tree) { | 
			
		
	
	
		
			
				
					|  |  | @ -199,6 +202,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         // 缓存当前的选中的 | 
			
		
	
		
			
				
					|  |  |  |         localStorage.setItem('currentCategoryKey', JSON.stringify(val)) | 
			
		
	
		
			
				
					|  |  |  |         this.brotherNodeNum = val.pid | 
			
		
	
		
			
				
					|  |  |  |         if (this.$refs.tree.getNode(val.pid) && this.$refs.tree.getNode(val.pid).childNodes) { | 
			
		
	
		
			
				
					|  |  |  |           this.brotherNodeNum = this.$refs.tree.getNode(val.pid).childNodes.length | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 新增 - 判断当前节点类型,卷内/文件不可新建 | 
			
		
	
	
		
			
				
					|  |  | @ -230,7 +237,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       done() | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     toSort(data) { | 
			
		
	
		
			
				
					|  |  |  |       this.$refs.sort.sortTableData = data[0].children | 
			
		
	
		
			
				
					|  |  |  |       this.$refs.sort.sortTableData = this.$refs.tree.getNode(data[0].pid).data.children | 
			
		
	
		
			
				
					|  |  |  |       this.$refs.sort.sortVisible = true | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     changeActiveTab(data) { | 
			
		
	
	
		
			
				
					|  |  | 
 |