From 7674d345b845e1d78808e6fc19f3a78e0fa7fc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=82=83?= <15833576927@163.com> Date: Tue, 21 May 2024 14:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=95=B0=E6=8D=AE=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Hamburger/index.vue | 6 +- src/router/index.js | 70 ++++++ src/views/envData/climaticData/index.vue | 213 +++++++++++++++++ src/views/envData/monitorData/index.vue | 276 +++++++++++++++++++++++ src/views/envData/soilData/index.vue | 219 ++++++++++++++++++ src/views/system/base/baseTable.vue | 8 + 6 files changed, 789 insertions(+), 3 deletions(-) create mode 100644 src/views/envData/climaticData/index.vue create mode 100644 src/views/envData/monitorData/index.vue create mode 100644 src/views/envData/soilData/index.vue diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index ae57250..dd23468 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -81,9 +81,9 @@ const menuList = ref([ label: '环境数据',icon:'pure-natural', children: [ {label: '基地地图',href:'/system/base/mapMarkers'}, {label: '地块管理',href:'/system/base/baseTable'}, - {label: '土壤数据'}, - {label: '气象数据'}, - {label: '监控数据'}, + {label: '土壤数据',href: '/envData/soilData'}, + {label: '气象数据',href: '/envData/climaticData'}, + {label: '监控数据',href: '/envData/monitorData'}, ] }, { diff --git a/src/router/index.js b/src/router/index.js index bcf7043..39f1c94 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -98,6 +98,76 @@ export const constantRoutes = [ } ] }, + { + path: '/system/base', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'mapMarkers', + component: () => import('@/views/system/base/mapMarkers.vue'), + name: 'mapMarkers', + meta: { title: '基地地图' } + } + ] + }, + { + path: '/system/base', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'baseTable', + component: () => import('@/views/system/base/baseTable.vue'), + name: 'baseTable', + meta: { title: '地块管理' } + } + ] + }, + { + path: '/envData', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'soilData', + component: () => import('@/views/envData/soilData/index.vue'), + name: 'soilData', + meta: { title: '土壤数据' } + } + ] + }, + { + path: '/envData', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'climaticData', + component: () => import('@/views/envData/climaticData/index.vue'), + name: 'climaticData', + meta: { title: '气象数据' } + } + ] + }, + { + path: '/envData', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'monitorData', + component: () => import('@/views/envData/monitorData/index.vue'), + name: 'monitorData', + meta: { title: '监控数据' } + } + ] + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/envData/climaticData/index.vue b/src/views/envData/climaticData/index.vue new file mode 100644 index 0000000..0c081bf --- /dev/null +++ b/src/views/envData/climaticData/index.vue @@ -0,0 +1,213 @@ + + + + + diff --git a/src/views/envData/monitorData/index.vue b/src/views/envData/monitorData/index.vue new file mode 100644 index 0000000..771065b --- /dev/null +++ b/src/views/envData/monitorData/index.vue @@ -0,0 +1,276 @@ + + + + + diff --git a/src/views/envData/soilData/index.vue b/src/views/envData/soilData/index.vue new file mode 100644 index 0000000..fd8d577 --- /dev/null +++ b/src/views/envData/soilData/index.vue @@ -0,0 +1,219 @@ + + + + + diff --git a/src/views/system/base/baseTable.vue b/src/views/system/base/baseTable.vue index be81579..6da4289 100644 --- a/src/views/system/base/baseTable.vue +++ b/src/views/system/base/baseTable.vue @@ -132,6 +132,14 @@ +