Wrapped up approval visuals and refresh behaviour
This commit is contained in:
@@ -13,8 +13,17 @@ const props = defineProps<{
|
||||
const promoList = ref<PromotionDetails[]>();
|
||||
const loading = ref(true);
|
||||
|
||||
onMounted(async () => {
|
||||
async function loadData() {
|
||||
promoList.value = await getPromotionsOnDay(props.date);
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
loadData
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
// promoList.value = await getPromotionsOnDay(props.date);
|
||||
await loadData();
|
||||
loading.value = false;
|
||||
})
|
||||
|
||||
@@ -27,7 +36,8 @@ onMounted(async () => {
|
||||
<tr class="border-b-2 border-gray-200 bg-white/10">
|
||||
<th class="px-4 py-3 text-sm font-semibold">Member</th>
|
||||
<th class="px-4 py-3 text-sm font-semibold">Rank</th>
|
||||
<th class="px-4 py-3 text-sm font-semibold text-right">Approved By</th>
|
||||
<th class="px-4 py-3 text-sm font-semibold">Approved By</th>
|
||||
<th class="px-4 py-3 text-sm font-semibold text-right">Submitted By</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -39,6 +49,9 @@ onMounted(async () => {
|
||||
<td class="px-4 py-2 text-sm">
|
||||
{{ p.short_name }}
|
||||
</td>
|
||||
<td class="px-2 py-2 text-sm text-right">
|
||||
<MemberCard :member-id="p.authorized_by_id" />
|
||||
</td>
|
||||
<td class="px-2 py-2 text-sm text-right">
|
||||
<MemberCard :member-id="p.created_by_id" />
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user