1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import request from '@/config/axios'
- // 导师学硕专硕名额设置 VO
- export interface supervisorSelectionSettingVO {
- id: number // 自增id
- projectId: number // 项目id
- supervisorId: number // 导师id
- academicSlots: number // 学硕名额
- professionalSlots: number // 专硕名额
- supervisorName :string//导师姓名
- userType:string;//导师类型
- occupiedAcademicSlots:number//已招的学硕名额
- occupiedProfessionalSlots:number,//已招的专硕名额
- agentProfessionalSlots : number,
- agentAcademicSlots: number,
- }
- // 导师学硕专硕名额设置 API
- export const supervisorSelectionSettingApi = {
- // 查询导师学硕专硕名额设置分页
- getSupervisorSelectionSettingPage: async (params: any) => {
- return await request.get({ url: `/system/supervisor-selection-setting/page`, params })
- },
- // 查询导师学硕专硕名额设置详情
- getSupervisorSelectionSetting: async (id: number) => {
- return await request.get({ url: `/system/supervisor-selection-setting/get?id=` + id })
- },
- // 新增导师学硕专硕名额设置
- createSupervisorSelectionSetting: async (data: supervisorSelectionSettingVO) => {
- return await request.post({ url: `/system/supervisor-selection-setting/create`, data })
- },
- // 修改导师学硕专硕名额设置
- updateSupervisorSelectionSetting: async (data: supervisorSelectionSettingVO) => {
- return await request.put({ url: `/system/supervisor-selection-setting/update`, data })
- },
- // 删除导师学硕专硕名额设置
- deleteSupervisorSelectionSetting: async (id: number) => {
- return await request.delete({ url: `/system/supervisor-selection-setting/delete?id=` + id })
- },
- // 导出导师学硕专硕名额设置 Excel
- exportSupervisorSelectionSetting: async (params) => {
- return await request.download({ url: `/system/supervisor-selection-setting/export-excel`, params })
- },
- // 导师这个项目的设置信息
- getSupervisorInfo: async (supervisorId: number, projectId: number) => {
- return await request.get({url: `/system/supervisor-selection-setting/getSupervisorInfo?supervisorId=${supervisorId}&projectId=${projectId}`});
- },
- // 获取登录导师的设置信息
- getLoginSupervisorInfo: async () => {
- return await request.get({url: `/system/supervisor-selection-setting/getLoginSupervisorInfo`});
- }
- }
|