|
@@ -267,6 +267,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
+ this.setStepModel()
|
|
|
this.getCourseList()
|
|
this.getCourseList()
|
|
|
this.getLearnList()
|
|
this.getLearnList()
|
|
|
this.getGradeList()
|
|
this.getGradeList()
|
|
@@ -649,9 +650,7 @@ export default {
|
|
|
this.currentCourse.checked = false
|
|
this.currentCourse.checked = false
|
|
|
this.currentCourse = c
|
|
this.currentCourse = c
|
|
|
this.currentCourse.checked = true
|
|
this.currentCourse.checked = true
|
|
|
-
|
|
|
|
|
getStepModel().then(resp=>{
|
|
getStepModel().then(resp=>{
|
|
|
-
|
|
|
|
|
if(resp.status == 200) {
|
|
if(resp.status == 200) {
|
|
|
let res = resp.data
|
|
let res = resp.data
|
|
|
if(res.code == 1) {
|
|
if(res.code == 1) {
|
|
@@ -666,6 +665,22 @@ export default {
|
|
|
this.getGoalInfoByCourse(this.currentCourse.id)
|
|
this.getGoalInfoByCourse(this.currentCourse.id)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ setStepModel(){
|
|
|
|
|
+ getStepModel().then(resp=>{
|
|
|
|
|
+ if(resp.status == 200) {
|
|
|
|
|
+ let res = resp.data
|
|
|
|
|
+ if(res.code == 1) {
|
|
|
|
|
+ let stepModels = res.data.dataList
|
|
|
|
|
+ for(let n =0 ;n<stepModels.length;n++) {
|
|
|
|
|
+ let m = stepModels[n]
|
|
|
|
|
+ this.stepscore[m.name] = m.score
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }).finally(d=>{
|
|
|
|
|
+ this.getGoalInfoByCourse(this.currentCourse.id)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
getCourseList() {
|
|
getCourseList() {
|
|
|
this.loading = true
|
|
this.loading = true
|