add
This commit is contained in:
@@ -18,6 +18,15 @@ export function getTypeValue(type: string | number) {
|
||||
});
|
||||
}
|
||||
|
||||
// 批量获取字典类型值
|
||||
export function getDictsByTypes(types: string[]) {
|
||||
return request({
|
||||
url: '/admin/dict/item/typeList',
|
||||
method: 'post',
|
||||
data: types,
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchList(query: any) {
|
||||
return request({
|
||||
url: '/admin/dict/list',
|
||||
|
||||
@@ -87,6 +87,18 @@ export const putObj = (obj: any) => {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param obj
|
||||
*/
|
||||
export const examObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacherpaper/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
* @param obj
|
||||
|
||||
@@ -87,6 +87,18 @@ export const putObj = (obj: any) => {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param obj
|
||||
*/
|
||||
export const examObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteachingmaterial/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
* @param obj
|
||||
|
||||
@@ -75,6 +75,18 @@ export const putObj = (obj: any) => {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param obj
|
||||
*/
|
||||
export const examObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionaltopiclist/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
* @param obj
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalpartychange',
|
||||
url: '/professional/professionalpartychange/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,8 +47,11 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalpartychange/${id}`,
|
||||
url: `/professional/professionalpartychange/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -58,8 +61,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalpartychange/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalpartychange/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -69,8 +75,8 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalpartychange',
|
||||
method: 'put',
|
||||
url: '/professional/professionalpartychange/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalpoliticsstatus',
|
||||
url: '/professional/professionalpoliticsstatus/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,7 +47,7 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const addPoliticssStatus = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalpoliticsstatus',
|
||||
url: '/professional/professionalpoliticsstatus/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -59,8 +59,11 @@ export const addPoliticssStatus = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalpoliticsstatus/${id}`,
|
||||
url: `/professional/professionalpoliticsstatus/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -70,8 +73,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalpoliticsstatus/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalpoliticsstatus/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -81,8 +87,11 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const dePoObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalpoliticsstatus/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalpoliticsstatus/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -92,8 +101,8 @@ export const dePoObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalpoliticsstatus',
|
||||
method: 'put',
|
||||
url: '/professional/professionalpoliticsstatus/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
@@ -35,7 +35,7 @@ export function fetchList(query?: any) {
|
||||
*/
|
||||
export function addObj(obj?: any) {
|
||||
return request({
|
||||
url: '/professional/professionalqualificationrelation',
|
||||
url: '/professional/professionalqualificationrelation/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,7 +47,7 @@ export function addObj(obj?: any) {
|
||||
*/
|
||||
export function addQuaRelation(obj?: any) {
|
||||
return request({
|
||||
url: '/professional/professionalqualificationrelation',
|
||||
url: '/professional/professionalqualificationrelation/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -59,8 +59,11 @@ export function addQuaRelation(obj?: any) {
|
||||
*/
|
||||
export function getObj(id: string | number) {
|
||||
return request({
|
||||
url: '/professional/professionalqualificationrelation/' + id,
|
||||
url: '/professional/professionalqualificationrelation/getById',
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -70,8 +73,11 @@ export function getObj(id: string | number) {
|
||||
*/
|
||||
export function delObj(id: string | number) {
|
||||
return request({
|
||||
url: '/professional/professionalqualificationrelation/' + id,
|
||||
method: 'delete',
|
||||
url: '/professional/professionalqualificationrelation/deleteById',
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -81,8 +87,11 @@ export function delObj(id: string | number) {
|
||||
*/
|
||||
export function delQuaObj(id: string | number) {
|
||||
return request({
|
||||
url: '/professional/professionalqualificationrelation/' + id,
|
||||
method: 'delete',
|
||||
url: '/professional/professionalqualificationrelation/deleteById',
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -92,8 +101,20 @@ export function delQuaObj(id: string | number) {
|
||||
*/
|
||||
export function putObj(obj?: any) {
|
||||
return request({
|
||||
url: '/professional/professionalqualificationrelation',
|
||||
method: 'put',
|
||||
url: '/professional/professionalqualificationrelation/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核对象
|
||||
* @param obj 对象数据
|
||||
*/
|
||||
export function examObj(obj?: any) {
|
||||
return request({
|
||||
url: '/professional/professionalqualificationrelation/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalsocial',
|
||||
url: '/professional/professionalsocial/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,7 +47,7 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const addSocialObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalsocial',
|
||||
url: '/professional/professionalsocial/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -59,8 +59,11 @@ export const addSocialObj = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalsocial/${id}`,
|
||||
url: `/professional/professionalsocial/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -70,8 +73,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalsocial/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalsocial/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -81,8 +87,11 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const delSocialObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalsocial/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalsocial/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -92,8 +101,8 @@ export const delSocialObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalsocial',
|
||||
method: 'put',
|
||||
url: '/professional/professionalsocial/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacheracademicrelation',
|
||||
url: '/professional/professionalteacheracademicrelation/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,7 +47,7 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const addAcadeRelation = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacheracademicrelation',
|
||||
url: '/professional/professionalteacheracademicrelation/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -59,8 +59,11 @@ export const addAcadeRelation = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteacheracademicrelation/${id}`,
|
||||
url: `/professional/professionalteacheracademicrelation/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -70,8 +73,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteacheracademicrelation/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalteacheracademicrelation/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -81,8 +87,11 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const delEduObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteacheracademicrelation/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalteacheracademicrelation/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -92,8 +101,20 @@ export const delEduObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacheracademicrelation',
|
||||
method: 'put',
|
||||
url: '/professional/professionalteacheracademicrelation/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param obj
|
||||
*/
|
||||
export const examObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacheracademicrelation/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteachercertificaterelation',
|
||||
url: '/professional/professionalteachercertificaterelation/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,8 +47,11 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteachercertificaterelation/${id}`,
|
||||
url: `/professional/professionalteachercertificaterelation/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -58,8 +61,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteachercertificaterelation/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalteachercertificaterelation/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -69,8 +75,20 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteachercertificaterelation',
|
||||
method: 'put',
|
||||
url: '/professional/professionalteachercertificaterelation/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param obj
|
||||
*/
|
||||
export const examObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteachercertificaterelation/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacherhonor',
|
||||
url: '/professional/professionalteacherhonor/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,8 +47,11 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteacherhonor/${id}`,
|
||||
url: `/professional/professionalteacherhonor/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -58,8 +61,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteacherhonor/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalteacherhonor/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -69,8 +75,20 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacherhonor',
|
||||
method: 'put',
|
||||
url: '/professional/professionalteacherhonor/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* @param obj
|
||||
*/
|
||||
export const examObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacherhonor/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacherstationchange',
|
||||
url: '/professional/professionalteacherstationchange/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,8 +47,11 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteacherstationchange/${id}`,
|
||||
url: `/professional/professionalteacherstationchange/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -58,8 +61,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionalteacherstationchange/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionalteacherstationchange/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -69,8 +75,8 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionalteacherstationchange',
|
||||
method: 'put',
|
||||
url: '/professional/professionalteacherstationchange/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionaltitlerelation',
|
||||
url: '/professional/professionaltitlerelation/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,7 +47,7 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const addTitleRelationObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionaltitlerelation',
|
||||
url: '/professional/professionaltitlerelation/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -59,8 +59,11 @@ export const addTitleRelationObj = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionaltitlerelation/${id}`,
|
||||
url: `/professional/professionaltitlerelation/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -70,8 +73,22 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionaltitlerelation/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionaltitlerelation/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**审核
|
||||
* @param obj
|
||||
*/
|
||||
export const examObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionaltitlerelation/exam',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -81,8 +98,11 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const delTitleObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/professionaltitlerelation/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/professionaltitlerelation/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -92,8 +112,8 @@ export const delTitleObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/professionaltitlerelation',
|
||||
method: 'put',
|
||||
url: '/professional/professionaltitlerelation/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ export const fetchList = (query?: any) => {
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/teacherbase',
|
||||
url: '/professional/teacherbase/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
@@ -47,8 +47,11 @@ export const addObj = (obj: any) => {
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/teacherbase/${id}`,
|
||||
url: `/professional/teacherbase/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -58,8 +61,11 @@ export const getObj = (id: string | number) => {
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/teacherbase/${id}`,
|
||||
method: 'delete',
|
||||
url: `/professional/teacherbase/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -69,8 +75,8 @@ export const delObj = (id: string | number) => {
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/teacherbase',
|
||||
method: 'put',
|
||||
url: '/professional/teacherbase/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
@@ -336,3 +342,4 @@ export const search = (data: string | number) => {
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
95
src/api/professional/stayschool/outercompany.ts
Normal file
95
src/api/professional/stayschool/outercompany.ts
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, cyweb All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the pig4cloud.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
*/
|
||||
|
||||
import request from '/@/utils/request';
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
* @param query
|
||||
*/
|
||||
export const fetchList = (query?: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompany/page',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param obj
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompany/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取详情
|
||||
* @param id
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/outercompany/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param id
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/outercompany/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 更新
|
||||
* @param obj
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompany/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取列表(不分页)
|
||||
* @param query
|
||||
*/
|
||||
export const getList = (query?: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompany/getList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
};
|
||||
|
||||
131
src/api/professional/stayschool/outercompanyemployee.ts
Normal file
131
src/api/professional/stayschool/outercompanyemployee.ts
Normal file
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, cyweb All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the pig4cloud.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
*/
|
||||
|
||||
import request from '/@/utils/request';
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
* @param query
|
||||
*/
|
||||
export const fetchList = (query?: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompanyemployee/page',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param obj
|
||||
*/
|
||||
export const addObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompanyemployee/add',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 保存第二步
|
||||
* @param obj
|
||||
*/
|
||||
export const saveSecond = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompanyemployee/saveSecond',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取详情
|
||||
* @param id
|
||||
*/
|
||||
export const getObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/outercompanyemployee/getById`,
|
||||
method: 'get',
|
||||
params: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param id
|
||||
*/
|
||||
export const delObj = (id: string | number) => {
|
||||
return request({
|
||||
url: `/professional/outercompanyemployee/deleteById`,
|
||||
method: 'post',
|
||||
data: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 更新
|
||||
* @param obj
|
||||
*/
|
||||
export const putObj = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompanyemployee/edit',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param obj
|
||||
*/
|
||||
export const batchDel = (obj: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompanyemployee/batchDel',
|
||||
method: 'post',
|
||||
data: obj,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 重置密码
|
||||
* @param data
|
||||
*/
|
||||
export const resetPassWord = (data: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompanyemployee/resetPassWord',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 远程模糊检索
|
||||
* @param params
|
||||
*/
|
||||
export const remoteInfo = (params?: any) => {
|
||||
return request({
|
||||
url: '/professional/outercompanyemployee/remoteInfo',
|
||||
method: 'get',
|
||||
params: params,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user