forked from verdnatura/salix-front
fix: refs #7529 fix scss
This commit is contained in:
parent
780af58747
commit
04f6107909
|
@ -91,6 +91,10 @@ const $props = defineProps({
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
maxWidth: {
|
||||||
|
type: [String, Boolean],
|
||||||
|
default: '800px',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const emit = defineEmits(['onFetch', 'onDataSaved']);
|
const emit = defineEmits(['onFetch', 'onDataSaved']);
|
||||||
const modelValue = computed(
|
const modelValue = computed(
|
||||||
|
@ -283,6 +287,7 @@ defineExpose({
|
||||||
@submit="save"
|
@submit="save"
|
||||||
@reset="reset"
|
@reset="reset"
|
||||||
class="q-pa-md"
|
class="q-pa-md"
|
||||||
|
:style="maxWidth ? 'max-width: ' + maxWidth : ''"
|
||||||
id="formModel"
|
id="formModel"
|
||||||
>
|
>
|
||||||
<QCard>
|
<QCard>
|
||||||
|
@ -371,7 +376,6 @@ defineExpose({
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
#formModel {
|
#formModel {
|
||||||
max-width: 800px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ const deleteRelative = async (id) => {
|
||||||
:filter="{ where: { workerFk: route.params.id } }"
|
:filter="{ where: { workerFk: route.params.id } }"
|
||||||
auto-load
|
auto-load
|
||||||
data-key="workerIrpfs"
|
data-key="workerIrpfs"
|
||||||
|
:max-width="false"
|
||||||
|
:data-required="{ workerFk: route.params.id }"
|
||||||
>
|
>
|
||||||
<template #form="{ data }">
|
<template #form="{ data }">
|
||||||
<QCard class="q-px-lg q-py-lg">
|
<QCard class="q-px-lg q-py-lg">
|
||||||
|
@ -149,10 +151,10 @@ const deleteRelative = async (id) => {
|
||||||
/>
|
/>
|
||||||
</QBtnGroup>
|
</QBtnGroup>
|
||||||
</div>
|
</div>
|
||||||
<VnRow
|
<div
|
||||||
v-for="(row, index) in rows"
|
v-for="(row, index) in rows"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="row q-gutter-lg q-mb-lg"
|
class="row no-wrap q-mb-lg q-gutter-lg"
|
||||||
padding="none"
|
padding="none"
|
||||||
>
|
>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
|
@ -162,6 +164,7 @@ const deleteRelative = async (id) => {
|
||||||
]"
|
]"
|
||||||
:label="t('isDescendant')"
|
:label="t('isDescendant')"
|
||||||
v-model="row.isDescendant"
|
v-model="row.isDescendant"
|
||||||
|
class="q-gutter-xs q-mb-xs"
|
||||||
/>
|
/>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('disabilityGrades')"
|
:label="t('disabilityGrades')"
|
||||||
|
@ -169,7 +172,7 @@ const deleteRelative = async (id) => {
|
||||||
option-label="description"
|
option-label="description"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
v-model="row.disabilityGradeFk"
|
v-model="row.disabilityGradeFk"
|
||||||
padding="none"
|
class="q-gutter-xs q-mb-xs"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInput
|
||||||
type="number"
|
type="number"
|
||||||
|
@ -199,7 +202,7 @@ const deleteRelative = async (id) => {
|
||||||
icon="delete"
|
icon="delete"
|
||||||
style="flex: 0"
|
style="flex: 0"
|
||||||
/>
|
/>
|
||||||
</VnRow>
|
</div>
|
||||||
<VnRow class="justify-left items-center">
|
<VnRow class="justify-left items-center">
|
||||||
<QBtn
|
<QBtn
|
||||||
@click="insertTag(rows)"
|
@click="insertTag(rows)"
|
||||||
|
|
Loading…
Reference in New Issue