You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
174 lines
4.0 KiB
174 lines
4.0 KiB
import request from '@/utils/request'
|
|
import qs from 'qs'
|
|
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
|
let tokens = window.sessionStorage.getItem('token');
|
|
//获取菜单 分页列表
|
|
export function pageList(data) {
|
|
return request({
|
|
url: 'v1/sysinfo/selectInfoList',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
//保存 资源信息
|
|
export function saveSourcesInfo(data) {
|
|
return request({
|
|
url: 'v1/sysinfo/saveInfo',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
// 修改 保存 资源信息
|
|
export function putSourcesInfo(data) {
|
|
return request({
|
|
url: 'v1/sysinfo/alterInfo',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
// 修改登录密码
|
|
export function alterPassword(data) {
|
|
return request({
|
|
url: 'v1/sysuser/alterPassword',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
export function addStudentScore(data) {
|
|
return request({
|
|
url: 'v1/sysstudentscore/addStudentScore',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
export function saveSysInfoShip(data) {
|
|
return request({
|
|
url: 'v1/sysinfoship/saveSysInfoShip',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
export function selectTeacherDownStudent(data) {
|
|
return request({
|
|
url: 'v1/sysinfoship/selectTeacherDownStudent/' + data.infoId,
|
|
method: 'get',
|
|
data: qs.stringify(data),
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
//根据sid 删除单个 资源信息
|
|
export function delSources(data) {
|
|
return request({
|
|
url: 'v1/sysinfo/deleteInfo/' + data.sid,
|
|
method: 'get',
|
|
data: qs.stringify(data),
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
export function deleteSysInfoShip(data) {
|
|
return request({
|
|
url: 'v1/sysinfoship/deleteSysInfoShip/' + data.sid,
|
|
method: 'get',
|
|
data: qs.stringify(data),
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
//根据sid 获取单个 资源信息
|
|
export function getSourcesInfo(data) {
|
|
return request({
|
|
url: '/system/v1/sources/' + data.sid,
|
|
method: 'GET',
|
|
data: qs.stringify(data)
|
|
})
|
|
}
|
|
|
|
|
|
// 获取个人信息
|
|
export function UserInfo(data) {
|
|
return request({
|
|
url: `v1/sysuser/selectUserInfo/${data.sid}`,
|
|
method: 'post',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
}
|
|
})
|
|
}
|
|
|
|
export function alterInfoUser(data) {
|
|
return request({
|
|
url: 'v1/sysuser/alterInfoUser',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
|
|
// 查看成绩
|
|
export function selectScore(data) {
|
|
return request({
|
|
url: 'v1/sysscore/selectScore',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
export function save(data) {
|
|
return request({
|
|
url: 'v1/sysscore/save',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
export function update(data) {
|
|
return request({
|
|
url: 'v1/sysscore/update',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
export function alterStudentScore(data) {
|
|
return request({
|
|
url: 'v1/sysstudentscore/alterStudentScore',
|
|
method: 'POST',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json',
|
|
'token':tokens
|
|
}
|
|
})
|
|
}
|
|
|