refactor: เพิ่ม select
This commit is contained in:
parent
cd51de0159
commit
7b89fd7cb6
1 changed files with 27 additions and 0 deletions
|
|
@ -2148,6 +2148,33 @@ watch(inputSearchProductAndService, async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
|
|
||||||
|
<q-select
|
||||||
|
v-if="modeView === false"
|
||||||
|
id="select-field"
|
||||||
|
for="select-field"
|
||||||
|
:options=" {
|
||||||
|
product: tbControl.product.fieldDisplay,
|
||||||
|
service: tbControl.service.fieldDisplay,
|
||||||
|
}[productAndServiceTab].map(x => ({ label: $t(x), value: x })) "
|
||||||
|
:display-value="$t('displayField')"
|
||||||
|
:model-value="
|
||||||
|
{ product: tbControl.product.fieldSelected,
|
||||||
|
service: tbControl.service.fieldSelected,
|
||||||
|
}[productAndServiceTab]
|
||||||
|
"
|
||||||
|
@update:model-value="(v) => tbControl[productAndServiceTab].fieldSelected = v
|
||||||
|
"
|
||||||
|
option-label="label"
|
||||||
|
option-value="value"
|
||||||
|
map-options
|
||||||
|
emit-value
|
||||||
|
outlined
|
||||||
|
multiple
|
||||||
|
dense
|
||||||
|
/>
|
||||||
|
|
||||||
<q-btn-toggle
|
<q-btn-toggle
|
||||||
v-model="modeView"
|
v-model="modeView"
|
||||||
id="btn-mode"
|
id="btn-mode"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue