55 lines
1.0 KiB
JavaScript
55 lines
1.0 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询问卷基本信息列表
|
|
export function listQuestion(query) {
|
|
return request({
|
|
url: '/system/question/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询问卷基本信息详细
|
|
export function getQuestion(id) {
|
|
return request({
|
|
url: '/system/question/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增问卷基本信息
|
|
export function addQuestion(data) {
|
|
return request({
|
|
url: '/system/question',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改问卷基本信息
|
|
export function updateQuestion(data) {
|
|
return request({
|
|
url: '/system/question',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除问卷基本信息
|
|
export function delQuestion(id) {
|
|
return request({
|
|
url: '/system/question/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
|
|
//科室接口
|
|
export function getDepartmentList(query) {
|
|
return request({
|
|
url: 'system/department/getDepartmentList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|