|
|
@@ -39,6 +39,8 @@ export default (app, option = {}) => {
|
|
|
onEvent() {
|
|
|
return {
|
|
|
// 'on-load': this.getList,
|
|
|
+ 'size-change': this.getList,
|
|
|
+ 'current-change': this.getList,
|
|
|
'row-save': this.rowSave,
|
|
|
'row-update': this.rowUpdate,
|
|
|
'row-del': this.rowDel,
|
|
|
@@ -61,8 +63,10 @@ export default (app, option = {}) => {
|
|
|
return { ...this.params, ...this.extraParams };
|
|
|
},
|
|
|
loadData() {
|
|
|
+ if (this.year) {}
|
|
|
+ const searchParams = this.getSearchParams();
|
|
|
this.loading = true;
|
|
|
- this.api[option.list || 'getList'](this.page.currentPage, this.page.pageSize, this.getSearchParams()).then(res => {
|
|
|
+ this.api[option.list || 'getList'](this.page.currentPage, this.page.pageSize, searchParams).then(res => {
|
|
|
let data;
|
|
|
if (option.res) {
|
|
|
data = option.res(res.data, this);
|