refs #5468 fix: no muestra el id de contrato en worker/calendar
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
20cb1ea821
commit
4f9dae3522
|
@ -63,6 +63,7 @@
|
|||
ng-model="$ctrl.businessId"
|
||||
search-function="{businessFk: $search}"
|
||||
value-field="businessFk"
|
||||
show-field="businessFk"
|
||||
order="businessFk DESC"
|
||||
limit="5">
|
||||
<tpl-item>
|
||||
|
|
|
@ -71,10 +71,6 @@ class Controller extends Section {
|
|||
}
|
||||
}
|
||||
|
||||
get payedHolidays() {
|
||||
return this._businessId;
|
||||
}
|
||||
|
||||
buildYearFilter() {
|
||||
const now = Date.vnNew();
|
||||
now.setFullYear(now.getFullYear() + 1);
|
||||
|
@ -96,8 +92,10 @@ class Controller extends Section {
|
|||
|
||||
getActiveContract() {
|
||||
this.$http.get(`Workers/${this.worker.id}/activeContract`).then(res => {
|
||||
if (res.data)
|
||||
if (res.data) {
|
||||
this.businessId = res.data.businessFk;
|
||||
console.log(this.businessId);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue