@@ -106,45 +101,30 @@ function getWorkerAvatar() {
{{ t('worker.summary.basicData') }}
-
-
-
ID
{{ worker.id }}
-
-
-
{{ t('worker.card.name') }}
{{ worker.user.nickname }}
-
-
-
{{ t('worker.list.department') }}
{{ worker.department.department.name }}
-
-
-
{{ t('worker.list.email') }}
{{ worker.user.email }}
-
-
-
{{ t('worker.summary.boss') }}
@@ -153,9 +133,6 @@ function getWorkerAvatar() {
-
-
-
{{ t('worker.summary.phoneExtension') }}
@@ -164,18 +141,12 @@ function getWorkerAvatar() {
-
-
-
{{ t('worker.summary.entPhone') }}
{{ worker.phone }}
-
-
-
{{ t('worker.summary.personalPhone') }}
{{ worker.client.phone }}
@@ -189,36 +160,24 @@ function getWorkerAvatar() {
{{ t('worker.summary.userData') }}
-
-
-
{{ t('worker.summary.userId') }}
{{ worker.user.id }}
-
-
-
{{ t('worker.card.name') }}
{{ worker.user.nickname }}
-
-
-
{{ t('worker.summary.role') }}
{{ worker.user.role.name }}
-
-
-
{{ t('worker.summary.sipExtension') }}
{{ sipExtension() }}
diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue
index 96918ecb2..622f858fd 100644
--- a/src/pages/Worker/WorkerList.vue
+++ b/src/pages/Worker/WorkerList.vue
@@ -52,21 +52,23 @@ function viewSummary(id) {
- #{{ row.id }}
{{ row.user.nickname }}
+ #{{ row.id }}
-
+
{{ t('worker.list.name') }}
{{ row.user.name }}
-
+
+
+
{{ t('worker.list.email') }}
{{ row.user.email }}
-
+
{{ t('worker.list.department') }}
{{ row.department.department.name }}
diff --git a/src/router/modules/index.js b/src/router/modules/index.js
index dcb3fa5c2..ca8b3c958 100644
--- a/src/router/modules/index.js
+++ b/src/router/modules/index.js
@@ -2,10 +2,12 @@ import Customer from './customer';
import Ticket from './ticket';
import Claim from './claim';
import InvoiceOut from './invoiceOut';
+import Worker from './worker';
export default [
Customer,
Ticket,
Claim,
- InvoiceOut
+ InvoiceOut,
+ Worker
]
diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js
index 19d7acf4b..ddba83cfa 100644
--- a/src/router/modules/worker.js
+++ b/src/router/modules/worker.js
@@ -8,14 +8,14 @@ export default {
icon: 'vn:worker',
},
component: RouterView,
- redirect: { name: 'workerMain' },
+ redirect: { name: 'WorkerMain' },
menus: {
- main: ['workerMain'],
+ main: ['WorkerList'],
},
children: [
{
path: '',
- name: 'workerMain',
+ name: 'WorkerMain',
component: () => import('src/pages/Worker/WorkerMain.vue'),
redirect: { name: 'WorkerList' },
children: [
@@ -31,13 +31,13 @@ export default {
],
},
{
- name: 'workerCard',
+ name: 'WorkerCard',
path: ':id',
component: () => import('src/pages/Worker/Card/WorkerCard.vue'),
redirect: { name: 'WorkerSummary' },
children: [
{
- name: 'workerSummary',
+ name: 'WorkerSummary',
path: 'summary',
meta: {
title: 'summary',
diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js
index 6d1a74326..3b2c7e8a7 100644
--- a/src/stores/useNavigationStore.js
+++ b/src/stores/useNavigationStore.js
@@ -6,7 +6,7 @@ import { useRole } from 'src/composables/useRole';
import routes from 'src/router/modules';
export const useNavigationStore = defineStore('navigationStore', () => {
- const modules = ['customer', 'claim', 'ticket', 'invoiceOut'];
+ const modules = ['customer', 'claim', 'ticket', 'invoiceOut', 'worker'];
const pinnedModules = ref([]);
const role = useRole();