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 ? '加载中...' : '暂无二维码' }}
+