feat: add code
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
671a35f8c9
commit
e1c4f144a7
|
@ -23,6 +23,7 @@ class Controller extends Section {
|
|||
this.refresh()
|
||||
.then(() => this.repaint())
|
||||
.then(() => this.getContractHolidays())
|
||||
.then(() => this.getPayedHolidays())
|
||||
.then(() => this.getYearHolidays());
|
||||
}
|
||||
|
||||
|
@ -36,6 +37,7 @@ class Controller extends Section {
|
|||
this.refresh()
|
||||
.then(() => this.repaint())
|
||||
.then(() => this.getContractHolidays())
|
||||
.then(() => this.getPayedHolidays())
|
||||
.then(() => this.getYearHolidays());
|
||||
}
|
||||
}
|
||||
|
@ -104,6 +106,15 @@ class Controller extends Section {
|
|||
}, data => this.contractHolidays = data);
|
||||
}
|
||||
|
||||
getPayedHolidays() {
|
||||
this.getContractHolidays();
|
||||
if (this.contractHolidays !== undefined) {// && business.reasonEndFk !== null
|
||||
const daysToPay = this.contractHolidays.totalHolidays - this.contractHolidays.holidaysEnjoyed;
|
||||
console.log(this.businessId, this.contractHolidays.totalHolidays, this.contractHolidays.holidaysEnjoyed);
|
||||
console.log(daysToPay);
|
||||
}
|
||||
}
|
||||
|
||||
getYearHolidays() {
|
||||
this.getHolidays({
|
||||
year: this.year
|
||||
|
@ -225,6 +236,7 @@ class Controller extends Section {
|
|||
this.refresh()
|
||||
.then(calendar.repaint())
|
||||
.then(() => this.getContractHolidays())
|
||||
.then(() => this.getPayedHolidays())
|
||||
.then(() => this.getYearHolidays())
|
||||
);
|
||||
});
|
||||
|
@ -246,6 +258,7 @@ class Controller extends Section {
|
|||
this.refresh()
|
||||
.then(calendar.repaint())
|
||||
.then(() => this.getContractHolidays())
|
||||
.then(() => this.getPayedHolidays())
|
||||
.then(() => this.getYearHolidays())
|
||||
);
|
||||
});
|
||||
|
@ -261,6 +274,7 @@ class Controller extends Section {
|
|||
this.refresh()
|
||||
.then(calendar.repaint())
|
||||
.then(() => this.getContractHolidays())
|
||||
.then(() => this.getPayedHolidays())
|
||||
.then(() => this.getYearHolidays())
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue