|  | @@ -45,8 +45,6 @@ const OrganizationModal: React.FC<OrganizationModalProps> = ({
 | 
	
		
			
				|  |  |      organizationList: []
 | 
	
		
			
				|  |  |    })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  const { TreeNode } = TreeSelect
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |    const titleTypeEunm = {
 | 
	
		
			
				|  |  |      1: {
 | 
	
		
			
				|  |  |        key: 'ADD',
 | 
	
	
		
			
				|  | @@ -149,15 +147,15 @@ const OrganizationModal: React.FC<OrganizationModalProps> = ({
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |    const renderTreeNodes = data =>
 | 
	
		
			
				|  |  |      data.map(item => {
 | 
	
		
			
				|  |  | -      if (item.ID === delName) {
 | 
	
		
			
				|  |  | -        console.log('我是ID')
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  |        const newItem = { ...item }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -      if (newItem.children) {
 | 
	
		
			
				|  |  | -        newItem.disabled = true
 | 
	
		
			
				|  |  | -        newItem.children = renderTreeNodes(newItem.children)
 | 
	
		
			
				|  |  | -        return newItem
 | 
	
		
			
				|  |  | +      if (item.ID === delName) {
 | 
	
		
			
				|  |  | +        // console.log('我是ID')
 | 
	
		
			
				|  |  | +        const newItemData = newItem
 | 
	
		
			
				|  |  | +        if (newItemData.children) {
 | 
	
		
			
				|  |  | +          newItemData.disabled = true
 | 
	
		
			
				|  |  | +          newItemData.children = renderTreeNodes(newItemData.children)
 | 
	
		
			
				|  |  | +          return newItemData
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        return newItem
 | 
	
		
			
				|  |  |      })
 | 
	
	
		
			
				|  | @@ -207,9 +205,9 @@ const OrganizationModal: React.FC<OrganizationModalProps> = ({
 | 
	
		
			
				|  |  |                        placeholder="请选择目标架构"
 | 
	
		
			
				|  |  |                        treeDefaultExpandAll
 | 
	
		
			
				|  |  |                        treeNodeFilterProp="label"
 | 
	
		
			
				|  |  | -                      onChange={(value, labelList, extra) => onNodeChange(value, labelList, extra)}>
 | 
	
		
			
				|  |  | -                      {renderTreeNodes(treeSource)}
 | 
	
		
			
				|  |  | -                    </TreeSelect>
 | 
	
		
			
				|  |  | +                      onChange={(value, labelList, extra) => onNodeChange(value, labelList, extra)}
 | 
	
		
			
				|  |  | +                      treeData={renderTreeNodes(treeSource)}
 | 
	
		
			
				|  |  | +                    />
 | 
	
		
			
				|  |  |                    )}
 | 
	
		
			
				|  |  |                    {/* <TreeSelect
 | 
	
		
			
				|  |  |                      style={{ width: '100%' }}
 |