|
|
|
@ -201,6 +201,7 @@ export default { |
|
|
|
|
systemId:null, |
|
|
|
|
assessmentId:'', |
|
|
|
|
classId:'', |
|
|
|
|
stopTime:'', |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -254,19 +255,14 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
if (countDown.status == 1){ |
|
|
|
|
this.$post(`${this.api.collectPaper}?id=${countDown.assessmentId}`).then(res => { |
|
|
|
|
console.log('tes') |
|
|
|
|
console.log(res) |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
console.log('???') |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return "00:00:00"; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// collectPaper(countDown){ |
|
|
|
|
// console.log(countDown) |
|
|
|
|
|
|
|
|
|
// }, |
|
|
|
|
beginTimer() { |
|
|
|
|
for (let i = 0; i < this.listData.length; i++) { |
|
|
|
|
const ticker = setInterval(() => { |
|
|
|
@ -319,7 +315,6 @@ export default { |
|
|
|
|
}; |
|
|
|
|
this.$post(this.api.pageStuAssessment, data).then(res => { |
|
|
|
|
this.listData = res.list; |
|
|
|
|
console.log(this.listData) |
|
|
|
|
this.totals = res.total; |
|
|
|
|
this.listData.forEach(i => { |
|
|
|
|
i.show = false; |
|
|
|
@ -388,6 +383,10 @@ export default { |
|
|
|
|
this.url = res.url |
|
|
|
|
this.cid = res.info.cid |
|
|
|
|
this.systemId = res.info.systemId |
|
|
|
|
var date = res.assessmentInfo.stopTime; |
|
|
|
|
date = date.substring(0,19); |
|
|
|
|
date = date.replace(/-/g,'/'); |
|
|
|
|
this.stopTime = new Date(date).getTime(); |
|
|
|
|
this.goSubSystem(); |
|
|
|
|
}).catch(res => { |
|
|
|
|
}); |
|
|
|
@ -432,7 +431,7 @@ export default { |
|
|
|
|
let href = ""; |
|
|
|
|
let aaa = '' |
|
|
|
|
aaa = host.slice(0,host.length-6) |
|
|
|
|
href = `${aaa}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}`; |
|
|
|
|
href = `${aaa}/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`; |
|
|
|
|
// switch (curriculumId) { |
|
|
|
|
// // case 1: |
|
|
|
|
// href = `${host}${this.url}/#/?projectId=${this.projectId}`; |
|
|
|
|