考核定时器,练习跳转

chengdu
yujialong 4 years ago
parent 79d840da00
commit 32b68b557e
  1. 49
      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,27 +187,32 @@ export default {
result.push(n) result.push(n)
} }
}) })
this.$post(this.api.fictitiousRecord, { this.listDataAll = result
classId: '', this.totals = result.length
userId: this.userId, this.getRecord()
page: 1, }).catch(res => {})
size: 1000, },
searchContent: '', getRecord(){
source: 2, this.$post(this.api.fictitiousRecord, {
systemId: 3 classId: '',
}).then(res => { userId: this.userId,
let recordList = res.data.list page: 1,
result.map(n => { size: 1000,
let same = recordList.find(e => e.className == n.className) searchContent: '',
if(same){ source: 2,
n.reportId = same.reportId systemId: 3
} }).then(res => {
}) let list = this.listDataAll
this.listDataAll = result let recordList = res.data.list
this.totals = result.length list.map(n => {
this.handlePage() let same = recordList.find(e => e.className == n.className)
}).catch(err => {}) if(same){
}).catch(res => {}); n.reportId = same.reportId
}
})
this.listDataAll = list
this.handlePage()
}).catch(err => {})
}, },
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