refactor: add prefixId
This commit is contained in:
parent
b9234a0eb6
commit
b5866c91f5
3 changed files with 13 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ defineProps<{
|
||||||
noAction?: boolean;
|
noAction?: boolean;
|
||||||
noBg?: boolean;
|
noBg?: boolean;
|
||||||
history?: boolean;
|
history?: boolean;
|
||||||
|
prefixId: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
defineEmits<{
|
defineEmits<{
|
||||||
|
|
@ -60,6 +61,7 @@ defineEmits<{
|
||||||
</div>
|
</div>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="history"
|
v-if="history"
|
||||||
|
:id="`btn-history-${prefixId}`"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
class="app-text-muted-2"
|
class="app-text-muted-2"
|
||||||
|
|
@ -70,7 +72,7 @@ defineEmits<{
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
:id="`btn-dots-${data.code}`"
|
:id="`btn-dots-${prefixId}`"
|
||||||
:key="data.code"
|
:key="data.code"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ import NoData from 'components/NoData.vue';
|
||||||
import ProfileUpload from 'components/ProfileUpload.vue';
|
import ProfileUpload from 'components/ProfileUpload.vue';
|
||||||
import PaginationComponent from 'src/components/PaginationComponent.vue';
|
import PaginationComponent from 'src/components/PaginationComponent.vue';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'src/stores/options';
|
||||||
|
status;
|
||||||
|
|
||||||
const { locale, t } = useI18n();
|
const { locale, t } = useI18n();
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
|
|
@ -1155,6 +1156,7 @@ watch(
|
||||||
|
|
||||||
<q-td>
|
<q-td>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
:id="`btn-view-${props.row.username}`"
|
||||||
icon="mdi-eye-outline"
|
icon="mdi-eye-outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
dense
|
dense
|
||||||
|
|
@ -1168,7 +1170,7 @@ watch(
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
:id="`btn-dots-${props.row.code}`"
|
:id="`btn-dots-${props.row.username}`"
|
||||||
icon="mdi-dots-vertical"
|
icon="mdi-dots-vertical"
|
||||||
size="sm"
|
size="sm"
|
||||||
dense
|
dense
|
||||||
|
|
@ -1288,8 +1290,10 @@ watch(
|
||||||
<template v-slot:item="props">
|
<template v-slot:item="props">
|
||||||
<div class="col-md-3 col-sm-6 col-12">
|
<div class="col-md-3 col-sm-6 col-12">
|
||||||
<PersonCard
|
<PersonCard
|
||||||
|
:prefix-id="props.row.username"
|
||||||
:data="{
|
:data="{
|
||||||
code: props.row.code,
|
code: props.row.code,
|
||||||
|
|
||||||
name:
|
name:
|
||||||
$i18n.locale === 'en-US'
|
$i18n.locale === 'en-US'
|
||||||
? `${props.row.firstNameEN} ${props.row.lastNameEN}`.trim()
|
? `${props.row.firstNameEN} ${props.row.lastNameEN}`.trim()
|
||||||
|
|
|
||||||
|
|
@ -2290,6 +2290,9 @@ watch(isMainPage, () => {
|
||||||
:id="`card-${props.row.customerName}`"
|
:id="`card-${props.row.customerName}`"
|
||||||
:field-selected="fieldSelected"
|
:field-selected="fieldSelected"
|
||||||
history
|
history
|
||||||
|
:prefix-id="
|
||||||
|
props.row.customerNameEN ?? props.rowIndex
|
||||||
|
"
|
||||||
:data="{
|
:data="{
|
||||||
code: props.row.code,
|
code: props.row.code,
|
||||||
name:
|
name:
|
||||||
|
|
@ -2753,6 +2756,7 @@ watch(isMainPage, () => {
|
||||||
:id="`card-${props.row.firstNameEN}`"
|
:id="`card-${props.row.firstNameEN}`"
|
||||||
:field-selected="fieldSelected"
|
:field-selected="fieldSelected"
|
||||||
history
|
history
|
||||||
|
:prefix-id="props.row.firstNameEN ?? props.rowIndex"
|
||||||
:data="{
|
:data="{
|
||||||
code: props.row.code,
|
code: props.row.code,
|
||||||
name:
|
name:
|
||||||
|
|
@ -4069,6 +4073,7 @@ watch(isMainPage, () => {
|
||||||
no-hover
|
no-hover
|
||||||
no-action
|
no-action
|
||||||
no-detail
|
no-detail
|
||||||
|
prefix-id="drawer-edit"
|
||||||
:data="{
|
:data="{
|
||||||
name:
|
name:
|
||||||
formDataEmployee.firstName + ' ' + formDataEmployee.lastName,
|
formDataEmployee.firstName + ' ' + formDataEmployee.lastName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue