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] =?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
}
}
}