fix: แก้ระยะของ ของ selector

This commit is contained in:
Net 2024-06-12 15:35:05 +07:00
parent 271403ccff
commit 7ff9bcddc8
3 changed files with 9 additions and 7 deletions

View file

@ -61,9 +61,9 @@ defineProps<{
.q-item {
align-items: center;
border: 1px solid transparent;
padding: 6px 16px;
min-height: 0;
margin-bottom: 8px;
padding: 0 16px;
margin-bottom: 4px;
}
.disable-item {

View file

@ -549,7 +549,7 @@ watch(
<SelectorList
:list="selectorList"
v-model:selector="selectorLabel"
class="q-mr-md col-4"
class="q-mr-md col-3"
/>
<!-- stat -->
@ -570,7 +570,7 @@ watch(
style="background-color: var(--cyan-6); color: white"
/>
</div>
<div class="row full-width q-py-md" style="overflow-x: auto">
<div class="row full-width" style="overflow-x: auto">
<StatCardComponent
v-if="sortedUserStats"
:branch="
@ -669,7 +669,7 @@ watch(
{ label: $t('personnelCardTelephone'), value: v.telephoneNo },
{
label: $t('personnelCardAge'),
value: userStore.calculateAge(v.birthDate as Date),
value: userStore.calculateAge(v.birthDate as Date) || '',
},
],
badge: v.code,

View file

@ -619,6 +619,8 @@ async function onDelete(id: string) {
async function submitBranch() {
if (formData.value.customerBranch?.[0]) {
delete formData.value.customerBranch[0]['id'];
await editBranchById(currentBranchId.value, {
...formData.value.customerBranch[0],
customerId: currentCustomerId.value,
@ -791,7 +793,7 @@ watch(fieldSelectedCustomer, async () => {
clickable
:list="selectorList"
v-model:selector="selectorLabel"
class="q-mr-md col-4"
class="q-mr-md col-3"
/>
<!-- stat -->
@ -819,7 +821,7 @@ watch(fieldSelectedCustomer, async () => {
style="background-color: var(--cyan-6); color: white"
/>
</div>
<div class="row full-width q-py-md" style="overflow-x: auto">
<div class="row full-width" style="overflow-x: auto">
<StatCardComponent
v-if="customerStats"
labelI18n