...
|
...
|
@@ -242,27 +242,28 @@ export default { |
|
|
methods: {
|
|
|
filterValues() {
|
|
|
const queryParams = {};
|
|
|
if (this.enableFilter) {
|
|
|
_.each(this.filters, (value, key) => {
|
|
|
queryParams[key] = value.model;
|
|
|
});
|
|
|
}
|
|
|
_.each(this.filters, (value, key) => {
|
|
|
queryParams[key] = value.model;
|
|
|
});
|
|
|
const { current, pageSize } = this.pageData;
|
|
|
return { ...queryParams, pageNo: current, pageSize };
|
|
|
},
|
|
|
search() {
|
|
|
this.enableFilter = true;
|
|
|
this.filters.timeFlag.model = '';
|
|
|
this.pageData.current = 1;
|
|
|
this.list();
|
|
|
},
|
|
|
reset() {
|
|
|
this.enableFilter = false;
|
|
|
this.pageData.current = 1;
|
|
|
_.each(this.filters, value => {
|
|
|
if (value.hasOwnProperty('model')) {
|
|
|
value.model = '';
|
|
|
}
|
|
|
});
|
|
|
this.list();
|
|
|
},
|
|
|
timeFlag(flag) {
|
|
|
this.enableFilter = false;
|
|
|
this.timeFlag.model = flag;
|
|
|
this.filters.timeFlag.model = flag;
|
|
|
this.pageData.current = 1;
|
|
|
this.list();
|
|
|
},
|
...
|
...
|
|