From 45f09ac20a79534ea2a0d56929f435a1447db206 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Thu, 7 Nov 2024 11:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoSprout-ui/src/router/index.js | 28 +++++++++++++++++++ .../src/views/device/device/index.vue | 22 +++++++++++---- AutoSprout-ui/src/views/plant/log/index.vue | 18 ++++++++++-- .../src/views/system/feedback/index.vue | 8 +++++- AutoSprout-ui/src/views/user/user/index.vue | 12 +++++++- .../device/domain/AsPlantIdentifyLog.java | 6 ++++ .../service/impl/AsDeviceServiceImpl.java | 2 +- .../mapper/device/AsDeviceMapper.xml | 1 + .../mapper/plant/AsPlantIdentifyLogMapper.xml | 12 +++++--- 9 files changed, 93 insertions(+), 16 deletions(-) diff --git a/AutoSprout-ui/src/router/index.js b/AutoSprout-ui/src/router/index.js index 71907b6..2ff1acc 100644 --- a/AutoSprout-ui/src/router/index.js +++ b/AutoSprout-ui/src/router/index.js @@ -106,6 +106,34 @@ export const dynamicRoutes = [ } ] }, + { + path: '/user/user/userName', + component: Layout, + hidden: true, + permissions: ['user:user:list'], + children: [ + { + path: 'index/:userName', + component: () => import('@/views/user/user'), + name: 'Data', + meta: { title: 'App用户列表', activeMenu: '/user/user' } + } + ] + }, + { + path: '/device/device/userName', + component: Layout, + hidden: true, + permissions: ['device:device:list'], + children: [ + { + path: 'index/:userName', + component: () => import('@/views/device/device'), + name: 'Data', + meta: { title: '设备列表', activeMenu: '/device/device' } + } + ] + }, { path: '/system/role-auth', component: Layout, diff --git a/AutoSprout-ui/src/views/device/device/index.vue b/AutoSprout-ui/src/views/device/device/index.vue index a150ad6..cb1581e 100644 --- a/AutoSprout-ui/src/views/device/device/index.vue +++ b/AutoSprout-ui/src/views/device/device/index.vue @@ -55,10 +55,10 @@ /> - + @@ -166,7 +166,13 @@ /> - + + + - +
浇水时长 @@ -701,7 +707,7 @@ selectableRange: '00:00:00 - 23:59:59' }" placeholder="请选择时间"> - +
定时模式 @@ -960,6 +966,10 @@ export default { }; }, created() { + const userName = this.$route.params && this.$route.params.userName; + if (userName != null) { + this.queryParams.userName = userName; + } this.getList(); }, computed: { diff --git a/AutoSprout-ui/src/views/plant/log/index.vue b/AutoSprout-ui/src/views/plant/log/index.vue index 17267f9..5fbfacc 100644 --- a/AutoSprout-ui/src/views/plant/log/index.vue +++ b/AutoSprout-ui/src/views/plant/log/index.vue @@ -1,6 +1,14 @@