mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
25 lines
1.1 KiB
JavaScript
25 lines
1.1 KiB
JavaScript
/*
|
|
* @Author: lixg lixg@dongwu-inc.com
|
|
* @Date: 2022-11-17 21:25:14
|
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
|
* @LastEditTime: 2023-01-30 11:32:33
|
|
* @FilePath: /fe-manage/src/api/indexWork.js
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
import http from "./config";
|
|
// 创建作业信息接口
|
|
export const createWorkTask = (obj) =>
|
|
http.post("/work/createWorkTask", obj);
|
|
// 删除作业信息接口
|
|
export const deleteWorkTask = (obj) => http.post("/work/deleteWorkTask", obj);
|
|
// 根据ID获取作业信息详情
|
|
export const queryWorkDetailById = (obj) => http.post('/work/queryWorkDetailById', obj, {
|
|
headers: {
|
|
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
|
|
}
|
|
});
|
|
// 修改作业信息接口
|
|
export const updateWorkTaskUsing = (obj) =>
|
|
http.post("/work/updateWorkTask", obj);
|
|
//查看作业
|
|
export const getWorkSubmitInfo = (workId, stuId) => http.get(`/admin/student/getWorkSubmitInfo?id=${workId}&stuId=${stuId}`) |