| 
					
				 | 
			
			
				@@ -45,46 +45,6 @@ export const getAllBreadcrumbList = (menuList: any, result: { [key: string]: any 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return result 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const path = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  roles: ['/roles'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  users: ['/users'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  salary: ['/salary'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  records: ['/records'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  outStock: ['/outStock'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  inventory: ['/device', '/inStorage'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  sales: ['/contract', '/contractSale', '/verifyContract'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  salarys: ['/salaryCount', '/salaryMy'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  project: ['/projectFinance', '/project', '/myProject'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  workAttendance: ['/leave', '/myLeave', '/myOvertime', '/overtime', '/recordsFinance'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  storehouse: ['/list', '/classify', '/productionList', '/ioTNetworkCard', '/inventoryStatistics'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const permissionPath = (permission: string) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  if (path.roles.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/account/roles' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.users.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/account/users' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.salarys.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/salary' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.salary.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/salary/salary' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.workAttendance.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/workAttendance' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.records.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/workAttendance/records' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.storehouse.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/storehouse' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.inventory.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/storehouse/inventory' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.outStock.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/storehouse/outStock' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.sales.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/storehouse/sales' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else if (path.project.includes(permission)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return '/project' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const get_name = (name: string): string => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (/\//.test(name)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return name.split('/')[1] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -92,8 +52,6 @@ const get_name = (name: string): string => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const functionucFirst = (str: string) => str[0].toUpperCase() + str.slice(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 将扁平化的数组转换成带有meta component字段的新数组 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param menuList [] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -111,7 +69,7 @@ export const AddRouterMeta = (menuList: any[]) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       title: menu.T_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       isKeepAlive: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    menu.component = permissionPath(menu.T_permission) + '/' + functionucFirst(menu.name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    menu.component = menu.T_uri 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return menuList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |