|
Lines 208-213
export default {
Link Here
|
| 208 |
}, |
208 |
}, |
| 209 |
table_url: function () { |
209 |
table_url: function () { |
| 210 |
let url = "/api/v1/erm/agreements" |
210 |
let url = "/api/v1/erm/agreements" |
|
|
211 |
if (this.filters.by_expired) { |
| 212 |
if (!this.filters.max_expiration_date) |
| 213 |
this.filters.max_expiration_date = new Date() |
| 214 |
.toISOString() |
| 215 |
.substring(0, 10) |
| 216 |
} |
| 211 |
if (this.filters.by_expired) |
217 |
if (this.filters.by_expired) |
| 212 |
url += |
218 |
url += |
| 213 |
"?max_expiration_date=" + this.filters.max_expiration_date |
219 |
"?max_expiration_date=" + this.filters.max_expiration_date |
|
Lines 221-232
export default {
Link Here
|
| 221 |
) |
227 |
) |
| 222 |
this.$router.push(new_route) |
228 |
this.$router.push(new_route) |
| 223 |
} |
229 |
} |
| 224 |
if (this.filters.by_expired) { |
|
|
| 225 |
if (!this.filters.max_expiration_date) |
| 226 |
this.filters.max_expiration_date = new Date() |
| 227 |
.toISOString() |
| 228 |
.substring(0, 10) |
| 229 |
} |
| 230 |
this.$refs.table.redraw(this.table_url()) |
230 |
this.$refs.table.redraw(this.table_url()) |
| 231 |
}, |
231 |
}, |
| 232 |
getTableColumns: function () { |
232 |
getTableColumns: function () { |
| 233 |
- |
|
|