|
@@ -205,6 +205,31 @@ export default {
|
|
// examQuestionList(val, oldVal) {
|
|
// examQuestionList(val, oldVal) {
|
|
// // console.log(val, oldVal);
|
|
// // console.log(val, oldVal);
|
|
// }
|
|
// }
|
|
|
|
+ remainTime(val) {
|
|
|
|
+ if (val === 5 * 60 * 1000) {
|
|
|
|
+ this.reaminModalCreated = true;
|
|
|
|
+ this.$Modal.info({
|
|
|
|
+ render: () => (
|
|
|
|
+ <div>
|
|
|
|
+ <h3>温馨提醒</h3>
|
|
|
|
+ <div style="margin-top: 20px; margin-left: 20px; flex: 1">
|
|
|
|
+ <div style="margin-bottom: 1.5em">
|
|
|
|
+ 剩余考试时间为
|
|
|
|
+ <span style="font-weight: bold; color: red;"> 5 </span>分钟!
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ ),
|
|
|
|
+ onOk: () => {
|
|
|
|
+ this.reaminModalClosed = true;
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ } else if (val === 5 * 60 * 1000 - 10 * 1000) {
|
|
|
|
+ if (this.reaminModalCreated && !this.reaminModalClosed) {
|
|
|
|
+ this.$Modal.remove();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
this.timeoutTimeout = setTimeout(() => (this.timeouted = true), 30 * 1000);
|
|
this.timeoutTimeout = setTimeout(() => (this.timeouted = true), 30 * 1000);
|