refactor: เพิ่ม id tab
This commit is contained in:
parent
e8b273eabf
commit
0a123d5d7d
2 changed files with 11 additions and 4 deletions
|
|
@ -1783,6 +1783,7 @@ watch(
|
||||||
>
|
>
|
||||||
<q-tab
|
<q-tab
|
||||||
name="employer"
|
name="employer"
|
||||||
|
id="tab-employer"
|
||||||
@click="
|
@click="
|
||||||
async () => {
|
async () => {
|
||||||
selectorLabel = 'EMPLOYER';
|
selectorLabel = 'EMPLOYER';
|
||||||
|
|
@ -1804,6 +1805,7 @@ watch(
|
||||||
</q-tab>
|
</q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
name="employee"
|
name="employee"
|
||||||
|
id="tab-employee"
|
||||||
@click="
|
@click="
|
||||||
async () => {
|
async () => {
|
||||||
selectorLabel = 'EMPLOYEE';
|
selectorLabel = 'EMPLOYEE';
|
||||||
|
|
|
||||||
|
|
@ -150,12 +150,12 @@ const treeProductTypeAndGroup = computed(() => {
|
||||||
type: 'group',
|
type: 'group',
|
||||||
children:
|
children:
|
||||||
item.id === currentId.value
|
item.id === currentId.value
|
||||||
? recordTreeProductType.value[currentId.value]?.map((item) => ({
|
? recordTreeProductType.value[currentId.value]?.map((x) => ({
|
||||||
...item,
|
...x,
|
||||||
type: 'type',
|
type: 'type',
|
||||||
})) ?? []
|
})) ?? []
|
||||||
: recordTreeProductType.value[item.id]?.map((item) => ({
|
: recordTreeProductType.value[item.id]?.map((x) => ({
|
||||||
...item,
|
...x,
|
||||||
type: 'type',
|
type: 'type',
|
||||||
})) ?? [],
|
})) ?? [],
|
||||||
};
|
};
|
||||||
|
|
@ -1688,6 +1688,7 @@ watch(
|
||||||
>
|
>
|
||||||
<q-select
|
<q-select
|
||||||
v-model="currentStatus"
|
v-model="currentStatus"
|
||||||
|
for="select-status"
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
option-value="value"
|
option-value="value"
|
||||||
|
|
@ -2395,6 +2396,7 @@ watch(
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
icon="mdi-tune-vertical-variant"
|
icon="mdi-tune-vertical-variant"
|
||||||
|
id="btn-status"
|
||||||
size="sm"
|
size="sm"
|
||||||
:color="$q.dark.isActive ? 'dark' : 'white'"
|
:color="$q.dark.isActive ? 'dark' : 'white'"
|
||||||
:text-color="$q.dark.isActive ? 'white' : 'dark'"
|
:text-color="$q.dark.isActive ? 'white' : 'dark'"
|
||||||
|
|
@ -2533,6 +2535,7 @@ watch(
|
||||||
align="left"
|
align="left"
|
||||||
>
|
>
|
||||||
<q-tab
|
<q-tab
|
||||||
|
id="tab-service"
|
||||||
name="service"
|
name="service"
|
||||||
@click="
|
@click="
|
||||||
async () => {
|
async () => {
|
||||||
|
|
@ -2556,6 +2559,7 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
</q-tab>
|
</q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
|
id="tab-product"
|
||||||
name="product"
|
name="product"
|
||||||
@click="
|
@click="
|
||||||
async () => {
|
async () => {
|
||||||
|
|
@ -3258,6 +3262,7 @@ watch(
|
||||||
<div class="row items-center">
|
<div class="row items-center">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-input
|
<q-input
|
||||||
|
id="input-search-add-product"
|
||||||
outlined
|
outlined
|
||||||
style="width: 250px"
|
style="width: 250px"
|
||||||
dense
|
dense
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue