From 16c26cd6e8b39873764d40cf069d04a250bc7c16 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Tue, 28 Mar 2023 11:30:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BC=80=E8=AF=BE/=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/router/RouterFaceStu.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/drawers/router/RouterFaceStu.vue b/src/components/drawers/router/RouterFaceStu.vue index 498ff640..2e77fd2c 100644 --- a/src/components/drawers/router/RouterFaceStu.vue +++ b/src/components/drawers/router/RouterFaceStu.vue @@ -300,7 +300,10 @@ watch(() => data.value, () => { tableRef.value.fetch(); }); +// 开课签到二维码名字 +const openCourseName = ref(""); const ChoiceCourse = (n) => { + openCourseName.value = data.value[n].name; coursePlanIndex.value = n; params.value.pid = data.value[n].id; tableRef.value.fetch(); @@ -378,7 +381,7 @@ function resetStudentPage() { const qrcodeVisible = () => { qrCode({ title: "【开课】二维码", - name: props.datasource?.name, + name: openCourseName.value?openCourseName.value:data.value[0]?.name, // url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${props.datasource.id}&taskType=${props.datasource.type}&type=${props.type}`, url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/stu/project/redirectDetail?courseId=${data.value[coursePlanIndex.value]?.id}`, }); @@ -387,7 +390,7 @@ const qrcodeVisible = () => { const qrcodeVisibleSign = () => { qrCode({ title: "【签到】二维码", - name: props.datasource?.name, + name: openCourseName.value?openCourseName.value:data.value[0]?.name, // url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${props.datasource.id}&taskType=${props.datasource.type}&type=${props.type}`, url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${data.value[coursePlanIndex.value]?.id}&taskType=${2}&type=${3}`, });