refactor: add i18n
This commit is contained in:
parent
eef8547683
commit
c4305730b0
3 changed files with 7 additions and 16 deletions
|
|
@ -182,14 +182,15 @@ watch(
|
||||||
v-if="userType === 'MESSENGER'"
|
v-if="userType === 'MESSENGER'"
|
||||||
outlined
|
outlined
|
||||||
clearable
|
clearable
|
||||||
use-input
|
|
||||||
fill-input
|
fill-input
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
hide-selected
|
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
class="col-12"
|
class="col-12"
|
||||||
input-debounce="0"
|
input-debounce="0"
|
||||||
|
multiple
|
||||||
|
use-chips
|
||||||
|
stack-label
|
||||||
option-label="label"
|
option-label="label"
|
||||||
option-value="value"
|
option-value="value"
|
||||||
id="input-responsible-area"
|
id="input-responsible-area"
|
||||||
|
|
@ -199,20 +200,8 @@ watch(
|
||||||
:label="$t('personnel.form.responsibleArea')"
|
:label="$t('personnel.form.responsibleArea')"
|
||||||
:options="responsibleAreaOptions"
|
:options="responsibleAreaOptions"
|
||||||
@filter="responsibleAreaFilter"
|
@filter="responsibleAreaFilter"
|
||||||
:model-value="readonly ? responsibleArea || '-' : responsibleArea"
|
v-model="responsibleArea"
|
||||||
@update:model-value="
|
></q-select>
|
||||||
(v) => (typeof v === 'string' ? (responsibleArea = v) : '')
|
|
||||||
"
|
|
||||||
@clear="responsibleArea = ''"
|
|
||||||
>
|
|
||||||
<template v-slot:no-option>
|
|
||||||
<q-item>
|
|
||||||
<q-item-section class="text-grey">
|
|
||||||
{{ $t('general.noData') }}
|
|
||||||
</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
</template>
|
|
||||||
</q-select>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="userType === 'DELEGATE'"
|
v-if="userType === 'DELEGATE'"
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ export default {
|
||||||
shared: 'Shared',
|
shared: 'Shared',
|
||||||
area: 'Area by area',
|
area: 'Area by area',
|
||||||
byArea: 'By area',
|
byArea: 'By area',
|
||||||
|
company: 'Company',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,7 @@ export default {
|
||||||
shared: 'ใช้ร่วมกัน',
|
shared: 'ใช้ร่วมกัน',
|
||||||
area: 'เขตพื้นที่',
|
area: 'เขตพื้นที่',
|
||||||
byArea: 'ตามเขตพื้นที่',
|
byArea: 'ตามเขตพื้นที่',
|
||||||
|
company: 'บริษัท',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue