|
@@ -392,13 +392,16 @@ export default {
|
|
|
refreshChange() {
|
|
|
this.onLoad(this.page);
|
|
|
},
|
|
|
- onLoad(page, params = { parentId: 0 }) {
|
|
|
- let queryParams = Object.assign({}, params, {
|
|
|
- size: page.pageSize,
|
|
|
- current: page.currentPage,
|
|
|
- corpsTypeId: this.treeDeptId,
|
|
|
- corpType: customerParameter.code
|
|
|
- });
|
|
|
+ onLoad(page, params = {}) {
|
|
|
+ // 将搜索条件与现有参数合并
|
|
|
+ const queryParams = {
|
|
|
+ ...params,
|
|
|
+ parentId: this.treeDeptId,
|
|
|
+ size: page.pageSize,
|
|
|
+ current: page.currentPage,
|
|
|
+ corpsTypeId: this.treeDeptId,
|
|
|
+ corpType: customerParameter.code
|
|
|
+ };
|
|
|
customerList(queryParams).then(res => {
|
|
|
this.dataList = res.data.data.records;
|
|
|
this.page.total = res.data.data.total;
|