* исправление подсчета операций пациентов
* поправил поле выбора даты * добавил индикатор в контроле * окно выбора пользователя для сводной * привязка окна для ввода причины контроля * добавил привязку историй пациентов для просмотра статистики по дням * поправил фиксацию фио ответственного, убрал при диапазоне * отключение ролей адм и зав от реплики
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user