From bac7eccaa3aafa33f78a5b250210af13398b171c Mon Sep 17 00:00:00 2001 From: quhongwei <1632078442@qq.com> Date: Thu, 2 Mar 2023 09:10:57 +0800 Subject: [PATCH 01/38] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 483bce0..5a01c97 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,7 +37,7 @@ import {onMounted} from "vue"; import {useRoute} from "vue-router/dist/vue-router"; import {USER_INFO} from "@/api/api"; -console.log("版本2.1.6------------"); +console.log("版本1.3.5------------"); const store = useStore(); const {path} = useRoute(); onMounted(() => { From cf50cb51fc79188c433ce8fa4af0e1c1a1c12df9 Mon Sep 17 00:00:00 2001 From: wyx Date: Sun, 5 Mar 2023 08:47:21 +0800 Subject: [PATCH 02/38] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index db1bd07..7e6e490 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,7 +38,7 @@ import {useRoute} from "vue-router/dist/vue-router"; import {USER_INFO} from "@/api/api"; import {IsPhone} from "@/api/utils"; -console.log("版本1.3.5------------"); +console.log("版本1.3.6------------"); const store = useStore(); const { path } = useRoute(); onMounted(() => { From fc5238f1de99c9699f5f8d760a76ca2298751f53 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Sun, 5 Mar 2023 14:39:45 +0800 Subject: [PATCH 03/38] fix -- bug --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 379211a..8796c5a 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -28,7 +28,7 @@ export default createStore({ if (state.projectInfo.unlockMode === 1) { state.projectInfo.stageProcessList.forEach((t) => { t.statusName = "进行中"; - t.taskProcessList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : TASK_TYPES.toName[s.type]); + t.taskProcessList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : s.status === 2 ? (s.statusName = "进行中") : TASK_TYPES.toName[s.type]); t.taskProcessList?.every((s) => s.status === 1) && (t.statusName = "已完成"); }); return; @@ -57,7 +57,7 @@ export default createStore({ } state.routerInfo.statusName = "进行中"; if (state.routerInfo.unlockMode === 1) { - state.routerInfo.taskBoList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : TASK_TYPES.toName[s.type]); + state.routerInfo.taskBoList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : s.status === 2 ? (s.statusName = "进行中") : TASK_TYPES.toName[s.type]); state.routerInfo.taskBoList?.every((s) => s.status === 1) && (state.routerInfo.statusName = "已完成"); return; } From 8550d3f20d6c00ae06b9da32037f70862accb95b Mon Sep 17 00:00:00 2001 From: wyx Date: Sun, 5 Mar 2023 16:54:10 +0800 Subject: [PATCH 04/38] =?UTF-8?q?fix:=E9=9D=A2=E6=8E=88=E8=AF=BE=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=AF=84=E4=BC=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faceteach/FaceTeach.vue | 6 +++--- src/views/survey/SurveyDetail.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index 4546cf6..99c1756 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -467,10 +467,10 @@ function toSurvery() { router.push({ path: "/surveydetail", query: { - id: taskId, - courseId: data.value.planDto.evaluateId, + id: data.value.planDto.id, + courseId: data.value.planDto.assessmentId, pName: "面授课", - infoId: data.value.planDto.offcoursePlanId, + infoId: data.value.planDto.id, chapterOrStageId: 0, sName: data.value.planDto.name, type: 3, diff --git a/src/views/survey/SurveyDetail.vue b/src/views/survey/SurveyDetail.vue index a5bb3cc..583325e 100644 --- a/src/views/survey/SurveyDetail.vue +++ b/src/views/survey/SurveyDetail.vue @@ -348,7 +348,7 @@ const returnclick = () => { clearInterval(timers) router.back(); }; -const {nextPage,prevPage,hasPrev, hasNext} = useTaskPage() +const {nextPage,prevPage,hasPrev, hasNext} = type==3 ? '' : useTaskPage() const fielPath = ref(import.meta.env.VITE_FILE_PATH); const { data } = useRequest(ASSESSMENT_QUERY(courseId), { id: courseId, type, chapterOrStageId, targetId: infoId ? infoId : 0 }); console.log(data) From 643ea68676001a2b8bc5fecf92535c19606c52fd Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Sun, 5 Mar 2023 23:30:10 +0800 Subject: [PATCH 05/38] fix -- bug --- src/views/roadmap/PathDetails.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/roadmap/PathDetails.vue b/src/views/roadmap/PathDetails.vue index 2c923a3..ccf5713 100644 --- a/src/views/roadmap/PathDetails.vue +++ b/src/views/roadmap/PathDetails.vue @@ -473,6 +473,7 @@ async function toFinish(d) { targetId: data.value.id, logo: ROUTER, type: ROUTER, + taskType: d.type, stageOrChapterId: data.value.currentStageId, taskId: d.id, }); From 700058f48c752e4d2edc1ec68655578c6c255bf9 Mon Sep 17 00:00:00 2001 From: caozc Date: Mon, 6 Mar 2023 02:13:35 +0800 Subject: [PATCH 06/38] =?UTF-8?q?fix:taskId=E6=9C=AA=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faceteach/FaceTeach.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index 4546cf6..1d8eba8 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -445,8 +445,12 @@ const signClick = () => { data.value.signFlag = 1; ElMessage.warning("签到成功"); + let taskId = courseId + console.log("taskId:" + taskId) + console.log("courseId:" + courseId) + console.log("请求入参:" + JSON.stringify( { courseId: courseId,taskId: taskId,type:type })) - request(TASK_OFFCOURSE_NOTASK_SIGN, { courseId: courseId }); + request(TASK_OFFCOURSE_NOTASK_SIGN, { courseId: courseId,taskId: taskId,type:type }); }; function toSurvery() { From 6daf18ebb6807554725e5a6767d40f76ac272b86 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Mon, 6 Mar 2023 08:44:53 +0800 Subject: [PATCH 07/38] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 7e6e490..ccc751c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,7 +38,7 @@ import {useRoute} from "vue-router/dist/vue-router"; import {USER_INFO} from "@/api/api"; import {IsPhone} from "@/api/utils"; -console.log("版本1.3.6------------"); +console.log("版本1.3.7------------"); const store = useStore(); const { path } = useRoute(); onMounted(() => { From b4e78be565912ac7024a2c91b257c6d278288eb9 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Mon, 6 Mar 2023 14:38:16 +0800 Subject: [PATCH 08/38] =?UTF-8?q?fix:=E8=AE=A8=E8=AE=BA=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + src/views/discussdetail/DiscussDetail.vue | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 0899c85..f03f2ff 100644 --- a/.env +++ b/.env @@ -3,6 +3,7 @@ VITE_BASE_H5=/fe-student-h5 VITE_BASE_API= VITE_OUTPUT_DIR=./dist VITE_FILE_PATH=/upload/ +VITE_FILE_PATH_AVATAR=/upload VITE_BASE_LOGIN_URL=//u-pre.boe.com/web/ VITE_PROXY_URL=http://43.143.139.204/manageApi diff --git a/src/views/discussdetail/DiscussDetail.vue b/src/views/discussdetail/DiscussDetail.vue index 0a33e5c..166971c 100644 --- a/src/views/discussdetail/DiscussDetail.vue +++ b/src/views/discussdetail/DiscussDetail.vue @@ -118,7 +118,7 @@
@@ -156,7 +156,7 @@
- +
{{ row.ctime }}
@@ -193,7 +193,7 @@
- +
@@ -263,7 +263,7 @@
@@ -324,6 +324,7 @@ import UploadPostImg from "@/components/img/UploadPostImg.vue"; const router = useRouter(); const refInput =ref() +const fielPath = ref(import.meta.env.VITE_FILE_PATH_AVATAR); const getFocus = () => { refInput.value.focus() } From 04c45beea56fb7533d523fe73959b5ab3bc9d7e0 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Mon, 6 Mar 2023 14:38:58 +0800 Subject: [PATCH 09/38] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index ccc751c..c177619 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,7 +38,7 @@ import {useRoute} from "vue-router/dist/vue-router"; import {USER_INFO} from "@/api/api"; import {IsPhone} from "@/api/utils"; -console.log("版本1.3.7------------"); +console.log("版本1.3.8------------"); const store = useStore(); const { path } = useRoute(); onMounted(() => { From d161145e5318b8506eb50e7b8829bf468916abb0 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Mon, 6 Mar 2023 15:35:24 +0800 Subject: [PATCH 10/38] =?UTF-8?q?fix:=E8=AE=A8=E8=AE=BA=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 - src/views/discussdetail/DiscussDetail.vue | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.env b/.env index f03f2ff..0899c85 100644 --- a/.env +++ b/.env @@ -3,7 +3,6 @@ VITE_BASE_H5=/fe-student-h5 VITE_BASE_API= VITE_OUTPUT_DIR=./dist VITE_FILE_PATH=/upload/ -VITE_FILE_PATH_AVATAR=/upload VITE_BASE_LOGIN_URL=//u-pre.boe.com/web/ VITE_PROXY_URL=http://43.143.139.204/manageApi diff --git a/src/views/discussdetail/DiscussDetail.vue b/src/views/discussdetail/DiscussDetail.vue index 166971c..e687a7f 100644 --- a/src/views/discussdetail/DiscussDetail.vue +++ b/src/views/discussdetail/DiscussDetail.vue @@ -143,7 +143,7 @@
- +
{{ row.createName }}
{{row.studentJobName}}
@@ -184,10 +184,10 @@
- +
{{ replay.studentName }}
回复
- +
{{ replay.targetStudentName }}
{{ replay.createTime }}
@@ -324,7 +324,7 @@ import UploadPostImg from "@/components/img/UploadPostImg.vue"; const router = useRouter(); const refInput =ref() -const fielPath = ref(import.meta.env.VITE_FILE_PATH_AVATAR); +const fielPath = ref(import.meta.env.VITE_FILE_PATH); const getFocus = () => { refInput.value.focus() } From 724f22d6291d5df9184ad6ac9814b442b876c5ce Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Mon, 6 Mar 2023 17:00:31 +0800 Subject: [PATCH 11/38] =?UTF-8?q?fix:=E5=A4=96=E9=83=A8=E8=80=83=E8=AF=95?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/testscore/ExternalExamination.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/testscore/ExternalExamination.vue b/src/views/testscore/ExternalExamination.vue index a1b1561..3bbfee4 100644 --- a/src/views/testscore/ExternalExamination.vue +++ b/src/views/testscore/ExternalExamination.vue @@ -60,7 +60,7 @@
- {{ state.datainfo.externalExplain ? state.datainfo.externalExplain : "暂无考试说明" }} + {{ state.datainfo.examinationExplain ? state.datainfo.examinationExplain : "暂无考试说明" }}
From cf345d37da6e9ae03cc8e9dccca8188675218889 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Mon, 6 Mar 2023 22:58:08 +0800 Subject: [PATCH 12/38] =?UTF-8?q?feat:=E9=9D=A2=E6=8E=88=E8=AF=BE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=87=8D=E6=96=B0=E6=8A=A5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faceteach/FaceTeachSignUp.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/faceteach/FaceTeachSignUp.vue b/src/views/faceteach/FaceTeachSignUp.vue index be8a150..d49f32c 100644 --- a/src/views/faceteach/FaceTeachSignUp.vue +++ b/src/views/faceteach/FaceTeachSignUp.vue @@ -39,7 +39,16 @@
{{ data.planDto?.address }}
- {{data.isSignUp?'已报名':'立即报名'}} + + {{ + data.isSignUp? + data.isRefused?'审核拒绝':'已报名' + :'立即报名' + }} + + + 重新报名 +
@@ -550,6 +559,12 @@ function onLineSignUp() { ElMessage.success("报名成功"); } +function onLineOnceSignUp() { + request(FACETEACH_SIGNUP, {courseId}) + data.value.isSignUp = true + ElMessage.success("报名成功"); +} + function formateArr(strs) { let arrs = strs.split(',') console.log('112233', arrs) From b70e9714aaf5e68a796900a6e6512e47c99dfb74 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Mon, 6 Mar 2023 23:40:17 +0800 Subject: [PATCH 13/38] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=9B=BE=E5=BF=85=E4=BF=AE=E8=BF=9B=E5=BA=A6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/roadmap/PathDetails.vue | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/src/views/roadmap/PathDetails.vue b/src/views/roadmap/PathDetails.vue index ccf5713..bb4f469 100644 --- a/src/views/roadmap/PathDetails.vue +++ b/src/views/roadmap/PathDetails.vue @@ -219,7 +219,7 @@
-
+
{{ parseInt((data.currentReqCnt || 0) / (data.totalReqCnt || 1) * 100) }}%
From f4f45e58b617f80096b0924492cdc0623b78789a Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 00:55:16 +0800 Subject: [PATCH 14/38] =?UTF-8?q?fix:=E9=A1=B9=E7=9B=AE=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=BA=A6=E5=B0=8F=E7=BB=84=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=BA=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 2 +- src/views/project/ProjectDetails.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api.js b/src/api/api.js index 5f5dc6c..e6d384f 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -88,7 +88,7 @@ export const QueryDiscussSubmitDetailByDiscussId = '/discussSubmit/queryDiscussS export const EvaluationToLearn = '/evaluation/evaluationToLearn post' // 个人/小组完成度排行 -export const CompletionList = `/stu/project/rank_list/completion_list` +export const CompletionList = `/stu/project/rank_list/project_rank_list` // 积分排行榜 export const PointList = `/stu/project/rank_list/point_list` diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index ccc5121..d3ef708 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -229,7 +229,7 @@ - +
From e3e352841d0142866cc7fbc4430653b258a430cb Mon Sep 17 00:00:00 2001 From: caozc Date: Tue, 7 Mar 2023 01:25:17 +0800 Subject: [PATCH 15/38] =?UTF-8?q?fix:=20=E6=8A=A5=E5=90=8D=E7=8A=B6?= =?UTF-8?q?=E6=80=81=EF=BC=9A=E5=A2=9E=E5=BC=BA=E9=87=8D=E5=A4=8D=E6=8A=A5?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faceteach/FaceTeachSignUp.vue | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/views/faceteach/FaceTeachSignUp.vue b/src/views/faceteach/FaceTeachSignUp.vue index d49f32c..17de29a 100644 --- a/src/views/faceteach/FaceTeachSignUp.vue +++ b/src/views/faceteach/FaceTeachSignUp.vue @@ -39,14 +39,12 @@
{{ data.planDto?.address }}
- + {{ - data.isSignUp? - data.isRefused?'审核拒绝':'已报名' - :'立即报名' + data.isRefused ? '审核拒绝' : data.isSignUp? '已报名' :'立即报名' }} - + 重新报名
@@ -550,8 +548,8 @@ function submitReplayComment() { } // 报名 -function onLineSignUp() { - if(data.value.isSignUp){ +function onLineSignUp(isAgain) { + if(data.value.isSignUp && !isAgain){ return; } request(FACETEACH_SIGNUP, {courseId}) @@ -559,12 +557,6 @@ function onLineSignUp() { ElMessage.success("报名成功"); } -function onLineOnceSignUp() { - request(FACETEACH_SIGNUP, {courseId}) - data.value.isSignUp = true - ElMessage.success("报名成功"); -} - function formateArr(strs) { let arrs = strs.split(',') console.log('112233', arrs) From 2593099125972105407cbb24df0b68d97f94674a Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 01:59:56 +0800 Subject: [PATCH 16/38] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index c177619..7fae5c8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,7 +38,7 @@ import {useRoute} from "vue-router/dist/vue-router"; import {USER_INFO} from "@/api/api"; import {IsPhone} from "@/api/utils"; -console.log("版本1.3.8------------"); +console.log("版本1.3.9------------"); const store = useStore(); const { path } = useRoute(); onMounted(() => { From d01fef96a53c0a0dcaded9c250b6b264e761d409 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 15:21:39 +0800 Subject: [PATCH 17/38] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE=E6=8A=A5=E5=90=8D=E9=A1=B5=E9=9D=A2=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E9=99=90=E5=88=B6=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=BC=80=E8=AF=BE?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faceteach/FaceTeachSignUp.vue | 72 +++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/src/views/faceteach/FaceTeachSignUp.vue b/src/views/faceteach/FaceTeachSignUp.vue index 17de29a..1c3d9ba 100644 --- a/src/views/faceteach/FaceTeachSignUp.vue +++ b/src/views/faceteach/FaceTeachSignUp.vue @@ -29,8 +29,7 @@
{{ - dayjs(data.planDto?.beginTime).format('YYYY-MM-DD HH:MM') + " 至 " + - dayjs(data.planDto?.endTime).format('YYYY-MM-DD HH:MM') + data.planDto?.beginTime + " 至 " + data.planDto?.endTime }}
@@ -39,12 +38,22 @@
{{ data.planDto?.address }}
- + {{ data.isRefused ? '审核拒绝' : data.isSignUp? '已报名' :'立即报名' }} - + 重新报名
@@ -371,8 +380,56 @@ const download = (url) => { const downloads = (url) => { ElMessage.warning("未在有效时间范围内,请耐心等待!"); }; -let timer = null; +//判断能否报名 +function isSignClick() { + let beginTime = new Date(data.value.planDto?.beginTime).getTime(); + let endTime = + !data.value.planDto?.afterStart || data.value.afterStart == "0" + ? new Date(data.value.planDto?.endTime).getTime() + : new Date(data.value.planDto?.beginTime).getTime(); + let nowTime = new Date().getTime(); + if ( + data.value.planDto?.beforeStart && + data.value.planDto?.afterStart && + data.value.beforeStart !== "0" && + data.value.afterStart !== "0" + ) { + //有开始前有开始后 + beginTime = beginTime - data.value.planDto?.beforeStart * 60 * 1000; + endTime = endTime + data.value.planDto?.afterStart * 60 * 1000; + console.log("1111"); + } else if ( + data.value.planDto?.beforeStart && + !data.value.planDto?.afterStart && + data.value.beforeStart !== "0" && + data.value.afterStart == "0" + ) { + //只有开始前无开始后 + beginTime = beginTime - data.value.planDto?.beforeStart * 60 * 1000; + console.log("11112222"); + } else if ( + !data.value.planDto?.beforeStart && + data.value.planDto?.afterStart && + data.value.beforeStart == "0" && + data.value.afterStart !== "0" + ) { + //无开始前有开始后 + endTime = endTime + data.value.planDto?.afterStart * 60 * 1000; + console.log("1111333"); + } + if (nowTime < endTime && nowTime > beginTime) { + state.isAllowSign = true; + } else { + state.isAllowSign = false; + } + console.log(state.isAllowSign) +} + + +watch(data,()=>{ + isSignClick(); +}) // 查看更多-展开回复列表 function lookMore(i) { @@ -549,6 +606,11 @@ function submitReplayComment() { // 报名 function onLineSignUp(isAgain) { + if (!state.isAllowSign) { + // console.log("data.signFlag", data.value.signFlag, isAllowSign); + ElMessage.warning("未在允许报名时间范围内"); + return; + } if(data.value.isSignUp && !isAgain){ return; } From b7d9bdb99f6e6dfbde7a3575c87065ebfcf9750a Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 15:33:13 +0800 Subject: [PATCH 18/38] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE=E6=8A=A5=E5=90=8D=E9=A1=B5=E9=9D=A2=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E9=99=90=E5=88=B6=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=BC=80=E8=AF=BE?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/faceteach/FaceTeachSignUp.vue | 40 ++----------------------- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/src/views/faceteach/FaceTeachSignUp.vue b/src/views/faceteach/FaceTeachSignUp.vue index 1c3d9ba..6e4e824 100644 --- a/src/views/faceteach/FaceTeachSignUp.vue +++ b/src/views/faceteach/FaceTeachSignUp.vue @@ -381,44 +381,11 @@ const downloads = (url) => { ElMessage.warning("未在有效时间范围内,请耐心等待!"); }; -//判断能否报名 +//判断能否报名 (TODO-大于面授课截止时间就不能报名了,其余均可以) function isSignClick() { - let beginTime = new Date(data.value.planDto?.beginTime).getTime(); - let endTime = - !data.value.planDto?.afterStart || data.value.afterStart == "0" - ? new Date(data.value.planDto?.endTime).getTime() - : new Date(data.value.planDto?.beginTime).getTime(); + let endTime = new Date(data.value.planDto?.endTime).getTime() let nowTime = new Date().getTime(); - if ( - data.value.planDto?.beforeStart && - data.value.planDto?.afterStart && - data.value.beforeStart !== "0" && - data.value.afterStart !== "0" - ) { - //有开始前有开始后 - beginTime = beginTime - data.value.planDto?.beforeStart * 60 * 1000; - endTime = endTime + data.value.planDto?.afterStart * 60 * 1000; - console.log("1111"); - } else if ( - data.value.planDto?.beforeStart && - !data.value.planDto?.afterStart && - data.value.beforeStart !== "0" && - data.value.afterStart == "0" - ) { - //只有开始前无开始后 - beginTime = beginTime - data.value.planDto?.beforeStart * 60 * 1000; - console.log("11112222"); - } else if ( - !data.value.planDto?.beforeStart && - data.value.planDto?.afterStart && - data.value.beforeStart == "0" && - data.value.afterStart !== "0" - ) { - //无开始前有开始后 - endTime = endTime + data.value.planDto?.afterStart * 60 * 1000; - console.log("1111333"); - } - if (nowTime < endTime && nowTime > beginTime) { + if (nowTime < endTime) { state.isAllowSign = true; } else { state.isAllowSign = false; @@ -426,7 +393,6 @@ function isSignClick() { console.log(state.isAllowSign) } - watch(data,()=>{ isSignClick(); }) From 45b3d2ea978b41fc32d0f0f010604e61f83d31b3 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 17:58:41 +0800 Subject: [PATCH 19/38] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 7fae5c8..4467bb5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -38,7 +38,7 @@ import {useRoute} from "vue-router/dist/vue-router"; import {USER_INFO} from "@/api/api"; import {IsPhone} from "@/api/utils"; -console.log("版本1.3.9------------"); +console.log("版本1.4.0------------"); const store = useStore(); const { path } = useRoute(); onMounted(() => { From 43042f1b0c265168618a0f1cc269511a63b4edad Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 20:11:54 +0800 Subject: [PATCH 20/38] =?UTF-8?q?fix:=E9=BB=98=E8=AE=A4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BA=94=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/ProjectDetails.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index d3ef708..b098e3e 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -267,7 +267,7 @@
-
@@ -290,7 +290,7 @@
-
@@ -306,7 +306,7 @@
-
@@ -407,7 +407,6 @@ const tabChange = (tabs) => { myIndex.value = res.data.myIndex myPoint.value = res.data.myPointsCount }) - tableRankData.value = 12 } const myIndex = ref('') const myPoint = ref('') From 6193f6a05963a2a894d52e7445d8550e8b3c8b39 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Tue, 7 Mar 2023 20:22:07 +0800 Subject: [PATCH 21/38] fix -- bug --- src/api/api.js | 5 +++- src/views/roadmap/PathChapterDetails.vue | 33 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/views/roadmap/PathChapterDetails.vue diff --git a/src/api/api.js b/src/api/api.js index 5f5dc6c..15ef42d 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -124,7 +124,10 @@ export const PostList = `/statement/list` export const QueryEvaluationTaskStatusOne = `/evaluation/queryEvaluationTaskStatusOne` // 投票浏览和参与数目 -export const EditVoteInvolvedAndBrowse = `/vote/editVoteInvolvedAndBrowse post` +export const EditVoteInvolvedAndBrowse = `/vote/editVoteInvolvedAndBrowse post` + +//查询路径关卡列表 +export const ROUTER_DETAIL_CHAPTER_LIST = `/stu/router/chapterPcList` diff --git a/src/views/roadmap/PathChapterDetails.vue b/src/views/roadmap/PathChapterDetails.vue new file mode 100644 index 0000000..947b9dc --- /dev/null +++ b/src/views/roadmap/PathChapterDetails.vue @@ -0,0 +1,33 @@ + + + + From 683636bb65e3812864d3d779b864f2c0bb845e7a Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Tue, 7 Mar 2023 20:29:10 +0800 Subject: [PATCH 22/38] fix -- bug --- src/views/roadmap/LearnPath.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/roadmap/LearnPath.vue b/src/views/roadmap/LearnPath.vue index c4fa330..a3fe9a4 100644 --- a/src/views/roadmap/LearnPath.vue +++ b/src/views/roadmap/LearnPath.vue @@ -52,7 +52,7 @@
From 3930ea07b05f311cc5b06623c3ae7aa612078e8a Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 7 Mar 2023 22:34:40 +0800 Subject: [PATCH 23/38] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=B8=A6=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=9A=84=E6=8A=95=E7=A5=A8=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ballot/BallotPage.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/views/ballot/BallotPage.vue b/src/views/ballot/BallotPage.vue index 764a421..768f71c 100644 --- a/src/views/ballot/BallotPage.vue +++ b/src/views/ballot/BallotPage.vue @@ -99,6 +99,7 @@ style="width: 140px; height: 140px; border-radius: 8px" :src="value.optionPictureAddress" /> +