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