Lines 45-50
export default {
Link Here
|
45 |
return { |
45 |
return { |
46 |
license_count: null, |
46 |
license_count: null, |
47 |
initialized: false, |
47 |
initialized: false, |
|
|
48 |
column_filters: { |
49 |
vendor_id: this.$route.query.vendor_id || null, |
50 |
}, |
48 |
} |
51 |
} |
49 |
}, |
52 |
}, |
50 |
beforeRouteEnter(to, from, next) { |
53 |
beforeRouteEnter(to, from, next) { |
Lines 122-128
export default {
Link Here
|
122 |
window[av_cat] = map_av_dt_filter(av_cat) |
125 |
window[av_cat] = map_av_dt_filter(av_cat) |
123 |
}) |
126 |
}) |
124 |
|
127 |
|
125 |
$("#" + table_id).kohaTable( |
128 |
let table = $("#" + table_id).kohaTable( |
126 |
{ |
129 |
{ |
127 |
ajax: { |
130 |
ajax: { |
128 |
url: "/api/v1/erm/licenses", |
131 |
url: "/api/v1/erm/licenses", |
Lines 140-145
export default {
Link Here
|
140 |
}, |
143 |
}, |
141 |
}, |
144 |
}, |
142 |
], |
145 |
], |
|
|
146 |
iDeferLoading: true, |
143 |
columns: [ |
147 |
columns: [ |
144 |
{ |
148 |
{ |
145 |
title: __("Name"), |
149 |
title: __("Name"), |
Lines 324-329
export default {
Link Here
|
324 |
license_table_settings, |
328 |
license_table_settings, |
325 |
1 |
329 |
1 |
326 |
) |
330 |
) |
|
|
331 |
|
332 |
let table_dt = table.DataTable() |
333 |
if (this.column_filters.vendor_id) { |
334 |
table |
335 |
.find('thead tr:eq(1) th[data-filter="vendors"] select') |
336 |
.val(this.column_filters.vendor_id) |
337 |
table_dt.column(1).search(this.column_filters.vendor_id) |
338 |
} |
339 |
table_dt.draw() |
327 |
}, |
340 |
}, |
328 |
}, |
341 |
}, |
329 |
props: { |
342 |
props: { |
330 |
- |
|
|