diff --git a/src/pages/admin/ModulesPage.vue b/src/pages/admin/ModulesPage.vue index 336467b..db5b1dd 100644 --- a/src/pages/admin/ModulesPage.vue +++ b/src/pages/admin/ModulesPage.vue @@ -18,7 +18,9 @@ - + + + @@ -217,5 +219,10 @@ async function openRelations(row, tab) { } } +function getSystemName(systemKey) { + const system = systems.value.find(s => s.system_key === systemKey) + return system ? system.name : systemKey +} + onMounted(load) diff --git a/src/pages/admin/SitesPage.vue b/src/pages/admin/SitesPage.vue index 1eb2285..1b89b21 100644 --- a/src/pages/admin/SitesPage.vue +++ b/src/pages/admin/SitesPage.vue @@ -11,7 +11,9 @@ - + + + @@ -120,6 +122,11 @@ function openEdit(row) { showEditDialog.value = true } +function getCompanyName(companyKey) { + const company = companies.value.find(c => c.company_key === companyKey) + return company ? company.name : companyKey +} + function resetEditForm() { editForm.value = { site_key: '', company_key: '', name: '', status: 'active' } }