Skip to content

Commit

Permalink
Model config matrices functional implementation (#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jami159 authored Jan 16, 2024
1 parent bd5323b commit 5f3255e
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
>
<div class="p-datatable-wrapper">
<table class="p-datatable-table p-datatable-scrollable-table editable-cells-table">
<thead v-if="matrix[0].length > 1" class="p-datatable-thead">
<thead v-if="matrix[0].length > 0" class="p-datatable-thead">
<tr>
<th v-if="matrix.length > 1" class="choose-criteria">&nbsp;</th>
<th v-if="matrix.length > 0" class="choose-criteria">&nbsp;</th>
<th v-for="(row, rowIdx) in matrix[0]" :key="rowIdx">{{ row.colCriteria }}</th>
</tr>
</thead>
<tbody class="p-datatable-tbody">
<tr v-for="(row, rowIdx) in matrix" :key="rowIdx">
<td v-if="matrix.length > 1" class="p-frozen-column">
<td v-if="matrix.length > 0" class="p-frozen-column">
<template v-if="stratifiedMatrixType === StratifiedMatrix.Initials">
{{ Object.values(row[0].rowCriteria).join(' / ') }}
</template>
Expand Down Expand Up @@ -234,6 +234,10 @@ function configureMatrix() {
}
}
watch([() => props.id, () => props.modelConfiguration.configuration], () => {
configureMatrix();
});
onMounted(() => {
configureMatrix();
});
Expand Down
Loading

0 comments on commit 5f3255e

Please sign in to comment.