|
8 | 8 | <div class="r-value">{{ result?.selectedCancerType || '-' }}</div> |
9 | 9 | </div> |
10 | 10 | <div class="r-card"> |
11 | | - <h3 class="r-title">Line of Therapy</h3> |
12 | | - <div class="r-value">{{ resultRelatedMetadata.lineOfTherapy ?? '-' }}</div> |
| 11 | + <h3 class="r-title">Trial</h3> |
| 12 | + <div class="r-value">{{ result?.selectedTreatment ?? '-' }}</div> |
13 | 13 | </div> |
14 | 14 | </div> |
15 | 15 |
|
|
20 | 20 | <Column field="value" header="value" /> |
21 | 21 | </DataTable> |
22 | 22 | </div> |
23 | | - |
24 | | - <div class="r-card"> |
25 | | - <h3 class="r-title">Endpoint</h3> |
26 | | - <div class="r-value">{{ result?.selectedEndpoint || '-' }}</div> |
| 23 | + <div class="row-2"> |
| 24 | + <div class="r-card"> |
| 25 | + <h3 class="r-title">Endpoint</h3> |
| 26 | + <div class="r-value">{{ result?.selectedEndpoint || '-' }}</div> |
| 27 | + </div> |
| 28 | + <div class="r-card"> |
| 29 | + <h3 class="r-title">Line of Therapy</h3> |
| 30 | + <div class="r-value">{{ resultRelatedMetadata.lineOfTherapy ?? '-' }}</div> |
| 31 | + </div> |
27 | 32 | </div> |
| 33 | + |
28 | 34 |
|
29 | 35 | <div class="r-card push-down"> |
30 | 36 | <h3 class="r-title">Criteria</h3> |
|
53 | 59 | <div v-if="(Top4PathwaysResult && Top4PathwaysResult.length > 0)" class="right-stack"> |
54 | 60 | <div class="r-card" style="min-height: 240px;"> |
55 | 61 | <div class="r-card-header"> |
56 | | - <h3 class="r-title">Top 4 Pathways</h3> |
57 | | - <Button class="ml-2" size="small" @click="onResetSort"> |
58 | | - Reset |
59 | | - <FontAwesomeIcon :icon="['fas', 'arrows-rotate']" /> |
60 | | - </Button> |
| 62 | + <div class="r-header-left"> |
| 63 | + <h3 class="r-title">Top 4 Pathways</h3> |
| 64 | + <Button class="ml-2" size="small" @click="onResetSort"> |
| 65 | + Reset |
| 66 | + <FontAwesomeIcon :icon="['fas', 'arrows-rotate']" /> |
| 67 | + </Button> |
| 68 | + </div> |
| 69 | + <Button size="small" severity="secondary" @click="onReturnToSelection">Return to Selection</Button> |
61 | 70 | </div> |
62 | 71 | <DataTable ref="topTableRef" v-model:selection="selectedTopPath" v-model:sortField="sortField" v-model:sortOrder="sortOrder" sortMode="single" :value="Top4PathwaysResult" selectionMode="single" :metaKeySelection="false" dataKey="path_id" rowHover tableStyle="margin-top: 24px;" size="large" @rowSelect="onTopSelect" @rowUnselect="onTopUnselect"> |
63 | 72 | <Column field="pathName" header="Paths" /> |
|
83 | 92 | </div> |
84 | 93 | <div class="r-card" style="min-height: 240px;"> |
85 | 94 | <div class="r-card-header"> |
86 | | - <h3 class="r-title">Charts</h3> |
| 95 | + <h3 class="r-title">Origami Plots</h3> |
87 | 96 | </div> |
88 | 97 | <div class="r-card-content"> |
89 | 98 | <div v-for="item in Top4PathwaysResult" :key="item.path_id"> |
@@ -112,6 +121,7 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' |
112 | 121 | const props = defineProps({ |
113 | 122 | result: { type: Object, default: () => ({}) } |
114 | 123 | }) |
| 124 | +const emit = defineEmits(['returnToSelection']) |
115 | 125 |
|
116 | 126 | const resultRelatedMetadata = ref({}) |
117 | 127 | const Top4PathwaysResult = ref([]) |
@@ -258,7 +268,7 @@ function getTop4Pathways(trailResult, criteria, endpoint, criteriaNameToIndex) { |
258 | 268 | : { srcHr: 'hr_pfs', srcSelog: 'selog_hr_pfs', srcSucra: 'sucra_pfs' } |
259 | 269 | const res = { |
260 | 270 | path_id: labelId, |
261 | | - pathName: `${labelId}${displayIndices.length ? ` (${displayIndices.join(',')})` : ''}`, |
| 271 | + pathName: `${displayIndices.length ? `${displayIndices.join(',')}` : ''}`, |
262 | 272 | criteriaIndices: uniqueSorted, |
263 | 273 | ae: row.ae, |
264 | 274 | ease: row.ease, |
@@ -297,6 +307,10 @@ function onResetSort() { |
297 | 307 | } |
298 | 308 | } |
299 | 309 |
|
| 310 | +function onReturnToSelection() { |
| 311 | + emit('returnToSelection') |
| 312 | +} |
| 313 | +
|
300 | 314 | function getMaxes() { |
301 | 315 | const rows = Top4PathwaysResult.value || [] |
302 | 316 | return { |
@@ -398,7 +412,9 @@ function getChartOptions() { |
398 | 412 | align-items: center; |
399 | 413 | gap: 16px; |
400 | 414 | padding: 8px; |
| 415 | + justify-content: space-between; |
401 | 416 | } |
| 417 | +.r-header-left { display: flex; align-items: center; gap: 16px; } |
402 | 418 | .r-card-empty { |
403 | 419 | display: flex; |
404 | 420 | align-items: center; |
|
0 commit comments