fix: breadcrumbs i18n

This commit is contained in:
Methapon2001 2024-08-06 13:26:38 +07:00
parent 457217a257
commit 5cd2afbd69
4 changed files with 9 additions and 4 deletions

View file

@ -186,6 +186,7 @@ onMounted(async () => {
utilsStore.currentTitle.path = [
{
text: 'branchManagementCaption',
i18n: true,
handler: () => {
fieldSelectedBranch.value.value = 'branchHQLabel';
currentHq.value = {

View file

@ -632,7 +632,9 @@ function openImageDialog() {
onMounted(async () => {
utilsStore.currentTitle.title = 'personnelManagement';
utilsStore.currentTitle.path = [{ text: 'personnelManagementCaption' }];
utilsStore.currentTitle.path = [
{ text: 'personnelManagementCaption', i18n: true },
];
modeView.value = $q.screen.lt.md ? true : false;
await fetchUserList();

View file

@ -70,6 +70,7 @@ async function init() {
utilsStore.currentTitle.path = [
{
text: 'customerManagementCaption',
i18n: true,
handler: () => router.push('/customer-management'),
},
];
@ -547,8 +548,8 @@ function createEmployeeForm() {
? customerStats.map((v) => ({
count:
v.name === 'CORP'
? (statsCustomerType?.CORP ?? 0)
: (statsCustomerType?.PERS ?? 0),
? statsCustomerType?.CORP ?? 0
: statsCustomerType?.PERS ?? 0,
label:
v.name === 'CORP'
? 'customerLegalEntity'
@ -1536,7 +1537,7 @@ function createEmployeeForm() {
{
icon: 'mdi-clock-outline',
value: props.row.dateOfBirth
? (calculateAge(props.row.dateOfBirth) ?? '')
? calculateAge(props.row.dateOfBirth) ?? ''
: '',
},
],

View file

@ -1272,6 +1272,7 @@ onMounted(async () => {
utilsStore.currentTitle.path = [
{
text: 'manage',
i18n: true,
handler: () => {
expandedTree.value = [];
currentIdGrop.value = '';