[add] 同步前端代码
This commit is contained in:
		
							
								
								
									
										19
									
								
								plus-ui/src/utils/projectTeam.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								plus-ui/src/utils/projectTeam.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| import $cache from '@/plugins/cache'; | ||||
| //获取班组列表 | ||||
| import { listProjectTeam } from '@/api/project/projectTeam'; | ||||
| import { ProjectTeamVO } from '@/api/project/projectTeam/types'; | ||||
| export const getProjectTeam = async () => { | ||||
|   const { id } = $cache.local.getJSON('selectedProject'); | ||||
|   const res = await listProjectTeam({ | ||||
|     pageNum: 1, | ||||
|     pageSize: 20, | ||||
|     orderByColumn: 'createTime', | ||||
|     isAsc: 'desc', | ||||
|     projectId: id | ||||
|   }); | ||||
|   const list = res.rows.map((projectTeam: ProjectTeamVO) => ({ | ||||
|     value: projectTeam.id, | ||||
|     label: projectTeam.teamName | ||||
|   })); | ||||
|   $cache.local.setJSON('ProjectTeamList', list); | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user