考核定时器,练习跳转

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

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

@ -1,5 +1,5 @@
// let host = 'http://192.168.31.125:9090'//林 // 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://192.168.31.137:9090'//陈
// let host = 'http://122.9.154.146' // let host = 'http://122.9.154.146'

Loading…
Cancel
Save