From bfa061edf56598f05b5817565bf181c64b149f99 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Tue, 23 Jul 2024 16:47:42 +0800
Subject: [PATCH] 提交
---
src/views/onlineEducation/classHourBatch/components/handleStudent.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/views/onlineEducation/classHourBatch/components/handleStudent.vue b/src/views/onlineEducation/classHourBatch/components/handleStudent.vue
index b02d810..1881b56 100644
--- a/src/views/onlineEducation/classHourBatch/components/handleStudent.vue
+++ b/src/views/onlineEducation/classHourBatch/components/handleStudent.vue
@@ -101,6 +101,7 @@
const { queryParams, total, dataList } = toRefs(data);
+const backValue = ref()
onMounted(async ()=>{
const userInfo = JSON.parse(Cookies.get('userInfo'))
console.log("userInfo",userInfo)
@@ -110,6 +111,7 @@
data.isAdmin = false;
}
const val = JSON.parse(route.query.val)
+ backValue.value = val
// data.queryParams.pageId = val.id
data.queryParams.phaseId = val.id
await getList()
@@ -201,7 +203,13 @@
})
}
const back = () => {
- router.push("/class");
+
+ const obj = {
+ pageNum: backValue.value.pageNum,
+ pageSize: backValue.value.pageSize,
+ }
+ const v = JSON.stringify(obj)
+ router.push({ path: "/class", query: { val: v } });
}
--
Gitblit v1.9.2