release v2.0.0 #4
|
@ -44,10 +44,12 @@ export default defineComponent({
|
|||
|
||||
onMounted(() => {
|
||||
void store.dispatch('balance/getBalance');
|
||||
onRequest({
|
||||
pagination: pagination.value,
|
||||
filter: undefined
|
||||
});
|
||||
void store.dispatch('user/getUsers').then(() =>
|
||||
onRequest({
|
||||
pagination: pagination.value,
|
||||
filter: undefined
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
const showCancelled = ref(false);
|
||||
|
@ -138,7 +140,11 @@ export default defineComponent({
|
|||
name: 'author_id',
|
||||
label: 'Benutzer',
|
||||
field: 'author_id',
|
||||
format: (val: string) => store.state.user.users.filter(x => x.userid == val)[0].display_name
|
||||
format: (val: string) => {
|
||||
const user = store.state.user.users.filter(x => x.userid == val);
|
||||
if (user.length > 0) return user[0].display_name;
|
||||
else return val;
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue