mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 10: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 UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask`
|
||||
export const UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask post`
|
||||
|
||||
|
||||
// 外部考试详情接口
|
||||
|
||||
@@ -174,9 +174,6 @@
|
||||
<div style="margin-right: 5px">
|
||||
{{ userInfo?.realName }}
|
||||
</div>
|
||||
<!-- <div v-for="(item, key) in data.userInfoBo?.medal" :key="key">-->
|
||||
<!-- <img class="teacherMedal" :src="item"/>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="introduce">{{ userInfo?.bandDesc }}</div>
|
||||
</div>
|
||||
@@ -189,9 +186,9 @@
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
|
||||
<div class="rate">
|
||||
<div class="rate" v-if="data.lastLearned">
|
||||
<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 style="margin-top: 16px">
|
||||
@@ -523,8 +520,8 @@ function toFinish(d, sName, chapterOrStageId) {
|
||||
"courseId": d.courseId,
|
||||
"quizKid": "",
|
||||
"routerOrProjectId": projectId,
|
||||
"studentId": data.value.userInfoBo.userId,
|
||||
"studentName": data.value.userInfoBo.userName
|
||||
"studentId": userInfo.value.id,
|
||||
"studentName": userInfo.value.realName
|
||||
})
|
||||
request(EvaluationToLearn, {
|
||||
"businessType": "project",
|
||||
@@ -532,8 +529,8 @@ function toFinish(d, sName, chapterOrStageId) {
|
||||
"courseId": d.courseId,
|
||||
"quizKid": "",
|
||||
"routerOrProjectId": projectId,
|
||||
"studentId": data.value.userInfoBo.userId,
|
||||
"studentName": data.value.userInfoBo.userName
|
||||
"studentId": userInfo.value.id,
|
||||
"studentName": userInfo.value.realName
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
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})
|
||||
if (d.type == 3 || d.type == 7) {
|
||||
d.status!==1 && request(STUDY_RECORD, {
|
||||
studentId: data.value.userInfoBo.userId,
|
||||
studentId: userInfo.value.id,
|
||||
targetId: data.value.routerId,
|
||||
logo: PROJECT,
|
||||
stageOrChapterId: chapterOrStageId,
|
||||
@@ -624,26 +621,14 @@ function downloadFile(url){
|
||||
}
|
||||
|
||||
// 继续学习
|
||||
function continueLearn(taskname, datas){
|
||||
console.log('我是当前的列表展示信息',data)
|
||||
console.log(datas)
|
||||
let jumpinfo
|
||||
let stageName
|
||||
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 )
|
||||
function continueLearn(lastLearnedId){
|
||||
data.value.stageProcessList.forEach(stage=>{
|
||||
stage?.taskProcessList?.forEach(d=>{
|
||||
if(d.projectTaskId == lastLearnedId){
|
||||
toFinish(d, stage.stageName, stage.stageId)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user