diff --git a/src/api/jmap/training.js b/src/api/jmap/training.js index e8e806ba9..b22d67ce5 100644 --- a/src/api/jmap/training.js +++ b/src/api/jmap/training.js @@ -190,6 +190,14 @@ export function publishTrainingDelete(data) { data }); } +/** 查全部组织已发布实训的基础信息 */ +export function getAllPublishTrainingList(params) { + return request({ + url: `/api/v2/training/published/list`, + method: 'get', + params + }); +} /** 根据mapId查所有的已发布单操实训的基础信息 */ export function getPublishSingleList(mapId) { return request({ diff --git a/src/api/management/exam.js b/src/api/management/exam.js index 2fe57f01d..c068bff23 100644 --- a/src/api/management/exam.js +++ b/src/api/management/exam.js @@ -139,6 +139,14 @@ export function getPapaerListOfOrg({ orgId, ...data }) { }); } +export function getAllPapaerListOfOrg({ ...data }) { // 全部组织 + return request({ + url: `/api/v2/paper/composition/manage/paging`, + method: 'POST', + data + }); +} + /** * 创建试卷蓝图 * @param {Object} data diff --git a/src/api/projectConfig.js b/src/api/projectConfig.js index 47aabe853..edf17857f 100644 --- a/src/api/projectConfig.js +++ b/src/api/projectConfig.js @@ -28,7 +28,7 @@ export function getBackProjectConfigById(id) { /** 通过code获取后端项目配置 */ export function getBackProjectConfigByCode(code) { return request({ - url: `/api/project/code/{code}`, + url: `/api/project/code/${code}`, method: 'get' }); } diff --git a/src/api/questionBank.js b/src/api/questionBank.js index 096484cbc..e9a73d248 100644 --- a/src/api/questionBank.js +++ b/src/api/questionBank.js @@ -1,5 +1,14 @@ import request from '@/utils/request'; +// 查询理论试题(全部组织) +export function listAllQuestionPage(params) { + return request({ + url: `/api/question/paging`, + method: 'get', + params + }); +} + // 分页查询理论试题 export function listQuestionPage(params) { return request({ diff --git a/src/api/trainingPlatform.js b/src/api/trainingPlatform.js index fbd898de1..d27026de9 100644 --- a/src/api/trainingPlatform.js +++ b/src/api/trainingPlatform.js @@ -122,3 +122,12 @@ export function generateMapFunctionNew(mapId, data) { data }); } + +/** 根据id查询地图系统 */ +export function getMapFunctioById(id) { + return request({ + url: `/api/mapFunction/${id}`, + method: 'get' + }); +} + diff --git a/src/router/index.js b/src/router/index.js index 5e3d39d2f..407910b4c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2026,7 +2026,7 @@ export const asyncRouter = [ { // 理论题数据管理 path: 'theoryData', - component: Temporary, + component: BankManage, meta: { i18n: 'newRouter.theoryData' } @@ -2034,7 +2034,7 @@ export const asyncRouter = [ { // 实训数据管理 path: 'trainingDataManage', - component: Temporary, + component: TrainingManage, meta: { i18n: 'newRouter.trainingDataManage' } @@ -2042,7 +2042,7 @@ export const asyncRouter = [ { // 考试数据管理 path: 'examData', - component: BankManage, + component: OrgExamManage, meta: { i18n: 'newRouter.examData' } diff --git a/src/views/competitionManage/bankList/index.vue b/src/views/competitionManage/bankList/index.vue index 0f716e11d..e2072484c 100644 --- a/src/views/competitionManage/bankList/index.vue +++ b/src/views/competitionManage/bankList/index.vue @@ -8,7 +8,7 @@