From 9a36cd91069dfc67f0fe11bcf52e9c174c5d5903 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 17 Apr 2024 15:23:03 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/router/RouterFaceStu.vue | 2 +- src/views/courselibrary/CoursewareManage.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/drawers/router/RouterFaceStu.vue b/src/components/drawers/router/RouterFaceStu.vue index 2203721c..a03cb60a 100644 --- a/src/components/drawers/router/RouterFaceStu.vue +++ b/src/components/drawers/router/RouterFaceStu.vue @@ -512,7 +512,7 @@ const qrcodeVisibleSign = () => { courseName: props.courseName, createName: data.value[coursePlanIndex.value].offteachers.map(teacher => teacher.teacherName).join(', '), name: signName + '课程签到', - url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${taskId}&taskType=${2}&type=${3}`, + url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${taskId}&taskType=${2}&type=${3}&openCourseId=${taskId}`, }); } // qrCode({ diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index d6d7ce2d..f43b2915 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -5118,7 +5118,9 @@ function onFocusEnd(){ : process.env.VUE_APP_BASE_API + `/admin/student/studentSign?taskId=${ record.id - }&taskType=${2}&type=${3}`, + }&taskType=${2}&type=${3}&openCourseId=${ + record.id + }`, }; console.log("codeInfo", state.codeInfo, record); state.codeIndex = 0; From 4d3a54c15f4e1f5f7002252d2d7029582d9123b2 Mon Sep 17 00:00:00 2001 From: joshen <445497689@qq.com> Date: Fri, 24 May 2024 23:39:11 +0800 Subject: [PATCH 2/6] tranningManager down loading add --- src/utils/zipdownload.js | 3 ++- src/views/report/TrainingNewManager.vue | 28 ++++++++++++++++--------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/utils/zipdownload.js b/src/utils/zipdownload.js index 710a8c3d..af64a373 100644 --- a/src/utils/zipdownload.js +++ b/src/utils/zipdownload.js @@ -19,7 +19,7 @@ export function downLoadZip(str, filename) { }) } const baseUrlManage = process.env.VUE_APP_BASE_API -export function downLoadZipManage(str, filename) { +export function downLoadZipManage(str, filename,fun) { var url = baseUrlManage + str axios({ method: 'get', @@ -28,6 +28,7 @@ export function downLoadZipManage(str, filename) { headers: { 'Authorization': 'Bearer ' + getCookieForName("token") } }).then(res => { resolveBlob(res, mimeMap.xlsx,filename) + if(fun) fun() }) } /** diff --git a/src/views/report/TrainingNewManager.vue b/src/views/report/TrainingNewManager.vue index db40fcb8..7aa79012 100644 --- a/src/views/report/TrainingNewManager.vue +++ b/src/views/report/TrainingNewManager.vue @@ -1,11 +1,13 @@