import request from '@/utils/request'
|
|
// 获取专家列表
|
export function getExpertsList(params) {
|
return request({
|
url: '/system/expert_info/list',
|
method: 'get',
|
params: params
|
})
|
}
|
|
// 获取专家列表
|
export function delExpert(id) {
|
return request({
|
url: '/expert/info/del/'+id,
|
method: 'get'
|
})
|
}
|
|
// 提交表单
|
export function addExpertInfo(data) {
|
return request({
|
url: '/system/expert_info/add',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 提交表单
|
export function modExpertInfo(data) {
|
return request({
|
url: '/system/expert_info/mod',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 上传
|
export function uploadFile(data) {
|
return request({
|
url: '/system/common/uploadFile',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 分页获取专家类型
|
export function getExpertTypes() {
|
return request({
|
url: '/system/expert_classify/tree',
|
method: 'get',
|
})
|
}
|
|
// 添加专家类型
|
export function addType(data) {
|
return request({
|
url: '/system/expert_classify/add',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改专家类型
|
export function updateType(data) {
|
return request({
|
url: '/system/expert_classify/mod',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除专家类型
|
export function delExpertType(id) {
|
return request({
|
url: '/system/expert_classify/del/'+id,
|
method: 'delete'
|
})
|
}
|
|
// 根据id获取专家信息
|
export function getInfo(id) {
|
return request({
|
url: '/system/expert_info/detail/'+id,
|
method: 'get'
|
})
|
}
|
|
// 评定
|
export function changeApprove(data) {
|
return request({
|
url: '/system/expert_info/changeApprove',
|
method: 'post',
|
data: data
|
})
|
}
|