feat:添加投票-创建投票-添加题干,添加选项;评估编辑接口对接

This commit is contained in:
dongwug
2022-11-02 18:14:41 +08:00
parent 348f8c93cb
commit f94a1ba53c
4 changed files with 131 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
import http from "./config";
// import qs from 'qs';
import qs from 'qs';
/**
@@ -33,15 +33,19 @@ import http from "./config";
* axios.post(`${this.$url}/test/testRequest`,data).then()
*
*/
// , {
// header: {
// 'token': '123',
// }
// }
// 接口-请求
//创建测评
export const createEvaluation = (obj) => http.post('/evaluation/createEvaluation', obj,);
export const createEvaluation = (obj) => http.post('/evaluation/createEvaluation', obj);
//上传组件
export const fileUp = (obj) => http.post('/file/upload', obj,);
export const fileUp = (obj) => http.post('/file/upload', obj, qs.stringify({ obj }));
//删除测评信息
export const deleteEvaluationById = (obj) => http.post('/evaluation/deleteEvaluationById', { params: obj })