2021-03-16 16:59:21 +00:00
|
|
|
import request from '../utils/request.js'
|
|
|
|
|
|
|
|
export const getDocument = openid => {
|
|
|
|
return request({
|
|
|
|
url: "/document",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
openid
|
|
|
|
}
|
|
|
|
})
|
2021-03-21 17:38:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const searchDocument = (userRole, documentCode) => {
|
|
|
|
return request({
|
|
|
|
url: "/document/search",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
userRole,
|
|
|
|
documentCode
|
|
|
|
}
|
|
|
|
})
|
2021-03-22 04:01:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const bindDocument = (documentCode) => {
|
|
|
|
return request({
|
|
|
|
url: "/document/bind",
|
|
|
|
method: "post",
|
|
|
|
data: {
|
|
|
|
documentCode
|
|
|
|
}
|
|
|
|
})
|
2021-03-27 09:19:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const checkParents = () => {
|
|
|
|
return request({
|
|
|
|
url: "/document/parents/check",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getParents = () => {
|
|
|
|
return request({
|
|
|
|
url: "/document/parents",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const checkChildren = () => {
|
|
|
|
return request({
|
|
|
|
url: "/document/children/check",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getChildren = () => {
|
|
|
|
return request({
|
|
|
|
url: "/document/children",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const checkSupervisors = () => {
|
|
|
|
return request({
|
|
|
|
url: "/document/supervisors/check",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getSupervisors = () => {
|
|
|
|
return request({
|
|
|
|
url: "/document/supervisors",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
}
|
|
|
|
})
|
2021-04-01 14:16:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const searchStudents = (numbering) => {
|
|
|
|
return request({
|
|
|
|
url: "/document/students/search",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
numbering
|
|
|
|
}
|
|
|
|
})
|
2021-04-02 16:35:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const getUserProfileSupervisor = (documentId) => {
|
|
|
|
return request({
|
|
|
|
url: "/document/profile/supervisor",
|
|
|
|
method: "get",
|
|
|
|
data: {
|
|
|
|
documentId
|
|
|
|
}
|
|
|
|
})
|
2021-03-16 16:59:21 +00:00
|
|
|
}
|