diff --git a/src/api/recruit/recruitprestudent.ts b/src/api/recruit/recruitprestudent.ts index b9f8677..4546144 100644 --- a/src/api/recruit/recruitprestudent.ts +++ b/src/api/recruit/recruitprestudent.ts @@ -30,7 +30,7 @@ export const fetchListStatic = (query?: any) => { */ export const addObj = (obj: any) => { return request({ - url: '/recruit/recruitprestudent', + url: '/recruit/recruitprestudent/add', method: 'post', data: obj, }); @@ -42,7 +42,7 @@ export const addObj = (obj: any) => { */ export const addObjStu = (obj: any) => { return request({ - url: '/recruit/recruitprestudent/saveStuData', + url: '/recruit/recruitprestudent/add', method: 'post', data: obj, }); @@ -54,8 +54,9 @@ export const addObjStu = (obj: any) => { */ export const getObj = (id: string | number) => { return request({ - url: `/recruit/recruitprestudent/${id}`, + url: `/recruit/recruitprestudent/getById`, method: 'get', + params: {id:id} }); }; @@ -65,8 +66,9 @@ export const getObj = (id: string | number) => { */ export const delObj = (id: string | number) => { return request({ - url: `/recruit/recruitprestudent/${id}`, - method: 'delete', + url: `/recruit/recruitprestudent/deleteById`, + method: 'post', + data:{id:id} }); }; @@ -76,8 +78,8 @@ export const delObj = (id: string | number) => { */ export const putObj = (obj: any) => { return request({ - url: '/recruit/recruitprestudent', - method: 'put', + url: '/recruit/recruitprestudent/edit', + method: 'post', data: obj, }); }; @@ -89,7 +91,7 @@ export const putObj = (obj: any) => { export const sureDJ = (obj: any) => { return request({ url: '/recruit/recruitprestudent/sureDJ', - method: 'put', + method: 'post', data: obj, }); }; diff --git a/src/api/recruit/recruitstudentplancorrectscoreconfig.ts b/src/api/recruit/recruitstudentplancorrectscoreconfig.ts index f3cb553..26aa1bc 100644 --- a/src/api/recruit/recruitstudentplancorrectscoreconfig.ts +++ b/src/api/recruit/recruitstudentplancorrectscoreconfig.ts @@ -30,7 +30,7 @@ export const list = (query?: any) => { */ export const addObj = (obj: any) => { return request({ - url: '/recruit/recruitstudentplancorrectscoreconfig', + url: '/recruit/recruitstudentplancorrectscoreconfig/add', method: 'post', data: obj, }); @@ -42,8 +42,9 @@ export const addObj = (obj: any) => { */ export const getObj = (id: string | number) => { return request({ - url: `/recruit/recruitstudentplancorrectscoreconfig/${id}`, + url: `/recruit/recruitstudentplancorrectscoreconfig/getById`, method: 'get', + params:{id:id} }); }; @@ -53,8 +54,9 @@ export const getObj = (id: string | number) => { */ export const delObj = (id: string | number) => { return request({ - url: `/recruit/recruitstudentplancorrectscoreconfig/${id}`, - method: 'delete', + url: `/recruit/recruitstudentplancorrectscoreconfig/deleteById`, + method: 'post', + data:{id:id} }); }; @@ -64,8 +66,8 @@ export const delObj = (id: string | number) => { */ export const putObj = (obj: any) => { return request({ - url: '/recruit/recruitstudentplancorrectscoreconfig', - method: 'put', + url: '/recruit/recruitstudentplancorrectscoreconfig/edit', + method: 'post', data: obj, }); }; diff --git a/src/api/recruit/recruitstudentplangroup.ts b/src/api/recruit/recruitstudentplangroup.ts index 6caee76..03cf67b 100644 --- a/src/api/recruit/recruitstudentplangroup.ts +++ b/src/api/recruit/recruitstudentplangroup.ts @@ -71,3 +71,15 @@ export const putObj = (obj: any) => { data: obj, }); }; + +/** + * 更新 + * @param obj + */ +export const editQuickField = (obj: any) => { + return request({ + url: '/recruit/recruitstudentplangroup/editQuickField', + method: 'post', + data: obj, + }); +}; diff --git a/src/views/recruit/recruitplanmajor/index.vue b/src/views/recruit/recruitplanmajor/index.vue index ff81657..39a8e3d 100644 --- a/src/views/recruit/recruitplanmajor/index.vue +++ b/src/views/recruit/recruitplanmajor/index.vue @@ -290,7 +290,8 @@ const init = async () => { // 修改开关 const changeSm = async (row: any) => { try { - await editQuickField(row) + let parmas={id:row.id,sm:row.sm} + await editQuickField(parmas) message.success('修改成功') } catch (error: any) { message.error(error.msg || '修改失败') diff --git a/src/views/recruit/recruitplanmajor/majorGroupByDept.vue b/src/views/recruit/recruitplanmajor/majorGroupByDept.vue index a55afb9..77e5103 100644 --- a/src/views/recruit/recruitplanmajor/majorGroupByDept.vue +++ b/src/views/recruit/recruitplanmajor/majorGroupByDept.vue @@ -1,272 +1,257 @@ - - - - - - - - - - - - - {{ scope.row.majorName+' || '+scope.row.majorCode+' || '+scope.row.learnYear+' 年制'}} - - - - - - - + + + + + + + + + + + + + {{ scope.row.majorName + ' || ' + scope.row.majorCode + ' || ' + scope.row.learnYear + ' 年制' }} + + + + + + + - - - - - + + + + + + + + + + + + - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + diff --git a/src/views/recruit/recruitprestudent/index.vue b/src/views/recruit/recruitprestudent/index.vue index 7233621..0e7e010 100644 --- a/src/views/recruit/recruitprestudent/index.vue +++ b/src/views/recruit/recruitprestudent/index.vue @@ -131,7 +131,7 @@ type="success" link icon="CircleCheck" - @click="sureDJ(scope.row.id)" + @click="handllSureDj(scope.row.id)" > 确认对接 @@ -330,7 +330,7 @@ const addOrUpdateHandle = (id?: string | null) => { } // 确认对接 -const sureDJ = async (id: string) => { +const handllSureDj = async (id: string) => { try { await messageBox.confirm('是否确认已对接?请谨慎操作') await sureDJ({ id, isDj: '1' }) diff --git a/src/views/recruit/recruitstudentplangroup/index.vue b/src/views/recruit/recruitstudentplangroup/index.vue index 9a1a75a..42afa14 100644 --- a/src/views/recruit/recruitstudentplangroup/index.vue +++ b/src/views/recruit/recruitstudentplangroup/index.vue @@ -16,372 +16,365 @@ --> - - - - - - - - - 查询 - 重置 - - + + + + + + + + + 查询 + 重置 + + - - - - 新 增 - - - 审核人员 - - + + + + 新 增 + + + 审核人员 + + - - - - - - - - - {{ dateFormat(scope.row.startDate, 'YYYY-mm-dd') + ' 至 ' + dateFormat(scope.row.endDate, 'YYYY-mm-dd') }} - - - - - - - - {{ dateFormat(scope.row.maintenanceStartDate, 'YYYY-mm-dd') + ' 至 ' + dateFormat(scope.row.maintenanceEndDate, 'YYYY-mm-dd') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - 调整 - - - 专业调整 - - - 删除 - - - - + + + + + + + + + {{ + dateFormat(scope.row.startDate, 'YYYY-mm-dd') + ' 至 ' + dateFormat(scope.row.endDate, 'YYYY-mm-dd') + }} + + + + + + + + {{ + dateFormat(scope.row.maintenanceStartDate, 'YYYY-mm-dd') + ' 至 ' + dateFormat(scope.row.maintenanceEndDate, 'YYYY-mm-dd') + }} + + + + + + + + + + + + + + + + + + + + + + + + + + + 调整 + + + 专业调整 + + + 删除 + + + + - - + + - - - - - - - - - - - + + + + + + + + + + +