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 => {
|
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});
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue