Обновление 1.0
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user