From 5f7358dfb2b7de00ed9f4f9683627da0700088e5 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 29 Jul 2026 18:04:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/apply_list.vue | 45 +++++++----- src/views/course/components/showCode.vue | 92 +++++++++++++++++++----- 2 files changed, 103 insertions(+), 34 deletions(-) diff --git a/src/views/course/apply_list.vue b/src/views/course/apply_list.vue index 80c976c..f58b41b 100644 --- a/src/views/course/apply_list.vue +++ b/src/views/course/apply_list.vue @@ -500,6 +500,18 @@ this.getList() }, async getList() { + const filter = [{ + key: 'course_id', + op: 'eq', + value: this.select.course_id + }] + if (this.select.status !== '' && this.select.status !== null && this.select.status !== undefined) { + filter.push({ + key: 'status', + op: 'eq', + value: this.select.status + }) + } const res = await index({ page: this.select.page, page_size: this.select.page_size, @@ -514,15 +526,7 @@ type: this.select.type, sort_name: 'score', sort_type: this.select.sort_type, - filter: [{ - key: 'course_id', - op: 'eq', - value: this.select.course_id - }, { - key: 'status', - op: 'eq', - value: this.select.status - }] + filter }) this.list = res.data this.total = res.total @@ -577,6 +581,19 @@ _export['user.idcard'] = '身份证号' _export['score'] = '评分' + const filter = [{ + key: 'course_id', + op: 'eq', + value: this.select.course_id + }] + if (this.select.status !== '' && this.select.status !== null && this.select.status !== undefined) { + filter.push({ + key: 'status', + op: 'eq', + value: this.select.status + }) + } + download( '/api/admin/course-signs/index', 'get', { @@ -592,15 +609,7 @@ sort_name: 'score', sort_type: this.select.sort_type, export_fields: _export, - filter: [{ - key: 'course_id', - op: 'eq', - value: this.select.course_id - }, { - key: 'status', - op: 'eq', - value: this.select.status - }], + filter, is_export: 1, page: 1, page_size: 999 diff --git a/src/views/course/components/showCode.vue b/src/views/course/components/showCode.vue index 70c8b6b..666efd0 100644 --- a/src/views/course/components/showCode.vue +++ b/src/views/course/components/showCode.vue @@ -16,9 +16,18 @@ -
{{ loading ? '加载中...' : '暂无二维码' }}
+