* исправление подсчета операций пациентов

* поправил поле выбора даты
* добавил индикатор в контроле
* окно выбора пользователя для сводной
* привязка окна для ввода причины контроля
* добавил привязку историй пациентов для просмотра статистики по дням
* поправил фиксацию фио ответственного, убрал при диапазоне
* отключение ролей адм и зав от реплики
This commit is contained in:
brusnitsyn
2026-01-30 17:26:16 +09:00
parent 87e21f0e08
commit 2805e5e4bc
21 changed files with 836 additions and 156 deletions

View File

@@ -116,6 +116,12 @@ const modelComputed = computed({
reportStore.timestampCurrentRange = [value, value]
}
const queryString = window.location.search
const params = new URLSearchParams(queryString)
const userId = params.get('userId')
reportStore.reportInfo.userId = userId
reportStore.getDataOnReportDate(reportStore.timestampCurrentRange)
}
})

View File

@@ -19,8 +19,16 @@ const props = defineProps({
icon: {
type: [Object, Function],
default: null
},
tag: {
type: [Object, Function, String],
default: Link
},
click: {
type: [Function, Object],
}
})
const emits = defineEmits(['click'])
const buttonThemeOverride = {
heightLarge: '64px',
@@ -33,10 +41,25 @@ const pThemeOverride = {
}
const hasIcon = computed(() => props.icon !== null)
const isLink = computed(() => props.tag === 'link')
const onClick = () => {
if (isLink.value) return
emits('click')
}
</script>
<template>
<NButton :tag="Link" :href="href" :theme-overrides="buttonThemeOverride" size="large" block class="justify-start! text-left!">
<NButton :tag="tag"
:href="href"
:theme-overrides="buttonThemeOverride"
@click="onClick"
size="large"
block
class="justify-start! text-left!"
>
<template v-if="hasIcon" #icon>
<component :is="icon" v-if="icon" />
</template>