diff --git a/src/components/signup/SignupModal.vue b/src/components/signup/SignupModal.vue
index d0662d20..57abd5eb 100644
--- a/src/components/signup/SignupModal.vue
+++ b/src/components/signup/SignupModal.vue
@@ -32,7 +32,8 @@
姓名:
-
+
+
搜索
重置
@@ -412,7 +413,15 @@ export default {
this.projectParams.studentName = "";
this.getProjectStu();
},
- onSearchStu() {
+ /**
+ * 获取“快速选人”列表
+ * @param {Boolean} resetPage 是否重置到第 1 页(新的搜索条件或重置时需要)
+ */
+ onSearchStu(resetPage = false) {
+ // 当关键字、组织等搜索条件变化或点击“搜索”按钮时,应将页码重置为 1
+ if (resetPage) {
+ this.stuTable.pageNo = 1;
+ }
fetchQuickStudents({
...this.nameSearch,
pageNo: this.stuTable.pageNo,
@@ -451,6 +460,8 @@ export default {
},
resetStu() {
this.nameSearch = { keyword: "", departId: "" };
+ // 重置时也应从第 1 页重新加载
+ this.stuTable.pageNo = 1;
this.onSearchStu();
},
fetchOrgTree() {