From ae43feac8c6b2372f5a061ead68e71027e8877e1 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期四, 27 六月 2024 09:25:10 +0800 Subject: [PATCH] 修改 --- src/views/onlineEducation/studentSupervision/compontents/learningRecord.vue | 27 +++++++++++++++++++++------ 1 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/onlineEducation/studentSupervision/compontents/learningRecord.vue b/src/views/onlineEducation/studentSupervision/compontents/learningRecord.vue index b58f0dc..3a9bed9 100644 --- a/src/views/onlineEducation/studentSupervision/compontents/learningRecord.vue +++ b/src/views/onlineEducation/studentSupervision/compontents/learningRecord.vue @@ -4,7 +4,7 @@ :visible.sync="dialogVisible" :modal-append-to-body="false" :close-on-click-modal="false" - width="850px" + width="50%" :before-close="handleClose" append-to-body > @@ -64,6 +64,8 @@ </template> <script > +import { listRecord, listStudent } from '@/api/onlineEducation/student' + export default { name: 'addUser', components: { @@ -74,7 +76,12 @@ dialogStatus: '', dataForm: {}, total: 2, - queryParams: {}, + queryParams: { + pageIndex: 1, + pageSize: 10, + idcard: '', + name: '' + }, learningTable: [ { startTime: '2024-6-11 10:33:00', @@ -102,12 +109,20 @@ created() { }, methods: { - getList() { - + getList(){ + this.loading = true; + listRecord( this.queryParams).then((res) => { + if (res.code == 200) { + this.learningTable = res.rows + this.total = res.total + this.loading = false; + } + }) }, - openDialog (type, data) { + openDialog (data) { this.dialogVisible = true; - this.dialogStatus = type; + this.queryParams.idcard = data.idcard + this.getList(); }, handleClose() { -- Gitblit v1.9.2