mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 11:56:48 +08:00
-- fix 项目列表
This commit is contained in:
@@ -66,7 +66,7 @@ export const PROJECT_LIST = '/stu/project/list post'
|
|||||||
|
|
||||||
export const FACETEACH_SIGNUP = `/stu/project/stuFaceTeachSignUp`
|
export const FACETEACH_SIGNUP = `/stu/project/stuFaceTeachSignUp`
|
||||||
|
|
||||||
export const UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask`
|
export const UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask post`
|
||||||
|
|
||||||
|
|
||||||
// 外部考试详情接口
|
// 外部考试详情接口
|
||||||
|
|||||||
@@ -174,9 +174,6 @@
|
|||||||
<div style="margin-right: 5px">
|
<div style="margin-right: 5px">
|
||||||
{{ userInfo?.realName }}
|
{{ userInfo?.realName }}
|
||||||
</div>
|
</div>
|
||||||
<!-- <div v-for="(item, key) in data.userInfoBo?.medal" :key="key">-->
|
|
||||||
<!-- <img class="teacherMedal" :src="item"/>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="introduce">{{ userInfo?.bandDesc }}</div>
|
<div class="introduce">{{ userInfo?.bandDesc }}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -189,9 +186,9 @@
|
|||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rate">
|
<div class="rate" v-if="data.lastLearned">
|
||||||
<div class="ratetext">上次学到:{{ data.lastLearned }}</div>
|
<div class="ratetext">上次学到:{{ data.lastLearned }}</div>
|
||||||
<div v-if="data.lastLearned" class="ratebtn" @click="continueLearn(data.lastLearned, data.stageProcessList)">继续学习</div>
|
<div v-if="data.lastLearned" class="ratebtn" @click="continueLearn(data.lastLearnedId)">继续学习</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-top: 16px">
|
<div style="margin-top: 16px">
|
||||||
@@ -523,8 +520,8 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
"courseId": d.courseId,
|
"courseId": d.courseId,
|
||||||
"quizKid": "",
|
"quizKid": "",
|
||||||
"routerOrProjectId": projectId,
|
"routerOrProjectId": projectId,
|
||||||
"studentId": data.value.userInfoBo.userId,
|
"studentId": userInfo.value.id,
|
||||||
"studentName": data.value.userInfoBo.userName
|
"studentName": userInfo.value.realName
|
||||||
})
|
})
|
||||||
request(EvaluationToLearn, {
|
request(EvaluationToLearn, {
|
||||||
"businessType": "project",
|
"businessType": "project",
|
||||||
@@ -532,8 +529,8 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
"courseId": d.courseId,
|
"courseId": d.courseId,
|
||||||
"quizKid": "",
|
"quizKid": "",
|
||||||
"routerOrProjectId": projectId,
|
"routerOrProjectId": projectId,
|
||||||
"studentId": data.value.userInfoBo.userId,
|
"studentId": userInfo.value.id,
|
||||||
"studentName": data.value.userInfoBo.userName
|
"studentName": userInfo.value.realName
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.data.code==200){
|
if(res.data.code==200){
|
||||||
@@ -554,7 +551,7 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
request(UPDATE_CURRENT_TASK,{id:d.projectTaskId,type:PROJECT,pid:projectId,name:d.name})
|
request(UPDATE_CURRENT_TASK,{id:d.projectTaskId,type:PROJECT,pid:projectId,name:d.name})
|
||||||
if (d.type == 3 || d.type == 7) {
|
if (d.type == 3 || d.type == 7) {
|
||||||
d.status!==1 && request(STUDY_RECORD, {
|
d.status!==1 && request(STUDY_RECORD, {
|
||||||
studentId: data.value.userInfoBo.userId,
|
studentId: userInfo.value.id,
|
||||||
targetId: data.value.routerId,
|
targetId: data.value.routerId,
|
||||||
logo: PROJECT,
|
logo: PROJECT,
|
||||||
stageOrChapterId: chapterOrStageId,
|
stageOrChapterId: chapterOrStageId,
|
||||||
@@ -624,26 +621,14 @@ function downloadFile(url){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 继续学习
|
// 继续学习
|
||||||
function continueLearn(taskname, datas){
|
function continueLearn(lastLearnedId){
|
||||||
console.log('我是当前的列表展示信息',data)
|
data.value.stageProcessList.forEach(stage=>{
|
||||||
console.log(datas)
|
stage?.taskProcessList?.forEach(d=>{
|
||||||
let jumpinfo
|
if(d.projectTaskId == lastLearnedId){
|
||||||
let stageName
|
toFinish(d, stage.stageName, stage.stageId)
|
||||||
let stageId
|
}
|
||||||
for(let i=0; i<datas.length; i++){
|
})
|
||||||
let kk = datas[i].taskProcessList
|
})
|
||||||
for(let j=0; j<kk.length; j++){
|
|
||||||
if(kk[j].name==taskname){
|
|
||||||
jumpinfo = kk[i]
|
|
||||||
stageId = datas[i].stageId
|
|
||||||
stageName = datas[i].stageName
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
console.log(jumpinfo, stageName, stageId)
|
|
||||||
toFinish(jumpinfo, stageName, stageId )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user