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 => {
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});

View File

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