Добавил подсказку и открытие окна в колонке умерших
This commit is contained in:
@@ -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()
|
||||
},
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user