diff --git a/src/api/user.ts b/src/api/user.ts new file mode 100644 index 0000000..046d7a9 --- /dev/null +++ b/src/api/user.ts @@ -0,0 +1,11 @@ +import request from '@/utils/request' + + + +export const users = (data: any) => { + return request({ + url: `admin/patients`, + method: 'get', + params: data + }) +} diff --git a/src/router/index.ts b/src/router/index.ts index b179c02..d637b91 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -23,6 +23,14 @@ const constantRoutes = [ title: '患者管理' }, }, + { + path: '/userDetail', + name: 'userDetail', + component: () => import('@/views/user/userDetail.vue'), + meta: { + title: '患者详情' + }, + }, { path: '/news', name: 'news', diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 3a40216..5956293 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -1,42 +1,59 @@ \ No newline at end of file diff --git a/src/views/user/userInfo.vue b/src/views/user/userInfo.vue deleted file mode 100644 index 45e8197..0000000 --- a/src/views/user/userInfo.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - - \ No newline at end of file