审核传参

This commit is contained in:
hongchao 2025-02-14 17:42:29 +08:00
parent 83825b59a1
commit 3c608c3763
1 changed files with 14 additions and 3 deletions

View File

@ -14,7 +14,8 @@
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
end-placeholder="结束日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item prop="keyWord">
@ -218,9 +219,18 @@ export default {
},
/** 查询列表 */
getList() {
async getList() {
this.loading = true;
getTotalList(null).then((response) => {
const params = {
keyWord: this.queryParams.keyWord,
startTime: this.queryParams.time && this.queryParams.time[0],
endTime: this.queryParams.time && this.queryParams.time[1],
pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum
}
console.log('11111111111',params)
await getTotalList(params).then((response) => {
console.log('222222222',params)
this.tableList = response.data.rows;
this.total = response.data.total;
this.loading = false;
@ -239,6 +249,7 @@ export default {
this.resetForm("queryForm");
this.$refs.multipleTable.clearSelection();
this.queryParams.keyWord = null;
this.queryParams.time=[]
this.handleQuery();
},
/** 搜索按钮操作 */