fix: 🐛 解决几个发现的重置bug

master
Yer 2023-09-14 18:07:42 +08:00
parent 4f915a32b6
commit 54be87efea
4 changed files with 29 additions and 11 deletions

View File

@ -277,9 +277,14 @@ export default {
this.getDataList();
},
handleReset() {
this.searchForm = {};
this.searchForm = {
//
pageNumber: 1, //
pageSize: 10, //
sort: "startTime", //
order: "desc", //
};
this.selectDate = "";
this.searchForm.pageNumber = 1;
this.getDataList();
},
clearSelectAll() {

View File

@ -168,9 +168,13 @@ export default {
//
handleReset () {
this.selectDate = "";
this.searchForm = {};
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.searchForm = {
//
pageNumber: 1, //
pageSize: 10, //
sort: "startTime", //
order: "desc", //
};
this.getDataList();
},
//

View File

@ -205,10 +205,15 @@ export default {
},
//
handleReset() {
this.searchForm = {};
this.searchForm = {
//
pageNumber: 0, //
pageSize: 10, //
sort: "startTime",
order: "desc", //
};
this.selectDate = "";
this.searchForm.pageNumber = 0;
this.searchForm.pageSize = 10;
this.getDataList();
},
//

View File

@ -145,10 +145,14 @@ export default {
},
//
handleReset () {
this.searchForm = {};
this.searchForm = {
//
pageNumber: 1, //
pageSize: 10, //
sort: "startTime",
order: "desc", //
};
this.selectDate = "";
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
//