refs #5772 Fixes fetching parallelism from front
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
47a4a9950f
commit
8c0e8e9e12
|
@ -9,7 +9,8 @@ class Controller extends Section {
|
||||||
Object.assign(this, {
|
Object.assign(this, {
|
||||||
maxShipped: new Date(date.getFullYear(), date.getMonth(), 0),
|
maxShipped: new Date(date.getFullYear(), date.getMonth(), 0),
|
||||||
clientsToInvoice: 'all',
|
clientsToInvoice: 'all',
|
||||||
companyFk: this.vnConfig.companyFk
|
companyFk: this.vnConfig.companyFk,
|
||||||
|
parallelism: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
const params = {companyFk: this.companyFk};
|
const params = {companyFk: this.companyFk};
|
||||||
|
@ -22,7 +23,12 @@ class Controller extends Section {
|
||||||
const filter = {fields: ['parallelism']};
|
const filter = {fields: ['parallelism']};
|
||||||
this.$http.get('InvoiceOutConfigs/findOne', {filter})
|
this.$http.get('InvoiceOutConfigs/findOne', {filter})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.parallelism = res.data.parallelism || 1;
|
if (res.data.parallelism)
|
||||||
|
this.parallelism = res.data.parallelism;
|
||||||
|
})
|
||||||
|
.catch(res => {
|
||||||
|
if (res.status == 404) return;
|
||||||
|
throw res;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue