From 5fa6b58a699c4e862b95b2c559ccd9f2a77eb460 Mon Sep 17 00:00:00 2001 From: LX <768863620@qq.com> Date: Thu, 21 Mar 2024 09:46:25 +0800 Subject: [PATCH] no message --- wms-vue/src/components/Aside.vue | 9 +- wms-vue/src/components/admin/Admin.vue | 13 - wms-vue/src/components/duochaxun/demo1.vue | 470 ++++++++++++++++++ wms-vue/src/components/duochaxun/demo2.vue | 470 ++++++++++++++++++ wms-vue/src/main.js | 2 +- wms-vue/src/router/router.js | 34 +- .../com/yc/wms/controller/UserController.java | 9 +- 7 files changed, 958 insertions(+), 49 deletions(-) delete mode 100644 wms-vue/src/components/admin/Admin.vue create mode 100644 wms-vue/src/components/duochaxun/demo1.vue create mode 100644 wms-vue/src/components/duochaxun/demo2.vue diff --git a/wms-vue/src/components/Aside.vue b/wms-vue/src/components/Aside.vue index b63f715..c130b97 100644 --- a/wms-vue/src/components/Aside.vue +++ b/wms-vue/src/components/Aside.vue @@ -11,13 +11,6 @@ router > - - - - 系统管理 - - 用户管理 - @@ -50,4 +43,4 @@ export default { \ No newline at end of file + diff --git a/wms-vue/src/components/admin/Admin.vue b/wms-vue/src/components/admin/Admin.vue deleted file mode 100644 index c3dca26..0000000 --- a/wms-vue/src/components/admin/Admin.vue +++ /dev/null @@ -1,13 +0,0 @@ - -admin - - - - - \ No newline at end of file diff --git a/wms-vue/src/components/duochaxun/demo1.vue b/wms-vue/src/components/duochaxun/demo1.vue new file mode 100644 index 0000000..5273982 --- /dev/null +++ b/wms-vue/src/components/duochaxun/demo1.vue @@ -0,0 +1,470 @@ + + + + + + + + + + + + + + + + 重置 + + + + + 新增 + 编辑 + 删除 + 导出 + + + + + + + + + + + + + + + + + + + + + + + 男 + 女 + + + + + + + + + + + + + + + + + + + {{ scope.row.id }} + + + + + + 账号: {{ scope.row.userNo }} + 电话: {{ scope.row.phone }} + + {{ scope.row.userNo }} + + + + + + + + {{ scope.row.userName }} + + + + + + + {{ scope.row.age }} + + + + + + + {{ scope.row.phone }} + + + + + + + + + {{ scope.row.sex === 0 ? '女' : '男' }} + + + + + + + + + + {{ scope.row.roleId === 0 ? '超级管理员' : (scope.row.roleId === 1 ? '管理员' : '用户') }} + + + + + + + + + + + 查看 + 编辑 + + + + + + + + + + + + diff --git a/wms-vue/src/components/duochaxun/demo2.vue b/wms-vue/src/components/duochaxun/demo2.vue new file mode 100644 index 0000000..5273982 --- /dev/null +++ b/wms-vue/src/components/duochaxun/demo2.vue @@ -0,0 +1,470 @@ + + + + + + + + + + + + + + + + 重置 + + + + + 新增 + 编辑 + 删除 + 导出 + + + + + + + + + + + + + + + + + + + + + + + 男 + 女 + + + + + + + + + + + + + + + + + + + {{ scope.row.id }} + + + + + + 账号: {{ scope.row.userNo }} + 电话: {{ scope.row.phone }} + + {{ scope.row.userNo }} + + + + + + + + {{ scope.row.userName }} + + + + + + + {{ scope.row.age }} + + + + + + + {{ scope.row.phone }} + + + + + + + + + {{ scope.row.sex === 0 ? '女' : '男' }} + + + + + + + + + + {{ scope.row.roleId === 0 ? '超级管理员' : (scope.row.roleId === 1 ? '管理员' : '用户') }} + + + + + + + + + + + 查看 + 编辑 + + + + + + + + + + + + diff --git a/wms-vue/src/main.js b/wms-vue/src/main.js index b9c5600..b6522ff 100644 --- a/wms-vue/src/main.js +++ b/wms-vue/src/main.js @@ -8,7 +8,7 @@ import VueRouter from "vue-router"; import router from "@/router/router"; import store from "@/store/store"; Vue.prototype.$axios=axios; -Vue.prototype.$httpUrl='http://192.168.56.138:8081'; +Vue.prototype.$httpUrl='http://192.168.56.147:8081'; Vue.config.productionTip = false; Vue.use(VueRouter) Vue.use(ElementUI,{size:'small'}); diff --git a/wms-vue/src/router/router.js b/wms-vue/src/router/router.js index 0db577f..2ea8003 100644 --- a/wms-vue/src/router/router.js +++ b/wms-vue/src/router/router.js @@ -17,39 +17,23 @@ const routes=[ meta:{ title:'首页' }, - component: () => import('../components/Home') + component: () => import('../components/duochaxun/demo1.vue') }, { - path:'/admin', - name:'admin', + path:'/demo1', + name:'demo1', meta:{ - title:'超级管理员' + title:'测试1' }, - component: () => import('../components/admin/Admin') + component: () => import('@/components/duochaxun/demo1.vue') }, { - path:'/user', - name:'user', + path:'/demo2', + name:'demo2', meta:{ - title:'用户' + title:'测试2' }, - component: () => import('../components/user/User') - }, - { - path:'/admin', - name:'admin', - meta:{ - title:'管理员' - }, - component: () => import('../components/admin/Admin') - }, - { - path:'/main', - name:'main', - meta:{ - title:'用户管理' - }, - component: () => import('../components/Main') + component: () => import('@/components/duochaxun/demo2.vue') } ] } diff --git a/wms/src/main/java/com/yc/wms/controller/UserController.java b/wms/src/main/java/com/yc/wms/controller/UserController.java index 69ffc7c..10f41b6 100644 --- a/wms/src/main/java/com/yc/wms/controller/UserController.java +++ b/wms/src/main/java/com/yc/wms/controller/UserController.java @@ -61,16 +61,21 @@ public class UserController { menu.put("menuCode",i); if(i==1) { menu.put("menuName", "库存汇总查询"); + menu.put("menuComponent","/demo1"); + menu.put("menuClick","demo1"); }else if(i==2) { menu.put("menuName", "入库明细查询"); + menu.put("menuComponent","/demo2"); + menu.put("menuClick","demo2"); }else if(i==3) { menu.put("menuName", "出库明细查询"); + menu.put("menuComponent","/demo2"); + menu.put("menuClick","demo2"); } menu.put("menuLevel",i); menu.put("menuParentCode",i); - menu.put("menuClick","admin"+i); + menu.put("menuRight", "0,1"); - menu.put("menuComponent","/admin"+i); menu.put("menuIcon","el-icon-s-home"); array.add(menu); }
账号: {{ scope.row.userNo }}
电话: {{ scope.row.phone }}