diff --git a/src/router/index.js b/src/router/index.js index 1c38f56fd1b22ffabd3a68942c99a2ca114fa524..feef8a2f4aeccdf3a6eb66d62ca33425dee1d4f2 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 cbbdc4ffa4804557046c9a626dff0331ce14a6ee..513ce3ca514c1641d99a56dc296d6b252c557562 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 0000000000000000000000000000000000000000..a2f15fe71c2902b6e4b1696625d6e84766658472 --- /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 cb567a6fe19af45e1d9ba366f04da61b9a96f4e6..e96861ee274b7f71537cc093d099678450e12116 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 0000000000000000000000000000000000000000..9f9fccb96dee05f852f66dbed8f4dad24781d4f0 --- /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 2696e4b96239e9b33b729a0ab0435d998f0c84ac..1215a7637df1e68fd2c04183f50ced17f02bd999 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 0000000000000000000000000000000000000000..37658d135239edd4fb04b82684a4e721aeeaa78d --- /dev/null +++ b/src/views/ReserveView.vue @@ -0,0 +1,228 @@ + + + \ No newline at end of file