From 9bdedc607744bae3198e89dbdcf5748535fc5c8c Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 5 Aug 2025 14:41:40 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E5=AD=A6=E5=91=98=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/student/search.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/student/search.vue b/src/views/student/search.vue index 2f99f7b..8420191 100644 --- a/src/views/student/search.vue +++ b/src/views/student/search.vue @@ -175,7 +175,7 @@
-
统计:{{searyear?searyear+'年':'本年度'}}学员共计{{year_total}}人;学员总计{{alltotal}}人。
+
统计:{{searyear?searyear+'年':'本年度'}}报名{{year_total}}人;本年度培养学员{{year_training_total}}人;累计报名{{alltotal}}人;累计培养学员{{training_total}}人。
@@ -175,12 +189,14 @@ import { } from "@/api/course/courseContent.js"; import editClass from "@/views/course/components/editClass.vue"; import addCourse from "@/views/course/components/addCourse.vue"; +import signList from "@/views/courseQr/components/signList.vue"; import { index as teacherIndex } from "@/api/info/teachers.js"; export default { name: "CourseQr", components: { editClass, addCourse, + signList, }, data() { return { @@ -272,6 +288,8 @@ export default { this.course_id = ""; this.course_date = ""; this.courseContentList = []; + this.selectedCourse = null; + this.qrImgUrl = ""; this.getCourse(e); }, async getCourse() { @@ -374,8 +392,8 @@ export default { const link = document.createElement("a"); link.href = this.qrImgUrl; const fileName = this.is_arrange === 0 - ? `${this.selectedCourse.name}-签到二维码.png` - : `${this.selectedCourse.theme}-签到二维码.png`; + ? `${this.selectedCourse && this.selectedCourse.name}-签到二维码.png` + : `${this.selectedCourse && this.selectedCourse.theme}-签到二维码.png`; link.download = fileName; link.target = "_blank"; link.click(); @@ -422,6 +440,15 @@ export default { } }); }, + + // 显示签到记录 + showSignList() { + if (!this.selectedCourse) { + this.$message.warning('请先选择课程或课表'); + return; + } + this.$refs.signList.show(); + }, }, computed: {}, }; From 6cfd7b7c8763d772926d40ad01b88527f2d64583 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 5 Sep 2025 14:54:32 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index 680480d..90cdd01 100644 --- a/vue.config.js +++ b/vue.config.js @@ -27,8 +27,8 @@ module.exports = { * */ publicPath: process.env.ENV === 'staging' ? '/admin' : '/admin', - // outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin', - outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin', + outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin', + // outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项 From 163f25875b133d3322d72e4586a078e2b4defdd3 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 5 Sep 2025 17:09:49 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courseQr/components/signList.vue | 33 ++++++++++++++++------ 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/src/views/courseQr/components/signList.vue b/src/views/courseQr/components/signList.vue index a2d2407..ec8f830 100644 --- a/src/views/courseQr/components/signList.vue +++ b/src/views/courseQr/components/signList.vue @@ -95,14 +95,17 @@
-

签到记录

+

签到记录 + 已签到{{ course_content_check_count }}人,未签到{{ course_content_check_count_no }} +

@@ -135,7 +138,11 @@ export default { data() { return { isShow: false, + course_content_check_count:0, + course_content_check_count_no:0, searchForm: { + page: 1, + page_size: 10, name: '', mobile: '', has_check: '' @@ -144,6 +151,8 @@ export default { course_id: this.courseId, course_content_id: this.courseContentId || '' }, + list:[], + total:0, tableColumns: [ { prop: 'user.name', @@ -176,7 +185,7 @@ export default { { prop: 'course_content_check.created_at', label: '签到时间', - align: 'center', + align: 'center' // width: 180 } ] @@ -271,6 +280,8 @@ export default { // 重置表单 resetForm() { this.searchForm = { + page: 1, + page_size: 10, name: '', mobile: '', has_check: '' @@ -279,14 +290,20 @@ export default { // 刷新表格 refreshTable() { - if (this.$refs.signTable) { - this.$refs.signTable.getTableData(true) - } + this.fetchSignList() }, // 获取签到列表数据 - getSignList(params) { - return getSignList(params) + async fetchSignList(params) { + const res = await getSignList({ + ...this.searchForm, + course_id: this.courseId, + course_content_id: this.courseContentId || '', + }) + this.list = res.list.data + this.course_content_check_count = res.course_content_check_count + this.course_content_check_count_no = res.list.total - res.course_content_check_count + this.total = res.list.total } } } From 7e4efbb03fbc52743ea0bf99fc2b6c7b2309ac79 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 5 Sep 2025 17:16:51 +0800 Subject: [PATCH 09/10] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index 90cdd01..680480d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -27,8 +27,8 @@ module.exports = { * */ publicPath: process.env.ENV === 'staging' ? '/admin' : '/admin', - outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin', - // outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin', + // outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin', + outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项 From 8b6e26fa40955169ce405af94a2c0ac2c029c452 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 5 Sep 2025 17:40:08 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index 680480d..90cdd01 100644 --- a/vue.config.js +++ b/vue.config.js @@ -27,8 +27,8 @@ module.exports = { * */ publicPath: process.env.ENV === 'staging' ? '/admin' : '/admin', - // outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin', - outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin', + outputDir: '/Users/mac/Documents/朗业/2025/s-苏州科技商学院/wx.sstbc.com/public/admin', + // outputDir: '/Users/mac/Documents/朗业/2024/s-苏州科技商学院/wx.sstbc.com/public/admin', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项