fixes
This commit is contained in:
parent
6c9391da7b
commit
4b2e2acd19
@ -122,9 +122,11 @@ const headers = [
|
||||
const prescriptionIndex = ref([]);
|
||||
const prescriptionItem = ref(-1)
|
||||
const prescriptionDialog = ref(false)
|
||||
const selectedItem = ref(null);
|
||||
const showDetail = item => {
|
||||
// console.log("id",item);
|
||||
prescriptionIndex.value = item
|
||||
selectedItem.value = item;
|
||||
// console.log("index",prescriptionIndex.value);
|
||||
// prescriptionItem.value = { ...item }
|
||||
prescriptionDialog.value = true
|
||||
@ -183,12 +185,14 @@ const close = () => {
|
||||
<!-- Actions -->
|
||||
<template #item.id="{ item }">
|
||||
<div class="d-flex gap-1">
|
||||
<IconBtn
|
||||
<VCheckbox :value="item == selectedItem" @click="showDetail(item)">
|
||||
</VCheckbox>
|
||||
<!-- <IconBtn
|
||||
size="small"
|
||||
@click="showDetail(item)"
|
||||
>
|
||||
<VIcon icon="ri-time-line" />
|
||||
</IconBtn>
|
||||
</IconBtn> -->
|
||||
|
||||
</div>
|
||||
</template>
|
||||
@ -204,7 +208,7 @@ const close = () => {
|
||||
<DialogCloseBtn
|
||||
variant="text"
|
||||
size="default"
|
||||
@click="prescriptionDialog = false"
|
||||
@click="[prescriptionDialog = false,selectedItem = '']"
|
||||
/>
|
||||
<VCardText>
|
||||
<v-row class='mt-0'>
|
||||
|
Loading…
Reference in New Issue
Block a user