Lines 41-46
export default {
Link Here
|
41 |
return { |
41 |
return { |
42 |
licenses: [], |
42 |
licenses: [], |
43 |
initialized: false, |
43 |
initialized: false, |
|
|
44 |
column_filters: { |
45 |
vendor_id: this.$route.query.vendor_id || null, |
46 |
}, |
44 |
} |
47 |
} |
45 |
}, |
48 |
}, |
46 |
beforeRouteEnter(to, from, next) { |
49 |
beforeRouteEnter(to, from, next) { |
Lines 91-97
export default {
Link Here
|
91 |
window[av_cat] = map_av_dt_filter(av_cat) |
94 |
window[av_cat] = map_av_dt_filter(av_cat) |
92 |
}) |
95 |
}) |
93 |
|
96 |
|
94 |
$("#" + table_id).kohaTable( |
97 |
let table = $("#" + table_id).kohaTable( |
95 |
{ |
98 |
{ |
96 |
ajax: { |
99 |
ajax: { |
97 |
url: "/api/v1/erm/licenses", |
100 |
url: "/api/v1/erm/licenses", |
Lines 109-114
export default {
Link Here
|
109 |
}, |
112 |
}, |
110 |
}, |
113 |
}, |
111 |
], |
114 |
], |
|
|
115 |
iDeferLoading: true, |
112 |
columns: [ |
116 |
columns: [ |
113 |
{ |
117 |
{ |
114 |
title: __("Name"), |
118 |
title: __("Name"), |
Lines 289-294
export default {
Link Here
|
289 |
license_table_settings, |
293 |
license_table_settings, |
290 |
1 |
294 |
1 |
291 |
) |
295 |
) |
|
|
296 |
|
297 |
let table_dt = table.DataTable() |
298 |
if (this.column_filters.vendor_id) { |
299 |
table |
300 |
.find('thead tr:eq(1) th[data-filter="vendors"] select') |
301 |
.val(this.column_filters.vendor_id) |
302 |
table_dt.column(1).search(this.column_filters.vendor_id) |
303 |
} |
304 |
table_dt.draw() |
292 |
}, |
305 |
}, |
293 |
}, |
306 |
}, |
294 |
props: { |
307 |
props: { |
295 |
- |
|
|