|
|
|
@@ -140,11 +140,11 @@ const selectedProjectIds = ref<number[]>([])
|
|
|
|
const selectedTagIds = ref<number[]>([])
|
|
|
|
const selectedTagIds = ref<number[]>([])
|
|
|
|
|
|
|
|
|
|
|
|
const userOptions = computed(() =>
|
|
|
|
const userOptions = computed(() =>
|
|
|
|
props.users.map(u => ({ text: u.username, value: u.id }))
|
|
|
|
props.users.map(u => ({ label: u.username, value: u.id }))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const clientOptions = computed(() =>
|
|
|
|
const clientOptions = computed(() =>
|
|
|
|
props.clients.map(c => ({ text: c.name, value: c.id }))
|
|
|
|
props.clients.map(c => ({ label: c.name, value: c.id }))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const filteredProjectOptions = computed(() => {
|
|
|
|
const filteredProjectOptions = computed(() => {
|
|
|
|
@@ -152,11 +152,11 @@ const filteredProjectOptions = computed(() => {
|
|
|
|
if (selectedClientId.value) {
|
|
|
|
if (selectedClientId.value) {
|
|
|
|
list = list.filter(p => p.client?.id === selectedClientId.value)
|
|
|
|
list = list.filter(p => p.client?.id === selectedClientId.value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return list.map(p => ({ text: p.name, value: p.id }))
|
|
|
|
return list.map(p => ({ label: p.name, value: p.id }))
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const tagOptions = computed(() =>
|
|
|
|
const tagOptions = computed(() =>
|
|
|
|
props.tags.map(t => ({ text: t.label, value: t.id }))
|
|
|
|
props.tags.map(t => ({ label: t.label, value: t.id }))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// Reset project selection when client changes
|
|
|
|
// Reset project selection when client changes
|
|
|
|
|