Commit e4083d1b authored by 李志鸣's avatar 李志鸣

fea(报工点查询): 功能联调(100%)

parent 41310379
......@@ -137,7 +137,31 @@
}
},
// 点击刷新按钮
doRefreshClick () {},
async doRefreshClick () {
try {
let params = {
searchCode: this.searchList.searchCode || 'PASS_INFO',
filters: this.searchList.filters || [],
pageSize: this.tableConfig.paginationConfig.pageSize,
pageNum: this.tableConfig.paginationConfig.currentPage
};
if (this.searchList.filters) {
for (let i = 0, item = this.searchList.filters; i < item.length; i++) {
if (item[i].fieldCode === 'scanType') {
params.scanType = item[i].value;
params.filters.splice(i, 1);
break;
}
}
}
let response = await this.$service('POST', '/pass/findPassInfoBySearchCode', params);
this.tableConfig.data = _.cloneDeep(response.list);
this.tableConfig.paginationConfig.total = _.cloneDeep(response.total);
this.$message.success('刷新成功');
} catch (error) {
throw error;
}
},
// 点击搜索按钮
doSearchClick (searchValue) {
this.searchList = searchValue;
......@@ -175,6 +199,15 @@
pageSize: this.tableConfig.paginationConfig.pageSize,
pageNum: this.tableConfig.paginationConfig.currentPage
};
if (this.searchList.filters) {
for (let i = 0, item = this.searchList.filters; i < item.length; i++) {
if (item[i].fieldCode === 'scanType') {
params.scanType = item[i].value;
params.filters.splice(i, 1);
break;
}
}
}
let response = await this.$service('POST', '/pass/findPassInfoBySearchCode', params);
this.tableConfig.data = _.cloneDeep(response.list);
this.tableConfig.paginationConfig.total = _.cloneDeep(response.total);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment