合并幼儿信息和紧急联系人信息

This commit is contained in:
paidaxing444
2020-10-10 15:50:00 +08:00
parent bee07af3f3
commit 34268b85ca
10 changed files with 574 additions and 276 deletions

View File

@ -2,96 +2,96 @@ import request from '@/utils/request'
// 查询幼儿信息列表
export function listChild(query) {
return request({
url: '/benyi/child/list',
method: 'get',
params: query
})
return request({
url: '/benyi/child/list',
method: 'get',
params: query
})
}
// 查询幼儿信息列表
export function listByCheck(query) {
return request({
url: '/benyi/child/listByCheck',
method: 'get',
params: query
})
return request({
url: '/benyi/child/listByCheck',
method: 'get',
params: query
})
}
// 查询幼儿信息详细
export function getChild(id) {
return request({
url: '/benyi/child/' + id,
method: 'get'
})
return request({
url: '/benyi/child/' + id,
method: 'get'
})
}
// 查询维护幼儿详细
export function getChild_query(query) {
return request({
url: '/benyi/child/getInfo',
method: 'get',
params: query
})
return request({
url: '/benyi/child/getInfo',
method: 'get',
params: query
})
}
// 新增幼儿信息
export function addChild(data) {
return request({
url: '/benyi/child',
method: 'post',
data: data
})
return request({
url: '/benyi/child',
method: 'post',
data: data
})
}
// 修改幼儿信息
export function updateChild(data) {
return request({
url: '/benyi/child',
method: 'put',
data: data
})
return request({
url: '/benyi/child',
method: 'put',
data: data
})
}
// 修改幼儿信息
export function updateChild_tb(data, id) {
return request({
url: '/benyi/child/' + id,
method: 'put',
data: data
})
return request({
url: '/benyi/child/' + id,
method: 'put',
data: data
})
}
// 删除幼儿信息
export function delChild(id) {
return request({
url: '/benyi/child/' + id,
method: 'delete'
})
return request({
url: '/benyi/child/' + id,
method: 'delete'
})
}
// 导出幼儿信息
export function exportChild(query) {
return request({
url: '/benyi/child/export',
method: 'get',
params: query
})
return request({
url: '/benyi/child/export',
method: 'get',
params: query
})
}
// 查询班级信息列表
export function listChildCheck(query) {
return request({
url: '/benyi/child/checklist',
method: 'get',
params: query
})
return request({
url: '/benyi/child/checklist',
method: 'get',
params: query
})
}
// 下载用户导入模板
export function importTemplate() {
return request({
url: '/benyi/child/importTemplate',
method: 'get'
})
}
return request({
url: '/benyi/child/importTemplate',
method: 'get'
})
}

View File

@ -17,6 +17,15 @@ export function getContactpeople(id) {
})
}
// 查询幼儿紧急情况联系人详细
export function getContactpeopleByChildId(id) {
return request({
url: '/benyi/contactpeople/bychild/' + id,
method: 'get'
})
}
// 新增幼儿紧急情况联系人
export function addContactpeople(data) {
return request({