From e67dc797aa5233f3dc31192df5a2c4c35a781570 Mon Sep 17 00:00:00 2001 From: wyx Date: Tue, 10 Jan 2023 09:13:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E8=AF=84=E4=BC=B0?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/survey/SurveyDetail.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/views/survey/SurveyDetail.vue b/src/views/survey/SurveyDetail.vue index a09c722..56f3180 100644 --- a/src/views/survey/SurveyDetail.vue +++ b/src/views/survey/SurveyDetail.vue @@ -332,6 +332,7 @@ const { } = useRoute(); const router = useRouter(); const returnclick = () => { + clearInterval(timers) router.back(); }; @@ -339,6 +340,12 @@ const { data } = useRequest(ASSESSMENT_QUERY(courseId), { id: courseId, type, ch console.log('我是查询评估的参数', { id: courseId, type, chapterOrStageId, targetId: infoId ? infoId : 0 }) console.log('我是需要排序得题目', data) +// 答题时间 +const answerTime = new Date(); + +console.log('录入首次进入页面时间', answerTime) + + // 数组去空对象 function formateArr(datas) { let allArr = [] @@ -364,11 +371,16 @@ const timers = setInterval(() => { } }, 1000); +setTimeout(() => { + clearInterval(timers); +}, 30000); + const centerDialogVisible = ref(false); const open = () => { centerDialogVisible.value = true }; function submit() { + console.log('录入首次进入页面时间', answerTime) if (1 > 0) { console.log(data) console.log('我是提交的数据', {