Добавил ФИО и убрал ограничение на показатели

This commit is contained in:
brusnitsyn
2026-07-08 17:02:37 +09:00
parent 8db7f19dda
commit 11ebbe75f5
2 changed files with 2 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ class NurseJournalDataSet extends AbstractDataSet
->mapWithKeys(fn ($d) => [$d->department_id => $d->name_full ?? $d->name_short])
->all(),
),
new Dimension('full_name', 'ФИО', 'string', 'p.full_name')
];
}

View File

@@ -62,7 +62,7 @@ const dateModel = ref(props.date?.length ? [...props.date] : null)
const currentDataset = computed(() => props.datasets.find((d) => d.key === config.dataset) ?? null)
const departmentOptions = computed(() => props.departments.map((d) => ({ label: d.name, value: d.id })))
const isFixed = computed(() => !!currentDataset.value?.fixed)
const canGenerate = computed(() => !!config.dataset && (isFixed.value || config.measures.length > 0))
const canGenerate = computed(() => !!config.dataset || (isFixed.value || config.measures.length > 0))
const metricOptions = computed(() => {
const ds = currentDataset.value