refs #5978 hotfix_workCenter #1650
|
@ -83,7 +83,6 @@ export default class Token {
|
||||||
this.renewPeriod = data.renewPeriod;
|
this.renewPeriod = data.renewPeriod;
|
||||||
this.stopRenewer();
|
this.stopRenewer();
|
||||||
this.inservalId = setInterval(() => this.checkValidity(), data.renewInterval * 1000);
|
this.inservalId = setInterval(() => this.checkValidity(), data.renewInterval * 1000);
|
||||||
this.checkValidity();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,9 +43,6 @@
|
||||||
"SSN": {
|
"SSN": {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
},
|
},
|
||||||
"labelerFk": {
|
|
||||||
"type" : "number"
|
|
||||||
},
|
|
||||||
"mobileExtension": {
|
"mobileExtension": {
|
||||||
"type" : "number"
|
"type" : "number"
|
||||||
},
|
},
|
||||||
|
@ -86,11 +83,6 @@
|
||||||
"type": "hasMany",
|
"type": "hasMany",
|
||||||
"model": "WorkerTeamCollegues",
|
"model": "WorkerTeamCollegues",
|
||||||
"foreignKey": "workerFk"
|
"foreignKey": "workerFk"
|
||||||
},
|
|
||||||
"sector": {
|
|
||||||
"type": "belongsTo",
|
|
||||||
"model": "Sector",
|
|
||||||
"foreignKey": "sectorFk"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<vn-side-menu side="right">
|
<vn-side-menu side="right">
|
||||||
<div class="vn-pa-md">
|
<div class="vn-pa-md">
|
||||||
<div class="totalBox vn-mb-sm" style="text-align: center;">
|
<div class="totalBox vn-mb-sm" style="text-align: center;">
|
||||||
<h6>{{'Contract' | translate}} #{{$ctrl.card.worker.hasWorkCenter}}</h6>
|
<h6>{{'Contract' | translate}} #{{$ctrl.businessId}}</h6>
|
||||||
<div>
|
<div>
|
||||||
{{'Used' | translate}} {{$ctrl.contractHolidays.holidaysEnjoyed || 0}}
|
{{'Used' | translate}} {{$ctrl.contractHolidays.holidaysEnjoyed || 0}}
|
||||||
{{'of' | translate}} {{$ctrl.contractHolidays.totalHolidays || 0}} {{'days' | translate}}
|
{{'of' | translate}} {{$ctrl.contractHolidays.totalHolidays || 0}} {{'days' | translate}}
|
||||||
|
|
|
@ -33,11 +33,12 @@ class Controller extends ModuleCard {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$http.get(`Workers/${this.$params.id}`, {filter})
|
this.$http.get(`Workers/${this.$params.id}`, {filter})
|
||||||
.then(res => this.worker = res.data);
|
.then(res => this.worker = res.data)
|
||||||
this.$http.get(`Workers/${this.$params.id}/activeContract`)
|
.then(() =>
|
||||||
.then(res => {
|
this.$http.get(`Workers/${this.$params.id}/activeContract`)
|
||||||
if (res.data) this.worker.hasWorkCenter = res.data.workCenterFk;
|
.then(res => {
|
||||||
});
|
if (res.data) this.worker.hasWorkCenter = res.data.workCenterFk;
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue