From 34cccc50384c7f9046dabd14c6fd3d4c18f6ac56 Mon Sep 17 00:00:00 2001 From: Krauss <3317187936@qq.com> Date: Fri, 4 Oct 2024 19:14:43 +0800 Subject: [PATCH] 10-4-19:13 --- src/router/index.js | 27 +++- src/views/AuditView.vue | 5 +- src/views/HotelView.vue | 274 ++++++++++++++++++++++++++++++++++++++ src/views/LayoutView.vue | 16 ++- src/views/LogView.vue | 229 +++++++++++++++++++++++++++++++ src/views/LoginView.vue | 2 +- src/views/ReserveView.vue | 228 +++++++++++++++++++++++++++++++ 7 files changed, 765 insertions(+), 16 deletions(-) create mode 100644 src/views/HotelView.vue create mode 100644 src/views/LogView.vue create mode 100644 src/views/ReserveView.vue diff --git a/src/router/index.js b/src/router/index.js index 1c38f56..feef8a2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -22,35 +22,50 @@ const routes = [ }, { - path: '/', + path: '/Layout', name: 'Layout', component: LayoutView, children:[ { - path: '', + path: '/Layout/home', name: 'home', component: HomeView }, { - path: 'admin', + path: '/Layout/admin', name: 'admin', component: () => import('../views/AdminView.vue') }, { - path: 'book', + path: '/Layout/book', name: 'book', component: () => import('../views/BookView.vue') }, { - path: 'type', + path: '/Layout/type', name: 'type', component: () => import('../views/TypeView.vue') }, { - path: 'audit', + path: '/Layout/audit', name: 'audit', component: () => import('../views/AuditView.vue') }, + { + path: '/Layout/hotel', + name: 'hotel', + component: () => import('../views/HotelView.vue') + }, + { + path: '/Layout/reserve', + name: 'reserve', + component: () => import('../views/ReserveView.vue') + }, + { + path: '/Layout/log', + name: 'log', + component: () => import('../views/LogView.vue') + }, ] }, diff --git a/src/views/AuditView.vue b/src/views/AuditView.vue index cbbdc4f..513ce3c 100644 --- a/src/views/AuditView.vue +++ b/src/views/AuditView.vue @@ -2,8 +2,8 @@
- - + + 查询 清空 新增 @@ -122,7 +122,6 @@ export default { pageNum: 1, pageSize: 5, name: '', - phone:'', }, total: 0, dialogFormVisible: false, diff --git a/src/views/HotelView.vue b/src/views/HotelView.vue new file mode 100644 index 0000000..a2f15fe --- /dev/null +++ b/src/views/HotelView.vue @@ -0,0 +1,274 @@ + + + \ No newline at end of file diff --git a/src/views/LayoutView.vue b/src/views/LayoutView.vue index cb567a6..e96861e 100644 --- a/src/views/LayoutView.vue +++ b/src/views/LayoutView.vue @@ -23,7 +23,7 @@ - + 系统首页 @@ -33,10 +33,11 @@ 用户管理 + - 管理员信息 - 用户信息 + 管理员信息 + @@ -45,9 +46,12 @@ 信息管理 - 图书信息 - 图书分类 - 提交审核 + 图书信息 + 图书分类 + 提交审核 + 酒店预定 + 预定管理 + 操作日志 diff --git a/src/views/LogView.vue b/src/views/LogView.vue new file mode 100644 index 0000000..9f9fccb --- /dev/null +++ b/src/views/LogView.vue @@ -0,0 +1,229 @@ + + + \ No newline at end of file diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue index 2696e4b..1215a76 100644 --- a/src/views/LoginView.vue +++ b/src/views/LoginView.vue @@ -61,7 +61,7 @@ export default { type: 'success' }); localStorage.setItem("user",JSON.stringify(res.data))//将用户信息存在网页的localstorage里 - this.$router.push("/"); + this.$router.push("/Layout"); }else{ this.$message({ message: res.msg, diff --git a/src/views/ReserveView.vue b/src/views/ReserveView.vue new file mode 100644 index 0000000..37658d1 --- /dev/null +++ b/src/views/ReserveView.vue @@ -0,0 +1,228 @@ + + + \ No newline at end of file -- Gitee