refactor: edit id btn

This commit is contained in:
Net 2024-09-26 15:11:36 +07:00
parent ebdf701fc3
commit 92b14328f2

View file

@ -1330,9 +1330,9 @@ const emptyCreateDialog = ref(false);
</q-td>
<q-td>
{{ console.log(props.row) }}
<q-btn
v-if="props.row.branch[0].customerName"
:id="`btn-eye-${props.row.branch[0].customerName}`"
:id="`btn-eye-${props.row.branch[0].customerName || props.row.branch[0].firstName}`"
dense
flat
@click.stop="
@ -1369,9 +1369,8 @@ const emptyCreateDialog = ref(false);
</div>
</q-btn>
<q-btn
v-if="props.row.branch[0].customerName"
icon="mdi-eye-outline"
:id="`btn-eye-${props.row.branch[0].customerName}`"
:id="`btn-eye-${props.row.branch[0].customerName || props.row.branch[0].firstName}`"
size="sm"
dense
round