|
@@ -29,7 +29,7 @@ class PayCalculate {
|
|
const bases = await this.ctx.service.stage.getStagePayCalcBase();
|
|
const bases = await this.ctx.service.stage.getStagePayCalcBase();
|
|
this.bases = bases.sort(function (a, b) {
|
|
this.bases = bases.sort(function (a, b) {
|
|
if (a && b) {
|
|
if (a && b) {
|
|
- return b.code.indexOf(a.code) === -1 ? 1 : -1;
|
|
|
|
|
|
+ return b.code.indexOf(a.code) === -1 ? -1 : 1;
|
|
} else {
|
|
} else {
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|