This commit is contained in:
parent
2d90af906f
commit
3595524286
|
@ -9,7 +9,7 @@ class Controller {
|
|||
this.$translate = $translate;
|
||||
|
||||
this.accessToken = vnToken.token;
|
||||
this.companyFk = vnConfig.companyFk;
|
||||
this.vnConfig = vnConfig;
|
||||
this.filter = {
|
||||
include: {
|
||||
relation: 'company',
|
||||
|
@ -29,6 +29,17 @@ class Controller {
|
|||
},
|
||||
};
|
||||
}
|
||||
|
||||
get companyFk() {
|
||||
if (!this._companyFk)
|
||||
return this.vnConfig.companyFk;
|
||||
|
||||
return this._companyFk;
|
||||
}
|
||||
|
||||
set companyFk(id) {
|
||||
this._companyFk = id;
|
||||
}
|
||||
setOrder(value) {
|
||||
this.params.params.companyFk = value;
|
||||
this.filter.where.companyFk = value;
|
||||
|
|
Loading…
Reference in New Issue