From ae43feac8c6b2372f5a061ead68e71027e8877e1 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Thu, 27 Jun 2024 09:25:10 +0800
Subject: [PATCH] 修改
---
src/views/onlineEducation/count/components/studentList.vue | 53 +++++++++++++++++++++++++++++++++++------------------
1 files changed, 35 insertions(+), 18 deletions(-)
diff --git a/src/views/onlineEducation/count/components/studentList.vue b/src/views/onlineEducation/count/components/studentList.vue
index 7ab47c9..1875592 100644
--- a/src/views/onlineEducation/count/components/studentList.vue
+++ b/src/views/onlineEducation/count/components/studentList.vue
@@ -17,47 +17,54 @@
</el-table-column>
<el-table-column
label="身份证号"
- prop="idCard"
+ prop="idcard"
width="160" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column
- prop="totalTime"
+ prop="lessonTocal"
label="总学时"
>
</el-table-column>
<el-table-column
- prop="learnedTime"
+ prop="lessonNum"
label="已学学时"
></el-table-column>
<el-table-column
- prop="isEnd"
+ prop="finishStatus"
label="是否已结束培训"
- ></el-table-column>
+ >
+ <template #default="scope">
+ {{scope.row.finishStatus == 0 ? '未结束' : '已结束'}}
+ </template>
+
+ </el-table-column>
<el-table-column label="学时报告" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button
- v-if="scope.row.isEnd === '是'"
+ v-if="scope.row.finishStatus == 1"
size="mini"
type="text"
style="color: #1890ff"
- @click="viewLessonReport"
+ @click="viewLessonReport(scope.row.url)"
>查看学时报告</el-button>
</template>
</el-table-column>
</el-table>
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageIndex"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
+<!-- <pagination-->
+<!-- v-show="total>0"-->
+<!-- :total="total"-->
+<!-- :page.sync="queryParams.pageIndex"-->
+<!-- :limit.sync="queryParams.pageSize"-->
+<!-- @pagination="getList"-->
+<!-- />-->
<lessonReport ref="lessonRef"></lessonReport>
</el-dialog>
</template>
<script >
import lessonReport from '@/views/onlineEducation/studentSupervision/compontents/lessonReport.vue'
+import { studentDetail } from '@/api/onlineEducation/student'
+import { listCourse } from '@/api/onlineEducation/course'
export default {
name: 'addUser',
components: {
@@ -68,8 +75,11 @@
dialogVisible: false,
dialogStatus: '',
dataForm: {},
+ uuid: '',
total: 2,
- queryParams: {},
+ queryParams: {
+
+ },
learningTable: [
{
name: '张三',
@@ -96,11 +106,18 @@
},
methods: {
getList() {
-
+ this.loading = true;
+ studentDetail( this.uuid).then((res) => {
+ if (res.code == 200) {
+ this.learningTable = res.data
+ this.loading = false;
+ }
+ })
},
- openDialog (type, data) {
+ openDialog (data) {
+ this.uuid = data.uuid;
+ this.getList();
this.dialogVisible = true;
- this.dialogStatus = type;
},
handleClose() {
--
Gitblit v1.9.2