Добавил ФИО и убрал ограничение на показатели
This commit is contained in:
@@ -65,6 +65,7 @@ class NurseJournalDataSet extends AbstractDataSet
|
|||||||
->mapWithKeys(fn ($d) => [$d->department_id => $d->name_full ?? $d->name_short])
|
->mapWithKeys(fn ($d) => [$d->department_id => $d->name_full ?? $d->name_short])
|
||||||
->all(),
|
->all(),
|
||||||
),
|
),
|
||||||
|
new Dimension('full_name', 'ФИО', 'string', 'p.full_name')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 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 departmentOptions = computed(() => props.departments.map((d) => ({ label: d.name, value: d.id })))
|
||||||
const isFixed = computed(() => !!currentDataset.value?.fixed)
|
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 metricOptions = computed(() => {
|
||||||
const ds = currentDataset.value
|
const ds = currentDataset.value
|
||||||
|
|||||||
Reference in New Issue
Block a user