diff --git a/src/api/indexProjStu.js b/src/api/indexProjStu.js index ab1092f2..87b495e2 100644 --- a/src/api/indexProjStu.js +++ b/src/api/indexProjStu.js @@ -26,6 +26,7 @@ export const editGroup = (obj) => http.post('/admin/project/editGroup', obj) export const removeGroupStudent = (obj) => http.post('/admin/project/removeGroupStudent', obj) //查看学员 export const studentProcess = (obj) => http.get('/admin/project/studentProcess', { params: obj }) +export const studentRank = (obj) => http.get('/admin/project/studentRank', { params: obj }) //是否优秀学员 export const topStudent = (obj) => http.post('/admin/project/topStudent', obj) diff --git a/src/components/drawers/SeeStu.vue b/src/components/drawers/SeeStu.vue index aced870f..e07f30de 100644 --- a/src/components/drawers/SeeStu.vue +++ b/src/components/drawers/SeeStu.vue @@ -28,8 +28,8 @@
进度排名
- 2 - /10 + {{rank.current}} + /{{rank.total}}
import { reactive, toRefs } from "vue"; import ProMess from "./ProMess.vue"; -import { studentProcess } from "../../api/indexProjStu"; +import {studentProcess, studentRank} from "../../api/indexProjStu"; export default { name: "SeeStu", components: { ProMess }, @@ -188,6 +188,7 @@ export default { Provisible: false, showDown: true, showDown1: false, + rank:{total:1,current:1}, stageList: [ // { // stageName: "阶段1腾飞班阶段1", @@ -227,6 +228,15 @@ export default { ctx.emit("update:Seevisible", false); }; + const getStuRank = () => { + studentRank({ + projectId: props.projectId, + studentId: props.checkStuId, + }).then(res=>{ + state.rank = res.data.data + }) + } + const showProMess = () => { state.Provisible = true; }; @@ -234,6 +244,7 @@ export default { console.log("state", bool); if (bool == true) { check(); + getStuRank() } }; const changeDown = () => {