fix: i18n
This commit is contained in:
parent
5d519dc20b
commit
0fdae19805
1 changed files with 7 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ const file = defineModel<
|
||||||
|
|
||||||
const currentFile = computed(() => file.value.at(currentIndex.value));
|
const currentFile = computed(() => file.value.at(currentIndex.value));
|
||||||
const statusOcr = defineModel<boolean>('statusOcr', { default: false });
|
const statusOcr = defineModel<boolean>('statusOcr', { default: false });
|
||||||
const currentMode = ref<string>('citizenId');
|
const currentMode = ref<string>('');
|
||||||
const currentIndex = ref(0);
|
const currentIndex = ref(0);
|
||||||
|
|
||||||
const scale = ref(1);
|
const scale = ref(1);
|
||||||
|
|
@ -88,7 +88,8 @@ watch(currentFileSelected, () => {
|
||||||
file.value.findIndex((v, i) => {
|
file.value.findIndex((v, i) => {
|
||||||
if (v.url?.includes(currentFileSelected.value)) {
|
if (v.url?.includes(currentFileSelected.value)) {
|
||||||
currentIndex.value = i;
|
currentIndex.value = i;
|
||||||
currentMode.value = currentFileSelected.value.split('-').at(0) || '';
|
currentMode.value =
|
||||||
|
props.dropdownList?.[currentIndexDropdownList.value].label || 'other';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -200,7 +201,7 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
||||||
icon="mdi-magnify-plus-outline"
|
icon="mdi-magnify-plus-outline"
|
||||||
@click="scale = scale < 2 ? scale + 0.25 : scale"
|
@click="scale = scale < 2 ? scale + 0.25 : scale"
|
||||||
>
|
>
|
||||||
<q-tooltip>{{ $t('zoomIn') }}</q-tooltip>
|
<q-tooltip>{{ $t('general.zoomIn') }}</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
@ -242,7 +243,7 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
||||||
class="bordered row items-center justify-between q-pa-sm"
|
class="bordered row items-center justify-between q-pa-sm"
|
||||||
style="height: 50px"
|
style="height: 50px"
|
||||||
>
|
>
|
||||||
{{ $t(`customer.typeFile.${currentMode}`) }}
|
{{ $t(currentMode) }}
|
||||||
<div class="row" v-if="!hideAction">
|
<div class="row" v-if="!hideAction">
|
||||||
<UndoButton icon-only type="button" />
|
<UndoButton icon-only type="button" />
|
||||||
<SaveButton
|
<SaveButton
|
||||||
|
|
@ -266,7 +267,9 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
||||||
{{ currentFileSelected }}
|
{{ currentFileSelected }}
|
||||||
<CloseButton
|
<CloseButton
|
||||||
icon-only
|
icon-only
|
||||||
|
v-if="!readonly"
|
||||||
type="button"
|
type="button"
|
||||||
|
class="q-ml-sm"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
const tempValue = treeFile.find(
|
const tempValue = treeFile.find(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue