fix: 🐛 解决几个已知的bug

This commit is contained in:
Yer
2023-09-14 13:58:50 +08:00
parent 78df54d153
commit 4f915a32b6
3 changed files with 35 additions and 9 deletions

View File

@@ -241,10 +241,21 @@
},
// 重置
handleReset() {
this.searchForm = {};
const defaultForm = {
// 搜索框初始化对象
pageNumber: 1, // 当前页数
pageSize: 10, // 页面大小
sort: "createTime", // 默认排序字段
order: "desc", // 默认排序方式
startDate: "", // 起始时间
endDate: "", // 终止时间
serviceType:"RETURN_GOODS",
orderSn:"",
memberName:"",
goodsName:""
}
this.searchForm = defaultForm;
this.selectDate = ''
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
// 范围时间选择格式化

View File

@@ -235,10 +235,21 @@
},
// 重置
handleReset() {
this.searchForm = {
// 搜索框初始化对象
pageNumber: 1, // 当前页数
pageSize: 10, // 页面大小
sort: "createTime", // 默认排序字段
order: "desc", // 默认排序方式
startDate: "", // 起始时间
endDate: "", // 终止时间
serviceType:"RETURN_MONEY",
orderSn:"",
memberName:"",
goodsName:""
}
this.selectDate = ''
this.searchForm = {}
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
// 范围时间重新赋值