parse scopeDays integer on ticket.index #1439
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-05-16 12:33:41 +02:00
parent 858916e528
commit 2ac654fa53
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ export default class Controller {
this.$http.get(`/api/TicketConfigs/findOne`).then(res => { this.$http.get(`/api/TicketConfigs/findOne`).then(res => {
if (res.data) { if (res.data) {
this.filter = { this.filter = {
scopeDays: res.data.scopeDays scopeDays: parseInt(res.data.scopeDays)
}; };
} }
}); });
@ -64,6 +64,7 @@ export default class Controller {
onSearch(params) { onSearch(params) {
if (params) { if (params) {
if (params.scopeDays) { if (params.scopeDays) {
params.scopeDays = parseInt(params.scopeDays);
this.scopeDays = params.scopeDays; this.scopeDays = params.scopeDays;
this.buildFilterDates(); this.buildFilterDates();
params = Object.assign(params, {from: this.today, to: this.daysOnward}); params = Object.assign(params, {from: this.today, to: this.daysOnward});

View File

@ -37,8 +37,7 @@
label="To" label="To"
model="filter.to"> model="filter.to">
</vn-date-picker> </vn-date-picker>
<vn-input-number <vn-input-number vn-one
vn-one
min="0" min="0"
step="1" step="1"
label="Days onward" label="Days onward"