diff --git a/src/views/down/client.vue b/src/views/down/client.vue index 84d5a69..8e6bada 100644 --- a/src/views/down/client.vue +++ b/src/views/down/client.vue @@ -228,7 +228,7 @@ :step="1" :step-strictly="true" > - {{ examsDuration ? "秒" : "" }} + {{ examsDuration ? "分" : "" }} @@ -327,7 +327,7 @@ export default { multipleChoiceNum: 4, singleTypeNum: 20, askCountdown: 30, - examsDuration: 5400, + examsDuration: 90, displayModel: 0, languageSet: 0, otherSet: [], @@ -401,6 +401,9 @@ export default { for (let key in this.formData) { content[key] ? (this.formData[key] = content[key]) : ""; } + this.formData.examsDuration = (this.formData.examsDuration / 60).toFixed( + 0 + ); this.type = 2; (this.configId = obj.id), (this.dialogVis = true); }, @@ -418,7 +421,7 @@ export default { }, examsDurationChange(val) { if (val) { - this.formData.examsDuration = 5400; + this.formData.examsDuration = 90; } else { this.formData.examsDuration = 0; } @@ -430,6 +433,7 @@ export default { content[key] = this.formData[key]; } } + content.examsDuration = content.examsDuration * 60; if (this.type == 1) { this.addAppConfig({ diff --git a/src/views/setUp/student.vue b/src/views/setUp/student.vue index 44b5e51..747d1d3 100644 --- a/src/views/setUp/student.vue +++ b/src/views/setUp/student.vue @@ -44,7 +44,7 @@ :class="query.classId == item.id ? 'active' : ''" @click="classDetail(item)" > - + {{ item.className }}({{ item.studentCount }}) @@ -79,12 +79,16 @@