Обновление 1.0

This commit is contained in:
brusnitsyn
2025-12-29 17:08:26 +09:00
parent c5c1a2b3e1
commit 56be95caa4
9 changed files with 191 additions and 66 deletions

View File

@@ -29,13 +29,12 @@ const dataTable = ref(props.data ?? [])
const archiveStatusColumn = (status) => {
const tagType = status?.variant ?? 'error'
const tagText = status?.text ?? 'Нет в архиве'
console.log(tagType)
return h(
NEllipsis,
null,
{
default: () => h(NTag, {type: tagType, round: true, size: 'small'}, tagText)
default: () => h(NTag, {type: tagType, bordered: false, round: true, size: 'small'}, tagText)
})
}
@@ -136,8 +135,22 @@ watch(() => props.data, (newData) => {
</script>
<template>
<NDataTable remote striped :loading="isLoading" :row-props="rowProps" :columns="columns" :pagination="pagination" :max-height="maxHeight" size="small" :min-height="minHeight" :data="dataTable" />
<ArchiveHistoryModal v-model:open="showArchiveHistoryModal" :patient-info="selectedPatientInfo" @history-updated="onUpdateHistory" @close-without-save="onCloseWithoutSave" />
<NDataTable remote
striped
:loading="isLoading"
:row-props="rowProps"
:columns="columns"
:pagination="pagination"
:max-height="maxHeight"
size="small"
:min-height="minHeight"
:data="dataTable"
/>
<ArchiveHistoryModal v-model:open="showArchiveHistoryModal"
:patient-info="selectedPatientInfo"
@history-updated="onUpdateHistory"
@close-without-save="onCloseWithoutSave"
/>
</template>
<style scoped>