From 56289d3964c0857723fe517102187341623826bd Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Tue, 23 Jul 2024 10:19:05 +0800
Subject: [PATCH] 分页bug修改
---
src/views/onlineEducation/studentSupervision/index.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/views/onlineEducation/studentSupervision/index.vue b/src/views/onlineEducation/studentSupervision/index.vue
index b1f3eb4..3787e21 100644
--- a/src/views/onlineEducation/studentSupervision/index.vue
+++ b/src/views/onlineEducation/studentSupervision/index.vue
@@ -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