refactor: edit i18n can't show

This commit is contained in:
Net 2024-08-09 10:47:35 +07:00
parent 9430c0649c
commit 46ce2e5296
3 changed files with 7 additions and 7 deletions

View file

@ -16,7 +16,7 @@ defineProps<{
metadata?: unknown; metadata?: unknown;
badgeField?: string[]; badgeField?: string[];
fieldSelected?: ( fieldSelected?: (
| 'branchLabelNo' | 'orderNumber'
| 'branchLabelName' | 'branchLabelName'
| 'branchLabelAddress' | 'branchLabelAddress'
| 'branchLabelTel' | 'branchLabelTel'

View file

@ -44,7 +44,7 @@ const holdDialog = ref(false);
const isSubCreate = ref(false); const isSubCreate = ref(false);
const columns = [ const columns = [
{ {
name: 'branchLabelNo', name: 'orderNumber',
align: 'center', align: 'center',
label: 'orderNumber', label: 'orderNumber',
field: 'branchNo', field: 'branchNo',
@ -222,10 +222,10 @@ const fieldDisplay = ref<
| 'branchLabelAddress' | 'branchLabelAddress'
| 'branchLabelTel' | 'branchLabelTel'
| 'branchLabelType' | 'branchLabelType'
| 'branchLabelNo' | 'orderNumber'
)[] )[]
>([ >([
'branchLabelNo', 'orderNumber',
'branchLabelName', 'branchLabelName',
'branchLabelTel', 'branchLabelTel',
'branchLabelAddress', 'branchLabelAddress',
@ -233,7 +233,7 @@ const fieldDisplay = ref<
]); ]);
const fieldSelected = ref< const fieldSelected = ref<
( (
| 'branchLabelNo' | 'orderNumber'
| 'branchLabelName' | 'branchLabelName'
| 'branchLabelAddress' | 'branchLabelAddress'
| 'branchLabelTel' | 'branchLabelTel'
@ -1070,7 +1070,7 @@ watch(currentHq, () => {
> >
<q-td <q-td
class="text-center" class="text-center"
v-if="fieldSelected.includes('branchLabelNo')" v-if="fieldSelected.includes('orderNumber')"
> >
{{ props.rowIndex + 1 }} {{ props.rowIndex + 1 }}
</q-td> </q-td>

View file

@ -88,7 +88,7 @@ const modeView = ref(false);
const fieldSelectedOption = ref<{ label: string; value: string }[]>([ const fieldSelectedOption = ref<{ label: string; value: string }[]>([
{ {
label: 'branchLabelNo', label: 'orderNumber',
value: 'branchLabelNo', value: 'branchLabelNo',
}, },