UI_2022-02-10
yujialong 3 years ago
commit 1caaa74de8
  1. 1
      src/api/index.js
  2. 17
      src/pages/ass/list/index.vue
  3. 1
      src/pages/station/preview/index.vue

@ -49,6 +49,7 @@ export default {
myClassByStudent: `${host}occupationlab/achievement/myClassByStudent`, // 学生端:我的班级
getStudentInfoByAccountId: `${host}occupationlab/architecture/getStudentInfoByAccountId`, // 查看学生信息
enterExam: `${host}occupationlab/assessment/enterExam`, // 学生端——进入考试
collectPaper: `${host}occupationlab/assessment/collectPaper`, // 自动结束考试
// 课程学习
queryGlClassification: `${host}occupationlab/management/edu/courseClassification/queryGlClassification`, // 查询课程分类

@ -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}`;

@ -310,6 +310,7 @@ export default {
} else if (id == 10) {
href = `${host}pyAcquisition/#/`;
} else if (id == 11) {
console.log(host)
// href = `${host}bank/#/`;
let token = util.local.get(Setting.tokenKey);
// href = "http://39.108.250.202/banksystem/#/index/list?"+'token='+token+'&cid='+this.courseId+'&systemId='+this.assessmentList[0].systemId;

Loading…
Cancel
Save