From 7887434cde98de8ea5e24ea10db09d014568c79d Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期四, 22 八月 2024 10:38:15 +0800 Subject: [PATCH] 修改 --- src/views/onlineEducation/studentSupervision/index.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/onlineEducation/studentSupervision/index.vue b/src/views/onlineEducation/studentSupervision/index.vue index 14dfa87..a8b88a2 100644 --- a/src/views/onlineEducation/studentSupervision/index.vue +++ b/src/views/onlineEducation/studentSupervision/index.vue @@ -18,10 +18,10 @@ </div> <el-table v-loading="loading" :data="expertList"> <el-table-column label="姓名" align="center" prop="name" /> - <el-table-column label="身份证号" align="center" prop="idcard" :show-overflow-tooltip="true" /> + <el-table-column label="身份证号" align="center" prop="idcard" :show-overflow-tooltip="true" width="170" /> <el-table-column label="性别" align="center" prop="sex" > <template #default="scope"> - <span>{{scope.row.sex == 0 ? '男' : '女'}}</span> + <span>{{scope.row.sex == 1 ? '男' : scope.row.sex == 2?'女':'未知'}}</span> </template> </el-table-column> <el-table-column label="手机号" align="center" prop="phone" /> @@ -59,7 +59,7 @@ <pagination v-show="total>0" :total="total" - :page.sync="queryParams.pageIndex" + :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> @@ -91,6 +91,7 @@ import examManage from '@/views/onlineEducation/examManage/index.vue' import learningRecord from '@/views/onlineEducation/learnRecord/index.vue' import { listStudent } from '@/api/onlineEducation/student' +import noPic from '@/assets/images/none.png' import { listPlat } from '@/api/onlineEducation/plat' export default { name: "nPeopleManage", @@ -107,7 +108,7 @@ expertTypes: [], expertList: [], queryParams: { - pageIndex: 1, + pageNum: 1, pageSize: 10, idcard: '', name: '' @@ -125,7 +126,13 @@ this.loading = true; listStudent( this.queryParams).then((res) => { if (res.code == 200) { - this.expertList = res.rows + this.expertList = res.rows.map(item => { + return { + ...item, + authPhoto: item.authPhoto !='-' ? item.authPhoto : noPic + + } + }) this.total = res.total this.loading = false; } -- Gitblit v1.9.2