判分点接口更换

dev_2022-05-11
yujialong 3 years ago
parent ce6c46f6d4
commit dd5c7b125b
  1. 2
      src/api/index.js
  2. 9
      src/pages/project/add/index.vue

@ -92,7 +92,7 @@ export default {
copyProjectManage: `${host}occupationlab/projectManage/copyProjectManage`, // 复制项目管理 copyProjectManage: `${host}occupationlab/projectManage/copyProjectManage`, // 复制项目管理
// 判分点 // 判分点
getBcJudgmentPoint: `${host}judgment/bcJudgmentPoint/getBcJudgmentPoint`, // 获取编程类判分点列表(分页) getBcJudgmentPoint: `${host}judgment/bcJudgmentPoint/getTeacherJudgmentPoint`, // 获取编程类判分点列表(分页)
getLcJudgmentPoint: `${host}judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页) getLcJudgmentPoint: `${host}judgment/lcJudgmentPoint/queryAllJudgmentPoint`, // 获取流程类判分点列表(分页)
addProjectJudgment: `${host}occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表 addProjectJudgment: `${host}occupationlab/projectJudgment/addProjectJudgment`, // 添加项目管理、判分点中间表
updateProjectJudgment: `${host}occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新 updateProjectJudgment: `${host}occupationlab/projectJudgment/updateProjectJudgment`, // 判分点中间表批量更新

@ -516,10 +516,6 @@ export default {
this.$refs.judgementTable.clearSelection(); this.$refs.judgementTable.clearSelection();
}); });
let params = { let params = {
enable:0,
name: this.judgementpointsquery,
pageNum: 1,
pageSize: 10000,
systemId systemId
}; };
if (systemId == 2 || systemId == 3) { if (systemId == 2 || systemId == 3) {
@ -551,11 +547,10 @@ export default {
}, },
getProgrammingClassData(params) { // getProgrammingClassData(params) { //
this.visibleLoading = true; this.visibleLoading = true;
this.$post(this.api.getBcJudgmentPoint, params).then(res => { this.$get(this.api.getBcJudgmentPoint, params).then(res => {
let list = res.message.records; let list = res.judgmentPoints
let result = []; let result = [];
list.map(i => { list.map(i => {
i.judgmentId = i.bcId;
this.projectJudgmentData.find(j => j.judgmentId === i.judgmentId) || result.push(i); this.projectJudgmentData.find(j => j.judgmentId === i.judgmentId) || result.push(i);
}); });
this.visibleLoading = false; this.visibleLoading = false;

Loading…
Cancel
Save