重新开始重置时间

master
4 years ago
parent 3b814423b7
commit 863d7ce580
  1. 10
      src/components/TestPanel.vue
  2. 1
      src/components/codemirror.vue
  3. 4
      src/views/Home.vue

@ -436,18 +436,18 @@ export default {
}, },
// //
getClearTime() { getClearTime() {
clearInterval(this.globalTimer); // clearInterval(this.globalTimer);
clearInterval(this.countVal); clearInterval(this.countVal);
this.globalTimer = ""; this.globalTimer = "";
if(this.projectPermissions != 0){ // if(this.projectPermissions != 0){
this.countVal = ""; this.countVal = "";
this.day = "00"; this.day = "00";
this.seconds = "00"; this.seconds = "00";
this.minutes = "00"; this.minutes = "00";
this.hour = "00"; this.hour = "00";
}else{ // }else{
this.text = '所用' // this.text = ''
} // }
}, },
handleData(project,type){ handleData(project,type){

@ -479,6 +479,7 @@ export default {
background: #1b1b1b; background: #1b1b1b;
display: inline-block; display: inline-block;
position: relative; position: relative;
overflow-x: scroll;
} }
.button ::v-deep .el-button--warning:hover, .button ::v-deep .el-button--warning:hover,
.el-button--warning:focus, .el-button--warning:focus,

@ -186,8 +186,8 @@ export default {
this.studentId = this.getCookie("studentId"); this.studentId = this.getCookie("studentId");
this.$get(this.api.ProjectId, { this.$get(this.api.ProjectId, {
projectId: this.projectId, projectId: this.projectId,
studentId: this.studentId // studentId: this.studentId
// studentId: 54 studentId: 54
}) })
.then(res => { .then(res => {
if(workBench.length){ if(workBench.length){

Loading…
Cancel
Save