From dcfaff69edad49aa54973363c1bffc2dd9083208 Mon Sep 17 00:00:00 2001 From: YuNan <3194726156@qq.com> Date: Tue, 18 Feb 2025 14:28:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=BE=E5=AE=A2=E9=A1=B5=E9=9D=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 29 +++++++++++++++++++---- src/views/customer/CustomerDashboard.vue | 2 +- src/views/customer/MySchedule.vue | 19 +++++++++++++++ src/views/customer/ServiceAppointment.vue | 19 +++++++++++++++ src/views/customer/UserProfile.vue | 19 +++++++++++++++ 5 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 src/views/customer/MySchedule.vue create mode 100644 src/views/customer/ServiceAppointment.vue create mode 100644 src/views/customer/UserProfile.vue diff --git a/src/router/index.js b/src/router/index.js index e16d282..80482b0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,9 @@ import AdminDashboard from '../views/admin/AdminDashboard.vue' import StaffDashboard from '../views/staff/StaffDashboard.vue' import CustomerDashboard from '../views/customer/CustomerDashboard.vue' import CustomerHome from '../views/customer/CustomerHome.vue' +import ServiceAppointment from '@/views/customer/ServiceAppointment.vue' +import MySchedule from '@/views/customer/MySchedule.vue' +import UserProfile from '@/views/customer/UserProfile.vue' const routes = [ { @@ -33,24 +36,40 @@ const routes = [ path: '/admin', name: 'AdminDashboard', component: AdminDashboard, - meta: { requiresAuth: true, role: 'admin' } + meta: { requiresAuth: true, role: 'admin', title: '管理员控制台' } }, { path: '/staff', name: 'StaffDashboard', component: StaffDashboard, - meta: { requiresAuth: true, role: 'staff' } + meta: { requiresAuth: true, role: 'staff', title: '员工控制台' } }, { path: '/customer', name: 'CustomerDashboard', component: CustomerDashboard, - meta: { requiresAuth: true, role: 'customer' }, + meta: { requiresAuth: true, role: 'customer', title: '养老系统' }, children: [ { - path: '', + path: '/customer/home', name: 'CustomerHome', - component: CustomerHome + component: CustomerHome, + meta: { title: '养老系统' } + }, + { + path: '/customer/services', + name: 'ServiceAppointment', + component: ServiceAppointment + }, + { + path: '/customer/schedule', + name: 'MySchedule', + component: MySchedule + }, + { + path: '/customer/profile', + name: 'UserProfile', + component: UserProfile } ] } diff --git a/src/views/customer/CustomerDashboard.vue b/src/views/customer/CustomerDashboard.vue index 5cb2dfa..34679e6 100644 --- a/src/views/customer/CustomerDashboard.vue +++ b/src/views/customer/CustomerDashboard.vue @@ -3,7 +3,7 @@

顾客服务中心