86 lines
1.8 KiB
JavaScript
86 lines
1.8 KiB
JavaScript
import request from '@/api/request'
|
|
|
|
const module_url = '/traexam'
|
|
|
|
// 查询竞赛列表
|
|
export const queryTraCompetitionInfoPaging = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/queryTraCompetitionInfoPaging',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|
|
|
|
// 查询试卷
|
|
export const queryTestPapers = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/queryTestPapers',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|
|
|
|
// 查询PK人员+试题
|
|
export const queryTraCompetitionInfoByPkUser = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/queryTraCompetitionInfoByPkUser',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|
|
|
|
// 循环获取简答题结果
|
|
export const queryCompetitionPracticeAnswerResult = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/queryCompetitionPracticeAnswerResult',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|
|
|
|
// 答题结束
|
|
export const competitionAnswerEnd = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/competitionAnswerEnd',
|
|
method: 'post',
|
|
data,
|
|
suppressErrors: true // 屏蔽报错信息
|
|
});
|
|
};
|
|
|
|
// 竞赛答题
|
|
export const competitionAnswer = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/competitionAnswer',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|
|
|
|
// 查询答题结果
|
|
export const queryCompetitionAnswerResult = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/queryCompetitionAnswerResult',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|
|
|
|
// 竞赛排行榜
|
|
export const queryTraCompetitionRankingList = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/queryTraCompetitionRankingList',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|
|
|
|
// 全行的机构数据
|
|
export const queryOrgTree = (data) => {
|
|
return request({
|
|
url: module_url + '/traCompetitionInfo/queryOrgTree',
|
|
method: 'post',
|
|
data
|
|
});
|
|
};
|