This commit is contained in:
kclf
2022-12-05 23:17:37 +08:00
parent 54d6528569
commit 721bd80e52
3 changed files with 58 additions and 38 deletions

View File

@@ -45,29 +45,39 @@ export const fileUp = (data) =>
headers: { "Content-Type": "multipart/form-data" },
});
//删除测评信息
export const deleteEvaluationById = (obj) => http.post('/evaluation/deleteEvaluationById', { params: obj }, {
header: {
'token': '123',
}
})
//上传文件
export const baseVoteupload = (data) =>
http.post("/vote/baseVoteupload", data, {
headers: { "Content-Type": "multipart/form-data" },
});
//删除测评信息
export const deleteEvaluationById = (obj) =>
http.post(
"/evaluation/deleteEvaluationById",
{ params: obj },
{
header: {
token: "123",
},
}
);
//根据ID获取测评信息详情
export const queryEvaluationDetailById = (obj) =>
http.post("/evaluation/queryEvaluationDetailById", obj,{
http.post("/evaluation/queryEvaluationDetailById", obj, {
headers: {
'token': '123',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
}
});
token: "123",
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});
//修改测评信息
export const updateEvaluation = (obj) =>
http.post("/evaluation/updateEvaluation", obj);
//测评列表查询接口
export const choiceEvaluation = (obj) =>
export const choiceEvaluation = (obj) =>
http.post("/evaluation/choiceEvaluation", obj);
// 测试方法
@@ -79,9 +89,9 @@ export const updateEvaluation = (obj) =>
// })
//根据name获取测评信息详情
export const getEvalListByName = (obj) =>
http.post("/evaluation/queryEvaluationDetailById", obj,{
http.post("/evaluation/queryEvaluationDetailById", obj, {
headers: {
'token': '123',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
}
});
token: "123",
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});