考核定时器,练习跳转

chengdu
yujialong 4 years ago
parent 79d840da00
commit 32b68b557e
  1. 15
      src/components/page/Assessment.vue
  2. 5
      src/components/page/Dashboard.vue
  3. 2
      src/utils/api.js

@ -163,7 +163,7 @@ export default {
stopTime: this.form.endTime,
searchContent: this.core.encodeString(this.keyword),
status: this.form.status,
pageNum: this.pageNo,
pageNum: 1,
pageSize: 10000,
}
this.$post(this.api.stuAssessmentByScreen,data).then(res => {
@ -187,6 +187,12 @@ export default {
result.push(n)
}
})
this.listDataAll = result
this.totals = result.length
this.getRecord()
}).catch(res => {})
},
getRecord(){
this.$post(this.api.fictitiousRecord, {
classId: '',
userId: this.userId,
@ -196,18 +202,17 @@ export default {
source: 2,
systemId: 3
}).then(res => {
let list = this.listDataAll
let recordList = res.data.list
result.map(n => {
list.map(n => {
let same = recordList.find(e => e.className == n.className)
if(same){
n.reportId = same.reportId
}
})
this.listDataAll = result
this.totals = result.length
this.listDataAll = list
this.handlePage()
}).catch(err => {})
}).catch(res => {});
},
handlePage(){
let list = this.listDataAll

@ -22,7 +22,7 @@
</el-tab-pane>
</el-tabs>
<Index v-if="activeName=='index'"></Index>
<TeachingVideo v-if="!showProject && activeName!='fourth' && activeName!='fifth' && activeName!='index'"></TeachingVideo>
<TeachingVideo v-if="!showProject && activeName!='fourth' && activeName!='fifth' && activeName!='index' && activeName!='second'"></TeachingVideo>
<Project v-if="showProject"></Project>
<Assessment v-if="activeName=='fourth'"></Assessment>
<Record v-if="activeName=='fifth'"></Record>
@ -205,12 +205,15 @@ export default {
if(index == 3 && !isIndex){
this.toEvaluation(1,3)
}else if(index == 2){
location.hash = `${this.routeName}#0`
}
}
},
saveActive(activeName,oldActiveName){
this.lastClick = oldActiveName
if(activeName == 'second'){
this.activeName = oldActiveName
return false
}
},

@ -1,5 +1,5 @@
// let host = 'http://192.168.31.125:9090'//林
// let host = 'http://192.168.31.152:9090'//榕
// let host = 'http://192.168.31.151:9090'//榕
// let host = 'http://192.168.31.137:9090'//陈
// let host = 'http://122.9.154.146'

Loading…
Cancel
Save