|
@@ -233,12 +233,14 @@ export default { |
|
@@ -233,12 +233,14 @@ export default { |
233
|
this.candidateListService.favoriteBalanceList(this.filterValues()).then(ret => {
|
233
|
this.candidateListService.favoriteBalanceList(this.filterValues()).then(ret => {
|
234
|
if (ret && ret.code === 200) {
|
234
|
if (ret && ret.code === 200) {
|
235
|
this.tableData = _.get(ret, 'data.records', []);
|
235
|
this.tableData = _.get(ret, 'data.records', []);
|
236
|
- this.tableData.push({
|
|
|
237
|
- confirmTime: 'default',
|
|
|
238
|
- outInTypeName: '总计',
|
|
|
239
|
- num: ret.data.totalNum,
|
|
|
240
|
- clearingAmount: ret.data.totalClearingAmount
|
|
|
241
|
- });
|
236
|
+ if (this.tableData.length > 0) {
|
|
|
237
|
+ this.tableData.push({
|
|
|
238
|
+ confirmTime: 'default',
|
|
|
239
|
+ outInTypeName: '总计',
|
|
|
240
|
+ num: ret.data.totalNum,
|
|
|
241
|
+ clearingAmount: ret.data.totalClearingAmount
|
|
|
242
|
+ });
|
|
|
243
|
+ }
|
242
|
this.pageData.total = _.get(ret, 'data.totalPage', 0);
|
244
|
this.pageData.total = _.get(ret, 'data.totalPage', 0);
|
243
|
} else {
|
245
|
} else {
|
244
|
this.$Message.error(ret.message);
|
246
|
this.$Message.error(ret.message);
|
|
@@ -247,6 +249,7 @@ export default { |
|
@@ -247,6 +249,7 @@ export default { |
247
|
},
|
249
|
},
|
248
|
reset() {
|
250
|
reset() {
|
249
|
this.$refs.filter.reset();
|
251
|
this.$refs.filter.reset();
|
|
|
252
|
+ this.search();
|
250
|
},
|
253
|
},
|
251
|
pageChange(val) {
|
254
|
pageChange(val) {
|
252
|
this.pageData.current = val;
|
255
|
this.pageData.current = val;
|