|
Lines 39-44
Link Here
|
| 39 |
@show="doShow" |
39 |
@show="doShow" |
| 40 |
@edit="doEdit" |
40 |
@edit="doEdit" |
| 41 |
@delete="doDelete" |
41 |
@delete="doDelete" |
|
|
42 |
@select="doSelect" |
| 42 |
></KohaTable> |
43 |
></KohaTable> |
| 43 |
</div> |
44 |
</div> |
| 44 |
<div v-else class="dialog message"> |
45 |
<div v-else class="dialog message"> |
|
Lines 127-133
export default {
Link Here
|
| 127 |
}, |
128 |
}, |
| 128 |
actions: { |
129 |
actions: { |
| 129 |
0: ["show"], |
130 |
0: ["show"], |
| 130 |
"-1": ["edit", "delete"], |
131 |
"-1": this.embedded |
|
|
132 |
? [ |
| 133 |
{ |
| 134 |
select: { |
| 135 |
text: this.$__("Select"), |
| 136 |
icon: "fa fa-check", |
| 137 |
}, |
| 138 |
}, |
| 139 |
] |
| 140 |
: ["edit", "delete"], |
| 131 |
}, |
141 |
}, |
| 132 |
default_filters: { |
142 |
default_filters: { |
| 133 |
"user_roles.user_id": function () { |
143 |
"user_roles.user_id": function () { |
|
Lines 192-197
export default {
Link Here
|
| 192 |
} |
202 |
} |
| 193 |
) |
203 |
) |
| 194 |
}, |
204 |
}, |
|
|
205 |
doSelect: function (agreement, dt, event) { |
| 206 |
this.$emit("select-agreement", agreement.agreement_id) |
| 207 |
this.$emit("close") |
| 208 |
}, |
| 195 |
table_url: function () { |
209 |
table_url: function () { |
| 196 |
let url = "/api/v1/erm/agreements" |
210 |
let url = "/api/v1/erm/agreements" |
| 197 |
if (this.filters.by_expired) |
211 |
if (this.filters.by_expired) |
|
Lines 199-208
export default {
Link Here
|
| 199 |
"?max_expiration_date=" + this.filters.max_expiration_date |
213 |
"?max_expiration_date=" + this.filters.max_expiration_date |
| 200 |
return url |
214 |
return url |
| 201 |
}, |
215 |
}, |
| 202 |
select_agreement: function (agreement_id) { |
|
|
| 203 |
this.$emit("select-agreement", agreement_id) |
| 204 |
this.$emit("close") |
| 205 |
}, |
| 206 |
filter_table: async function () { |
216 |
filter_table: async function () { |
| 207 |
if (!embedded) { |
217 |
if (!embedded) { |
| 208 |
let new_route = build_url( |
218 |
let new_route = build_url( |
| 209 |
- |
|
|