This commit is contained in:
parent
858916e528
commit
2ac654fa53
|
@ -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});
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue