fix: แก้ระยะของ ของ selector
This commit is contained in:
parent
271403ccff
commit
7ff9bcddc8
3 changed files with 9 additions and 7 deletions
|
|
@ -61,9 +61,9 @@ defineProps<{
|
||||||
.q-item {
|
.q-item {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
padding: 6px 16px;
|
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
margin-bottom: 8px;
|
padding: 0 16px;
|
||||||
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.disable-item {
|
.disable-item {
|
||||||
|
|
|
||||||
|
|
@ -549,7 +549,7 @@ watch(
|
||||||
<SelectorList
|
<SelectorList
|
||||||
:list="selectorList"
|
:list="selectorList"
|
||||||
v-model:selector="selectorLabel"
|
v-model:selector="selectorLabel"
|
||||||
class="q-mr-md col-4"
|
class="q-mr-md col-3"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- stat -->
|
<!-- stat -->
|
||||||
|
|
@ -570,7 +570,7 @@ watch(
|
||||||
style="background-color: var(--cyan-6); color: white"
|
style="background-color: var(--cyan-6); color: white"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="row full-width q-py-md" style="overflow-x: auto">
|
<div class="row full-width" style="overflow-x: auto">
|
||||||
<StatCardComponent
|
<StatCardComponent
|
||||||
v-if="sortedUserStats"
|
v-if="sortedUserStats"
|
||||||
:branch="
|
:branch="
|
||||||
|
|
@ -669,7 +669,7 @@ watch(
|
||||||
{ label: $t('personnelCardTelephone'), value: v.telephoneNo },
|
{ label: $t('personnelCardTelephone'), value: v.telephoneNo },
|
||||||
{
|
{
|
||||||
label: $t('personnelCardAge'),
|
label: $t('personnelCardAge'),
|
||||||
value: userStore.calculateAge(v.birthDate as Date),
|
value: userStore.calculateAge(v.birthDate as Date) || '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
badge: v.code,
|
badge: v.code,
|
||||||
|
|
|
||||||
|
|
@ -619,6 +619,8 @@ async function onDelete(id: string) {
|
||||||
|
|
||||||
async function submitBranch() {
|
async function submitBranch() {
|
||||||
if (formData.value.customerBranch?.[0]) {
|
if (formData.value.customerBranch?.[0]) {
|
||||||
|
delete formData.value.customerBranch[0]['id'];
|
||||||
|
|
||||||
await editBranchById(currentBranchId.value, {
|
await editBranchById(currentBranchId.value, {
|
||||||
...formData.value.customerBranch[0],
|
...formData.value.customerBranch[0],
|
||||||
customerId: currentCustomerId.value,
|
customerId: currentCustomerId.value,
|
||||||
|
|
@ -791,7 +793,7 @@ watch(fieldSelectedCustomer, async () => {
|
||||||
clickable
|
clickable
|
||||||
:list="selectorList"
|
:list="selectorList"
|
||||||
v-model:selector="selectorLabel"
|
v-model:selector="selectorLabel"
|
||||||
class="q-mr-md col-4"
|
class="q-mr-md col-3"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- stat -->
|
<!-- stat -->
|
||||||
|
|
@ -819,7 +821,7 @@ watch(fieldSelectedCustomer, async () => {
|
||||||
style="background-color: var(--cyan-6); color: white"
|
style="background-color: var(--cyan-6); color: white"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="row full-width q-py-md" style="overflow-x: auto">
|
<div class="row full-width" style="overflow-x: auto">
|
||||||
<StatCardComponent
|
<StatCardComponent
|
||||||
v-if="customerStats"
|
v-if="customerStats"
|
||||||
labelI18n
|
labelI18n
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue