|
Lines 70-76
export default {
Link Here
|
| 70 |
searchable_av_options: [], |
70 |
searchable_av_options: [], |
| 71 |
tableOptions: { |
71 |
tableOptions: { |
| 72 |
columns: this.getTableColumns(), |
72 |
columns: this.getTableColumns(), |
| 73 |
url: "/api/v1/erm/licenses", |
73 |
url: this.tableURL(), |
| 74 |
options: { embed: "vendor,extended_attributes,+strings" }, |
74 |
options: { embed: "vendor,extended_attributes,+strings" }, |
| 75 |
table_settings: this.license_table_settings, |
75 |
table_settings: this.license_table_settings, |
| 76 |
add_filters: true, |
76 |
add_filters: true, |
|
Lines 114-119
export default {
Link Here
|
| 114 |
error => {} |
114 |
error => {} |
| 115 |
); |
115 |
); |
| 116 |
}, |
116 |
}, |
|
|
117 |
tableURL() { |
| 118 |
let url = "/api/v1/erm/licenses"; |
| 119 |
|
| 120 |
const vendorId = this.$route.query.vendor_id |
| 121 |
if (vendorId) { |
| 122 |
url += "?vendor_id=" + vendorId |
| 123 |
} |
| 124 |
return url |
| 125 |
}, |
| 117 |
async getSearchableAdditionalFields() { |
126 |
async getSearchableAdditionalFields() { |
| 118 |
const client = APIClient.additional_fields; |
127 |
const client = APIClient.additional_fields; |
| 119 |
await client.additional_fields.getAll("license").then( |
128 |
await client.additional_fields.getAll("license").then( |