Добавил подсказку и открытие окна в колонке умерших

This commit is contained in:
brusnitsyn
2026-06-10 11:17:11 +09:00
parent 64d2bc0509
commit 99495f88a9
2 changed files with 46 additions and 11 deletions

View File

@@ -24,6 +24,7 @@ import StatisticRecipientPlanOfYear from "../../Layouts/Components/Statistic/Sta
import {percentType} from "../../Utils/numbers.js";
import OutcomeColumn from "./Components/OutcomeColumn.vue";
import ModalDeathPatients from "./Components/ModalDeathPatients.vue";
import DeceasedColumn from "./Components/DeceasedColumn.vue";
const props = defineProps({
data: {
@@ -249,18 +250,18 @@ const columns = ref([
width: 48,
titleAlign: 'center',
align: 'center',
cellProps: (row) => ({
class: 'relative'
}),
render: (row) => {
if (row.isTotalRow) {
return h(
'span',
{
onClick: () => onShowDeathPatientsModal()
},
row.deceased
)
}
return row.deceased
return h(
DeceasedColumn,
{
isTotalRow: row.isTotalRow,
value: row.deceased,
onOpenModal: () => onShowDeathPatientsModal()
},
)
}
},
{