|
|
@@ -58,6 +58,14 @@ export class BaseService {
|
|
|
params: {
|
|
|
...params
|
|
|
}
|
|
|
+ }).then(res => {
|
|
|
+ return {
|
|
|
+ ...res,
|
|
|
+ pagination: {
|
|
|
+ totalPage: res.totalPage,
|
|
|
+ total: parseInt(res.totalNum)
|
|
|
+ }
|
|
|
+ };
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -72,7 +80,7 @@ export class BaseService {
|
|
|
...res,
|
|
|
pagination: {
|
|
|
totalPage: res.totalPage,
|
|
|
- total: res.totalPage * 20
|
|
|
+ total: parseInt(res.totalNum)
|
|
|
}
|
|
|
};
|
|
|
});
|