Merge branch 'master' of ssh://git.czcyedu.com:222/huoran/FE_occupationlab_client into master

UI_2022-02-10
luoJunYong.123 3 years ago
commit ce14782491
  1. 45
      src/pages/ass/list/index.vue

@ -92,7 +92,7 @@
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="scope" v-if="scope.row"> <template slot-scope="scope">
<!--status:考核状态(0待开始 1进行中 2已结束); stuState:学生考试状态(0未考 1在考 2已考)--> <!--status:考核状态(0待开始 1进行中 2已结束); stuState:学生考试状态(0未考 1在考 2已考)-->
<el-button v-if="scope.row.status == 2 && scope.row.stuState == 0" type="text" disabled>未参加</el-button> <el-button v-if="scope.row.status == 2 && scope.row.stuState == 0" type="text" disabled>未参加</el-button>
<el-button v-if="(scope.row.status == 2 && scope.row.stuState == 1) || (scope.row.status == 2 && scope.row.stuState == 2 && scope.row.reportId == null)" type="text" disabled> <el-button v-if="(scope.row.status == 2 && scope.row.stuState == 1) || (scope.row.status == 2 && scope.row.stuState == 2 && scope.row.reportId == null)" type="text" disabled>
@ -275,22 +275,19 @@ export default {
clearInterval(this.ticker); clearInterval(this.ticker);
}else{ }else{
for (let i = 0; i < this.listData.length; i++) { for (let i = 0; i < this.listData.length; i++) {
const ticker = setInterval(() => { const item = this.listData[i];
const item = this.listData[i]; if (item.countDown > 0) {
if (item.countDown > 0) { item.countDown--;
item.countDown--; } else {
} else { if (item.status == 0 && item.type == 2) { // -
if (item.status == 0 && item.type == 2) { // - item.status = 1;
item.status = 1; item.countDown = (new Date(item.stopTime).getTime() - new Date().getTime()) / 1000;
item.countDown = (new Date(item.stopTime).getTime() - new Date().getTime()) / 1000; } else if (item.status == 1) {
} else if (item.status == 1) { // item.status = 2;
// item.status = 2;
}
} }
item.show = true; }
this.$set(this.listData, i, item); item.show = true;
}, 1000) this.$set(this.listData, i, item);
this.tickerArr.push(ticker)
} }
} }
@ -359,10 +356,10 @@ export default {
} }
}); });
this.sss = 1; this.sss = 1;
if(this.datassdata == 0){ // if(this.datassdata == 0){
this.datassdata = this.datassdata+1 // this.datassdata = this.datassdata+1
this.beginTimer() this.beginTimer()
} // }
this.listLoading = false; this.listLoading = false;
}).catch(err => { }).catch(err => {
this.listLoading = false; this.listLoading = false;
@ -459,13 +456,9 @@ export default {
aaa = host.slice(0,host.length-6) aaa = host.slice(0,host.length-6)
if (curriculumId == 11){ if (curriculumId == 11){
//线 //线
// http://192.168.31.155:8093 // href = `http://www.huorantech.cn/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`;
// 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}`; // http://192.168.31.155:8093
if(process.env.NODE_ENV === "development") { 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}`;
href = `http://192.168.31.155:8093/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`;
}else {
href = `http://www.huorantech.cn/${this.url}/#/index/list?token=${token}&cid=${this.cid}&systemId=${this.systemId}&projectId=${this.projectId}&assessmentId=${this.assessmentId}&classId=${this.classId}&stopTime=${this.stopTime}`;
}
}else{ }else{
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}`; 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}`;
} }

Loading…
Cancel
Save