diff --git a/modules/ticket/front/index/index.js b/modules/ticket/front/index/index.js index c616120df..4b58d9bd8 100644 --- a/modules/ticket/front/index/index.js +++ b/modules/ticket/front/index/index.js @@ -27,7 +27,7 @@ export default class Controller { this.$http.get(`/api/TicketConfigs/findOne`).then(res => { if (res.data) { this.filter = { - scopeDays: res.data.scopeDays + scopeDays: parseInt(res.data.scopeDays) }; } }); @@ -64,6 +64,7 @@ export default class Controller { onSearch(params) { if (params) { if (params.scopeDays) { + params.scopeDays = parseInt(params.scopeDays); this.scopeDays = params.scopeDays; this.buildFilterDates(); params = Object.assign(params, {from: this.today, to: this.daysOnward}); diff --git a/modules/ticket/front/search-panel/index.html b/modules/ticket/front/search-panel/index.html index 7e3267f45..70fa24e63 100644 --- a/modules/ticket/front/search-panel/index.html +++ b/modules/ticket/front/search-panel/index.html @@ -37,8 +37,7 @@ label="To" model="filter.to"> -