修复查询问题
This commit is contained in:
@@ -105,6 +105,8 @@ export default {
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
phone: null,
|
||||
nickname: null,
|
||||
searchKey: null
|
||||
}
|
||||
};
|
||||
@@ -139,11 +141,22 @@ export default {
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
// 如果有搜索关键字,同时设置手机号和昵称参数
|
||||
if (this.queryParams.searchKey) {
|
||||
this.queryParams.phone = this.queryParams.searchKey;
|
||||
this.queryParams.nickname = this.queryParams.searchKey;
|
||||
} else {
|
||||
this.queryParams.phone = null;
|
||||
this.queryParams.nickname = null;
|
||||
}
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.queryParams.phone = null;
|
||||
this.queryParams.nickname = null;
|
||||
this.queryParams.searchKey = null;
|
||||
this.handleQuery();
|
||||
},
|
||||
/** 状态修改 */
|
||||
|
||||
Reference in New Issue
Block a user