diff --git a/src/api/trainingManage.js b/src/api/trainingManage.js index 17d5a33b5..ca86bc0a5 100644 --- a/src/api/trainingManage.js +++ b/src/api/trainingManage.js @@ -103,3 +103,28 @@ export function getTrainingMaterials() { method: 'get' }); } + +/** 获取实训所有成员 */ +export function getTrainingMmembers(trainingId) { + return request({ + url: `/api/v2/draft/training/${trainingId}/member/list`, + method: 'get' + }); +} + +/** 更新所有评分规则*/ +export function updateTrainingGradeRules(trainingId, data) { + return request({ + url: `/api/v2/draft/training/${trainingId}/scoringRule/list`, + method: 'put', + data: data + }); +} + +/** 获取所有评分规则 */ +export function getTrainingGradeRules(trainingId) { + return request({ + url: `/api/v2/draft/training/${trainingId}/scoringRule/list`, + method: 'get' + }); +} diff --git a/src/views/trainingManage/demonMenu.vue b/src/views/trainingManage/demonMenu.vue index 0416a4b3a..be0f91c88 100644 --- a/src/views/trainingManage/demonMenu.vue +++ b/src/views/trainingManage/demonMenu.vue @@ -6,22 +6,25 @@ 实训列表 - + + diff --git a/src/views/trainingManage/gradeRules.vue b/src/views/trainingManage/gradeRules.vue new file mode 100644 index 000000000..d9831fad4 --- /dev/null +++ b/src/views/trainingManage/gradeRules.vue @@ -0,0 +1,170 @@ + + diff --git a/src/views/trainingManage/trainingList.vue b/src/views/trainingManage/trainingList.vue index 903f993bb..eb928f0e2 100644 --- a/src/views/trainingManage/trainingList.vue +++ b/src/views/trainingManage/trainingList.vue @@ -215,8 +215,10 @@ export default { console.log('预览', index, row); }, // 打分 - gradeRules() { - + gradeRules(index, row) { + this.doClose(); + this.$emit('gradeRules', row); + // this.$refs.gradeRules.doShow(); }, getListData() { this.$refs.queryListPage && this.$refs.queryListPage.commitQuery();