This commit is contained in:
parent
d272121258
commit
d9b1f4b8a1
|
@ -35,7 +35,9 @@ 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`)
|
this.$http.get(`Workers/${this.$params.id}/activeContract`)
|
||||||
.then(res => this.worker.hasWorkCenter = res.data.workCenterFk);
|
.then(res => {
|
||||||
|
if (res.data) this.worker.hasWorkCenter = res.data.workCenterFk;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue