Lines 200-211
export default {
Link Here
|
200 |
}, |
200 |
}, |
201 |
table_url: function () { |
201 |
table_url: function () { |
202 |
let url = "/api/v1/erm/agreements" |
202 |
let url = "/api/v1/erm/agreements" |
203 |
if (this.filters.by_expired) { |
|
|
204 |
if (!this.filters.max_expiration_date) |
205 |
this.filters.max_expiration_date = new Date() |
206 |
.toISOString() |
207 |
.substring(0, 10) |
208 |
} |
209 |
if (this.filters.by_expired) |
203 |
if (this.filters.by_expired) |
210 |
url += |
204 |
url += |
211 |
"?max_expiration_date=" + this.filters.max_expiration_date |
205 |
"?max_expiration_date=" + this.filters.max_expiration_date |
Lines 216-221
export default {
Link Here
|
216 |
this.$emit("close") |
210 |
this.$emit("close") |
217 |
}, |
211 |
}, |
218 |
filter_table: async function () { |
212 |
filter_table: async function () { |
|
|
213 |
if (this.filters.by_expired) { |
214 |
if (!this.filters.max_expiration_date) |
215 |
this.filters.max_expiration_date = new Date() |
216 |
.toISOString() |
217 |
.substring(0, 10) |
218 |
} |
219 |
if (this.before_route_entered) { |
219 |
if (this.before_route_entered) { |
220 |
let new_route = build_url( |
220 |
let new_route = build_url( |
221 |
"/cgi-bin/koha/erm/agreements", |
221 |
"/cgi-bin/koha/erm/agreements", |