forked from verdnatura/salix-front
refactor: refs #7874 create element if condition
This commit is contained in:
parent
a8c48789ca
commit
01dc25da8c
|
@ -57,10 +57,11 @@ onBeforeRouteLeave((to, from, next) => {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FetchData
|
<FetchData
|
||||||
|
v-if="selectType"
|
||||||
url="ObservationTypes"
|
url="ObservationTypes"
|
||||||
:filter="{ fields: ['id', 'description'] }"
|
:filter="{ fields: ['id', 'description'] }"
|
||||||
:auto-load="selectType"
|
auto-load
|
||||||
@on-fetch="(data) => observationTypes.push(...data)"
|
@on-fetch="(data) => (observationTypes = data)"
|
||||||
/>
|
/>
|
||||||
<QCard class="q-pa-xs q-mb-xl full-width" v-if="$props.addNote">
|
<QCard class="q-pa-xs q-mb-xl full-width" v-if="$props.addNote">
|
||||||
<QCardSection horizontal>
|
<QCardSection horizontal>
|
||||||
|
|
Loading…
Reference in New Issue