|  | @ -38,7 +38,7 @@ | 
		
	
		
			
				|  |  |           </template> |  |  |           </template> | 
		
	
		
			
				|  |  |           <template v-slot:right> |  |  |           <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.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].childMenus || crud.selections[0].childMenus.length <= 1" @click="toSort(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> | 
		
	
		
			
				|  |  |           </template> |  |  |           </template> | 
		
	
		
			
				|  |  |         </crudOperation> |  |  |         </crudOperation> | 
		
	
		
			
				|  |  |         <!--门类树状结构--> |  |  |         <!--门类树状结构--> | 
		
	
	
		
			
				|  | @ -76,7 +76,6 @@ import listBrowsing from './listBrowsing/index' | 
		
	
		
			
				|  |  | import orderingRule from './orderingRule/index' |  |  | import orderingRule from './orderingRule/index' | 
		
	
		
			
				|  |  | import fileNoFormat from './fileNoFormat/index' |  |  | import fileNoFormat from './fileNoFormat/index' | 
		
	
		
			
				|  |  | import crudOperation from '@crud/CRUD.operation' |  |  | import crudOperation from '@crud/CRUD.operation' | 
		
	
		
			
				|  |  | import { findSubsetById } from '@/api/archivesConfig/dictDetail' |  |  |  | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | export default { |  |  | export default { | 
		
	
		
			
				|  |  |   name: 'Category', |  |  |   name: 'Category', | 
		
	
	
		
			
				|  | @ -153,12 +152,12 @@ export default { | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     updateKeyChildren(data) { |  |  |     updateKeyChildren(data) { | 
		
	
		
			
				|  |  |       const oldDatas = this.$refs.tree.getCurrentNode().childMenus |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       const oldDatas = this.$refs.tree.getCurrentNode().children | 
		
	
		
			
				|  |  |       if (oldDatas) { |  |  |       if (oldDatas) { | 
		
	
		
			
				|  |  |         for (let i = 0; i < data.length; i++) { |  |  |         for (let i = 0; i < data.length; i++) { | 
		
	
		
			
				|  |  |           const oldData = oldDatas.find((d) => { return d.id === data[i].id }) |  |  |           const oldData = oldDatas.find((d) => { return d.id === data[i].id }) | 
		
	
		
			
				|  |  |           if (oldData) { |  |  |           if (oldData) { | 
		
	
		
			
				|  |  |             data[i].childMenus = oldData.childMenus |  |  |  | 
		
	
		
			
				|  |  |  |  |  |             data[i].children = oldData.children | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
	
		
			
				|  | @ -182,10 +181,10 @@ export default { | 
		
	
		
			
				|  |  |       done() |  |  |       done() | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     toSort(data) { |  |  |     toSort(data) { | 
		
	
		
			
				|  |  |       findSubsetById(data[0].id).then(res => { |  |  |  | 
		
	
		
			
				|  |  |         this.$refs.sort.sortTableData = res.content |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       // findSubsetById(data[0].id).then(res => { | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.sort.sortTableData = data[0].children | 
		
	
		
			
				|  |  |       this.$refs.sort.sortVisible = true |  |  |       this.$refs.sort.sortVisible = true | 
		
	
		
			
				|  |  |       }) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       // }) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     changeActiveTab(data) { |  |  |     changeActiveTab(data) { | 
		
	
		
			
				|  |  |       this.activeIndex = data |  |  |       this.activeIndex = data | 
		
	
	
		
			
				|  | 
 |