diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/router/modules/environment.ts b/src/router/modules/environment.ts
new file mode 100644
index 0000000..e635707
--- /dev/null
+++ b/src/router/modules/environment.ts
@@ -0,0 +1,46 @@
+// 环境监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/environment',
+ component: Layout,
+ redirect: '/environment/dataEnvironment',
+ name: 'Environment',
+ meta: {
+ title: '环境监测',
+ icon: 'ep:key',
+ auth: '/environment',
+ },
+ children: [
+ {
+ path: '/dataEnvironment',
+ component: Layout,
+ redirect: '/dataEnvironment/environmentpage',
+ name: 'Denvironment',
+ meta: {
+ title: '环境参数',
+ icon: 'ep:key',
+ auth: '/data/environment',
+ },
+ children: [
+ {
+ path: 'environmentpage',
+ name: 'EnvironmentPage',
+ component: () => import('@/views/data/environment/index.vue'),
+ meta: {
+ title: '环境参数',
+ auth: '/data/environment',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/environment',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/router/modules/environment.ts b/src/router/modules/environment.ts
new file mode 100644
index 0000000..e635707
--- /dev/null
+++ b/src/router/modules/environment.ts
@@ -0,0 +1,46 @@
+// 环境监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/environment',
+ component: Layout,
+ redirect: '/environment/dataEnvironment',
+ name: 'Environment',
+ meta: {
+ title: '环境监测',
+ icon: 'ep:key',
+ auth: '/environment',
+ },
+ children: [
+ {
+ path: '/dataEnvironment',
+ component: Layout,
+ redirect: '/dataEnvironment/environmentpage',
+ name: 'Denvironment',
+ meta: {
+ title: '环境参数',
+ icon: 'ep:key',
+ auth: '/data/environment',
+ },
+ children: [
+ {
+ path: 'environmentpage',
+ name: 'EnvironmentPage',
+ component: () => import('@/views/data/environment/index.vue'),
+ meta: {
+ title: '环境参数',
+ auth: '/data/environment',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/environment',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useElectricity.ts b/src/router/modules/useElectricity.ts
new file mode 100644
index 0000000..a037828
--- /dev/null
+++ b/src/router/modules/useElectricity.ts
@@ -0,0 +1,71 @@
+// 用电检测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/electricity',
+ component: Layout,
+ redirect: '/electricity/electricitylist',
+ name: 'Electricity',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/electricity',
+ },
+ children: [
+ {
+ path: '/electricitylist',
+ component: Layout,
+ redirect: '/electricitylist/electricitypage',
+ name: 'ElectricityList',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/data/electricity',
+ },
+ children: [
+ {
+ path: 'electricitypage',
+ name: 'electricityPage',
+ component: () => import('@/views/data/electricity/index.vue'),
+ meta: {
+ title: '用电监测',
+ auth: '/data/electricity',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ {
+ path: '/datalist',
+ component: Layout,
+ redirect: '/datalist/datapage',
+ name: 'DataList1',
+ meta: {
+ title: '数据管理',
+ icon: 'ep:key',
+ auth: '/electricity/data',
+ },
+ children: [
+ {
+ path: 'datapage',
+ name: 'DataPage1',
+ component: () => import('@/views/data/useHeat/page.vue'),
+ meta: {
+ title: '数据管理',
+ auth: '/electricity/data',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/router/modules/environment.ts b/src/router/modules/environment.ts
new file mode 100644
index 0000000..e635707
--- /dev/null
+++ b/src/router/modules/environment.ts
@@ -0,0 +1,46 @@
+// 环境监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/environment',
+ component: Layout,
+ redirect: '/environment/dataEnvironment',
+ name: 'Environment',
+ meta: {
+ title: '环境监测',
+ icon: 'ep:key',
+ auth: '/environment',
+ },
+ children: [
+ {
+ path: '/dataEnvironment',
+ component: Layout,
+ redirect: '/dataEnvironment/environmentpage',
+ name: 'Denvironment',
+ meta: {
+ title: '环境参数',
+ icon: 'ep:key',
+ auth: '/data/environment',
+ },
+ children: [
+ {
+ path: 'environmentpage',
+ name: 'EnvironmentPage',
+ component: () => import('@/views/data/environment/index.vue'),
+ meta: {
+ title: '环境参数',
+ auth: '/data/environment',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/environment',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useElectricity.ts b/src/router/modules/useElectricity.ts
new file mode 100644
index 0000000..a037828
--- /dev/null
+++ b/src/router/modules/useElectricity.ts
@@ -0,0 +1,71 @@
+// 用电检测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/electricity',
+ component: Layout,
+ redirect: '/electricity/electricitylist',
+ name: 'Electricity',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/electricity',
+ },
+ children: [
+ {
+ path: '/electricitylist',
+ component: Layout,
+ redirect: '/electricitylist/electricitypage',
+ name: 'ElectricityList',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/data/electricity',
+ },
+ children: [
+ {
+ path: 'electricitypage',
+ name: 'electricityPage',
+ component: () => import('@/views/data/electricity/index.vue'),
+ meta: {
+ title: '用电监测',
+ auth: '/data/electricity',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ {
+ path: '/datalist',
+ component: Layout,
+ redirect: '/datalist/datapage',
+ name: 'DataList1',
+ meta: {
+ title: '数据管理',
+ icon: 'ep:key',
+ auth: '/electricity/data',
+ },
+ children: [
+ {
+ path: 'datapage',
+ name: 'DataPage1',
+ component: () => import('@/views/data/useHeat/page.vue'),
+ meta: {
+ title: '数据管理',
+ auth: '/electricity/data',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useGas.ts b/src/router/modules/useGas.ts
new file mode 100644
index 0000000..00c5ba4
--- /dev/null
+++ b/src/router/modules/useGas.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/gas',
+ component: Layout,
+ redirect: '/gas/gaslist',
+ name: 'Gas',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/consumption',
+ },
+ children: [
+ {
+ path: '/gaslist',
+ component: Layout,
+ redirect: '/gaslist/gaspage',
+ name: 'GasList',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/data/consumption',
+ },
+ children: [
+ {
+ path: 'gaspage',
+ name: 'GasPage',
+ component: () => import('@/views/data/consumption/index.vue'),
+ meta: {
+ title: '用气监测',
+ auth: '/data/consumption',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/gas',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/router/modules/environment.ts b/src/router/modules/environment.ts
new file mode 100644
index 0000000..e635707
--- /dev/null
+++ b/src/router/modules/environment.ts
@@ -0,0 +1,46 @@
+// 环境监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/environment',
+ component: Layout,
+ redirect: '/environment/dataEnvironment',
+ name: 'Environment',
+ meta: {
+ title: '环境监测',
+ icon: 'ep:key',
+ auth: '/environment',
+ },
+ children: [
+ {
+ path: '/dataEnvironment',
+ component: Layout,
+ redirect: '/dataEnvironment/environmentpage',
+ name: 'Denvironment',
+ meta: {
+ title: '环境参数',
+ icon: 'ep:key',
+ auth: '/data/environment',
+ },
+ children: [
+ {
+ path: 'environmentpage',
+ name: 'EnvironmentPage',
+ component: () => import('@/views/data/environment/index.vue'),
+ meta: {
+ title: '环境参数',
+ auth: '/data/environment',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/environment',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useElectricity.ts b/src/router/modules/useElectricity.ts
new file mode 100644
index 0000000..a037828
--- /dev/null
+++ b/src/router/modules/useElectricity.ts
@@ -0,0 +1,71 @@
+// 用电检测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/electricity',
+ component: Layout,
+ redirect: '/electricity/electricitylist',
+ name: 'Electricity',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/electricity',
+ },
+ children: [
+ {
+ path: '/electricitylist',
+ component: Layout,
+ redirect: '/electricitylist/electricitypage',
+ name: 'ElectricityList',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/data/electricity',
+ },
+ children: [
+ {
+ path: 'electricitypage',
+ name: 'electricityPage',
+ component: () => import('@/views/data/electricity/index.vue'),
+ meta: {
+ title: '用电监测',
+ auth: '/data/electricity',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ {
+ path: '/datalist',
+ component: Layout,
+ redirect: '/datalist/datapage',
+ name: 'DataList1',
+ meta: {
+ title: '数据管理',
+ icon: 'ep:key',
+ auth: '/electricity/data',
+ },
+ children: [
+ {
+ path: 'datapage',
+ name: 'DataPage1',
+ component: () => import('@/views/data/useHeat/page.vue'),
+ meta: {
+ title: '数据管理',
+ auth: '/electricity/data',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useGas.ts b/src/router/modules/useGas.ts
new file mode 100644
index 0000000..00c5ba4
--- /dev/null
+++ b/src/router/modules/useGas.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/gas',
+ component: Layout,
+ redirect: '/gas/gaslist',
+ name: 'Gas',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/consumption',
+ },
+ children: [
+ {
+ path: '/gaslist',
+ component: Layout,
+ redirect: '/gaslist/gaspage',
+ name: 'GasList',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/data/consumption',
+ },
+ children: [
+ {
+ path: 'gaspage',
+ name: 'GasPage',
+ component: () => import('@/views/data/consumption/index.vue'),
+ meta: {
+ title: '用气监测',
+ auth: '/data/consumption',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/gas',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useHot.ts b/src/router/modules/useHot.ts
new file mode 100644
index 0000000..2966f88
--- /dev/null
+++ b/src/router/modules/useHot.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/hot',
+ component: Layout,
+ redirect: '/hot/hotlist',
+ name: 'Hot',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/hot',
+ },
+ children: [
+ {
+ path: '/hotlist',
+ component: Layout,
+ redirect: '/hotlist/hotpage',
+ name: 'HotList',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/data/hot',
+ },
+ children: [
+ {
+ path: 'hotpage',
+ name: 'HotPage',
+ component: () => import('@/views/data/useHeat/index.vue'),
+ meta: {
+ title: '用热监测',
+ auth: '/data/hot',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/hot',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/router/modules/environment.ts b/src/router/modules/environment.ts
new file mode 100644
index 0000000..e635707
--- /dev/null
+++ b/src/router/modules/environment.ts
@@ -0,0 +1,46 @@
+// 环境监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/environment',
+ component: Layout,
+ redirect: '/environment/dataEnvironment',
+ name: 'Environment',
+ meta: {
+ title: '环境监测',
+ icon: 'ep:key',
+ auth: '/environment',
+ },
+ children: [
+ {
+ path: '/dataEnvironment',
+ component: Layout,
+ redirect: '/dataEnvironment/environmentpage',
+ name: 'Denvironment',
+ meta: {
+ title: '环境参数',
+ icon: 'ep:key',
+ auth: '/data/environment',
+ },
+ children: [
+ {
+ path: 'environmentpage',
+ name: 'EnvironmentPage',
+ component: () => import('@/views/data/environment/index.vue'),
+ meta: {
+ title: '环境参数',
+ auth: '/data/environment',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/environment',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useElectricity.ts b/src/router/modules/useElectricity.ts
new file mode 100644
index 0000000..a037828
--- /dev/null
+++ b/src/router/modules/useElectricity.ts
@@ -0,0 +1,71 @@
+// 用电检测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/electricity',
+ component: Layout,
+ redirect: '/electricity/electricitylist',
+ name: 'Electricity',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/electricity',
+ },
+ children: [
+ {
+ path: '/electricitylist',
+ component: Layout,
+ redirect: '/electricitylist/electricitypage',
+ name: 'ElectricityList',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/data/electricity',
+ },
+ children: [
+ {
+ path: 'electricitypage',
+ name: 'electricityPage',
+ component: () => import('@/views/data/electricity/index.vue'),
+ meta: {
+ title: '用电监测',
+ auth: '/data/electricity',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ {
+ path: '/datalist',
+ component: Layout,
+ redirect: '/datalist/datapage',
+ name: 'DataList1',
+ meta: {
+ title: '数据管理',
+ icon: 'ep:key',
+ auth: '/electricity/data',
+ },
+ children: [
+ {
+ path: 'datapage',
+ name: 'DataPage1',
+ component: () => import('@/views/data/useHeat/page.vue'),
+ meta: {
+ title: '数据管理',
+ auth: '/electricity/data',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useGas.ts b/src/router/modules/useGas.ts
new file mode 100644
index 0000000..00c5ba4
--- /dev/null
+++ b/src/router/modules/useGas.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/gas',
+ component: Layout,
+ redirect: '/gas/gaslist',
+ name: 'Gas',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/consumption',
+ },
+ children: [
+ {
+ path: '/gaslist',
+ component: Layout,
+ redirect: '/gaslist/gaspage',
+ name: 'GasList',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/data/consumption',
+ },
+ children: [
+ {
+ path: 'gaspage',
+ name: 'GasPage',
+ component: () => import('@/views/data/consumption/index.vue'),
+ meta: {
+ title: '用气监测',
+ auth: '/data/consumption',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/gas',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useHot.ts b/src/router/modules/useHot.ts
new file mode 100644
index 0000000..2966f88
--- /dev/null
+++ b/src/router/modules/useHot.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/hot',
+ component: Layout,
+ redirect: '/hot/hotlist',
+ name: 'Hot',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/hot',
+ },
+ children: [
+ {
+ path: '/hotlist',
+ component: Layout,
+ redirect: '/hotlist/hotpage',
+ name: 'HotList',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/data/hot',
+ },
+ children: [
+ {
+ path: 'hotpage',
+ name: 'HotPage',
+ component: () => import('@/views/data/useHeat/index.vue'),
+ meta: {
+ title: '用热监测',
+ auth: '/data/hot',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/hot',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/routes.ts b/src/router/routes.ts
index 6f295be..7f746e8 100644
--- a/src/router/routes.ts
+++ b/src/router/routes.ts
@@ -8,6 +8,10 @@
import evaluateRoute from './modules/carbonEvaluate'
import warningRoute from './modules/carbonWarning'
import dashboard from './modules/dashboard'
+import electricityRouter from './modules/useElectricity'
+import hotRouter from './modules/useHot'
+import gasRouter from './modules/useGas'
+import environment from './modules/environment'
// import electricityRoute from './modules/electricity'
import countRoute from './modules/carbonCount'
import type { Route } from '@/global'
@@ -134,6 +138,46 @@
},
{
meta: {
+ title: '用电监测',
+ icon: '',
+ auth: '/electricity',
+ },
+ children: [
+ ...electricityRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '用热监测',
+ icon: '',
+ auth: '/hot',
+ },
+ children: [
+ ...hotRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '用气监测',
+ icon: '',
+ auth: '/consumption',
+ },
+ children: [
+ ...gasRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '环境监测',
+ icon: '',
+ auth: '/environment',
+ },
+ children: [
+ ...environment,
+ ],
+ },
+ {
+ meta: {
title: '数据管理',
icon: '',
auth: '/dataset',
@@ -144,6 +188,16 @@
},
{
meta: {
+ title: '电力碳核算',
+ icon: '',
+ auth: '/count',
+ },
+ children: [
+ ...countRoute,
+ ],
+ },
+ {
+ meta: {
title: '碳足迹监测',
icon: '',
auth: '/footprint',
@@ -182,16 +236,6 @@
// ...decisionRoute,
// ],
// },
- {
- meta: {
- title: '碳足迹计算',
- icon: '',
- auth: '/count',
- },
- children: [
- ...countRoute,
- ],
- },
// {
// meta: {
// title: '电网管理',
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/router/modules/environment.ts b/src/router/modules/environment.ts
new file mode 100644
index 0000000..e635707
--- /dev/null
+++ b/src/router/modules/environment.ts
@@ -0,0 +1,46 @@
+// 环境监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/environment',
+ component: Layout,
+ redirect: '/environment/dataEnvironment',
+ name: 'Environment',
+ meta: {
+ title: '环境监测',
+ icon: 'ep:key',
+ auth: '/environment',
+ },
+ children: [
+ {
+ path: '/dataEnvironment',
+ component: Layout,
+ redirect: '/dataEnvironment/environmentpage',
+ name: 'Denvironment',
+ meta: {
+ title: '环境参数',
+ icon: 'ep:key',
+ auth: '/data/environment',
+ },
+ children: [
+ {
+ path: 'environmentpage',
+ name: 'EnvironmentPage',
+ component: () => import('@/views/data/environment/index.vue'),
+ meta: {
+ title: '环境参数',
+ auth: '/data/environment',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/environment',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useElectricity.ts b/src/router/modules/useElectricity.ts
new file mode 100644
index 0000000..a037828
--- /dev/null
+++ b/src/router/modules/useElectricity.ts
@@ -0,0 +1,71 @@
+// 用电检测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/electricity',
+ component: Layout,
+ redirect: '/electricity/electricitylist',
+ name: 'Electricity',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/electricity',
+ },
+ children: [
+ {
+ path: '/electricitylist',
+ component: Layout,
+ redirect: '/electricitylist/electricitypage',
+ name: 'ElectricityList',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/data/electricity',
+ },
+ children: [
+ {
+ path: 'electricitypage',
+ name: 'electricityPage',
+ component: () => import('@/views/data/electricity/index.vue'),
+ meta: {
+ title: '用电监测',
+ auth: '/data/electricity',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ {
+ path: '/datalist',
+ component: Layout,
+ redirect: '/datalist/datapage',
+ name: 'DataList1',
+ meta: {
+ title: '数据管理',
+ icon: 'ep:key',
+ auth: '/electricity/data',
+ },
+ children: [
+ {
+ path: 'datapage',
+ name: 'DataPage1',
+ component: () => import('@/views/data/useHeat/page.vue'),
+ meta: {
+ title: '数据管理',
+ auth: '/electricity/data',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useGas.ts b/src/router/modules/useGas.ts
new file mode 100644
index 0000000..00c5ba4
--- /dev/null
+++ b/src/router/modules/useGas.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/gas',
+ component: Layout,
+ redirect: '/gas/gaslist',
+ name: 'Gas',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/consumption',
+ },
+ children: [
+ {
+ path: '/gaslist',
+ component: Layout,
+ redirect: '/gaslist/gaspage',
+ name: 'GasList',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/data/consumption',
+ },
+ children: [
+ {
+ path: 'gaspage',
+ name: 'GasPage',
+ component: () => import('@/views/data/consumption/index.vue'),
+ meta: {
+ title: '用气监测',
+ auth: '/data/consumption',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/gas',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useHot.ts b/src/router/modules/useHot.ts
new file mode 100644
index 0000000..2966f88
--- /dev/null
+++ b/src/router/modules/useHot.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/hot',
+ component: Layout,
+ redirect: '/hot/hotlist',
+ name: 'Hot',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/hot',
+ },
+ children: [
+ {
+ path: '/hotlist',
+ component: Layout,
+ redirect: '/hotlist/hotpage',
+ name: 'HotList',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/data/hot',
+ },
+ children: [
+ {
+ path: 'hotpage',
+ name: 'HotPage',
+ component: () => import('@/views/data/useHeat/index.vue'),
+ meta: {
+ title: '用热监测',
+ auth: '/data/hot',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/hot',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/routes.ts b/src/router/routes.ts
index 6f295be..7f746e8 100644
--- a/src/router/routes.ts
+++ b/src/router/routes.ts
@@ -8,6 +8,10 @@
import evaluateRoute from './modules/carbonEvaluate'
import warningRoute from './modules/carbonWarning'
import dashboard from './modules/dashboard'
+import electricityRouter from './modules/useElectricity'
+import hotRouter from './modules/useHot'
+import gasRouter from './modules/useGas'
+import environment from './modules/environment'
// import electricityRoute from './modules/electricity'
import countRoute from './modules/carbonCount'
import type { Route } from '@/global'
@@ -134,6 +138,46 @@
},
{
meta: {
+ title: '用电监测',
+ icon: '',
+ auth: '/electricity',
+ },
+ children: [
+ ...electricityRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '用热监测',
+ icon: '',
+ auth: '/hot',
+ },
+ children: [
+ ...hotRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '用气监测',
+ icon: '',
+ auth: '/consumption',
+ },
+ children: [
+ ...gasRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '环境监测',
+ icon: '',
+ auth: '/environment',
+ },
+ children: [
+ ...environment,
+ ],
+ },
+ {
+ meta: {
title: '数据管理',
icon: '',
auth: '/dataset',
@@ -144,6 +188,16 @@
},
{
meta: {
+ title: '电力碳核算',
+ icon: '',
+ auth: '/count',
+ },
+ children: [
+ ...countRoute,
+ ],
+ },
+ {
+ meta: {
title: '碳足迹监测',
icon: '',
auth: '/footprint',
@@ -182,16 +236,6 @@
// ...decisionRoute,
// ],
// },
- {
- meta: {
- title: '碳足迹计算',
- icon: '',
- auth: '/count',
- },
- children: [
- ...countRoute,
- ],
- },
// {
// meta: {
// title: '电网管理',
diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue
index b505e10..0583b16 100644
--- a/src/views/data/electricity/index.vue
+++ b/src/views/data/electricity/index.vue
@@ -14,10 +14,10 @@
id: '0',
title: '分布式光伏',
},
- {
- id: '1',
- title: '设备监测数据',
- },
+ // {
+ // id: '1',
+ // title: '设备监测数据',
+ // },
])
const select = ref('')
const confirm = (selectp: string) => {
@@ -37,7 +37,7 @@
-
+
diff --git a/src/assets/icons/icon-electricity.svg b/src/assets/icons/icon-electricity.svg
new file mode 100644
index 0000000..acb43cc
--- /dev/null
+++ b/src/assets/icons/icon-electricity.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-environment.svg b/src/assets/icons/icon-environment.svg
new file mode 100644
index 0000000..28d62af
--- /dev/null
+++ b/src/assets/icons/icon-environment.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-gas.svg b/src/assets/icons/icon-gas.svg
new file mode 100644
index 0000000..3b3a836
--- /dev/null
+++ b/src/assets/icons/icon-gas.svg
@@ -0,0 +1 @@
+
diff --git a/src/assets/icons/icon-hot.svg b/src/assets/icons/icon-hot.svg
new file mode 100644
index 0000000..f01bafc
--- /dev/null
+++ b/src/assets/icons/icon-hot.svg
@@ -0,0 +1 @@
+
diff --git a/src/router/modules/data.ts b/src/router/modules/data.ts
index b7ce1e6..f41260a 100644
--- a/src/router/modules/data.ts
+++ b/src/router/modules/data.ts
@@ -6,7 +6,7 @@
{
path: '/dataset',
component: Layout,
- redirect: '/dataCollect',
+ redirect: '/dataDevice',
name: 'Dataset',
meta: {
title: '数据管理',
@@ -15,131 +15,6 @@
},
children: [
{
- path: '/dataCollect',
- component: Layout,
- redirect: '/dataCollect/collect',
- name: 'Dcollect',
- meta: {
- title: '采集数据',
- icon: 'ep:key',
- auth: '/data/collect',
- },
- children: [
- {
- path: 'collect',
- name: 'Collect',
- component: () => import('@/views/data/collect/index.vue'),
- meta: {
- title: '采集数据',
- auth: '/data/collect',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataCollect',
- },
- },
- ],
- },
- {
- path: '/dataElectricity',
- component: Layout,
- redirect: '/dataElectricity/electricity',
- name: 'DElectricity',
- meta: {
- title: '用电监测',
- icon: 'ep:key',
- auth: '/data/electricity',
- },
- children: [
- {
- path: 'electricity',
- name: 'Electricity',
- component: () => import('@/views/data/electricity/index.vue'),
- meta: {
- title: '用电监测',
- auth: '/data/electricity',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataElectricity',
- },
- },
- ],
- },
- {
- path: '/dataHot',
- component: Layout,
- redirect: '/dataHot/hot',
- name: 'Dhot',
- meta: {
- title: '用热监测',
- icon: 'ep:key',
- auth: '/data/hot',
- },
- children: [
- {
- path: 'hot',
- name: 'Hot',
- component: () => import('@/views/data/useHeat/index.vue'),
- meta: {
- title: '用热监测',
- auth: '/data/hot',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataHot',
- },
- },
- ],
- },
- {
- path: '/dataConsumption',
- component: Layout,
- redirect: '/dataConsumption/consumption',
- name: 'Dconsumption',
- meta: {
- title: '用气监测',
- icon: 'ep:key',
- auth: '/data/consumption',
- },
- children: [
- {
- path: 'consumption',
- name: 'Consumption',
- component: () => import('@/views/data/consumption/index.vue'),
- meta: {
- title: '用气监测',
- auth: '/data/consumption',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataConsumption',
- },
- },
- ],
- },
- {
- path: '/dataEnvironment',
- component: Layout,
- redirect: '/dataEnvironment/environment',
- name: 'Denvironment',
- meta: {
- title: '环境参数',
- icon: 'ep:key',
- auth: '/data/environment',
- },
- children: [
- {
- path: 'environment',
- name: 'Environment',
- component: () => import('@/views/data/environment/index.vue'),
- meta: {
- title: '环境参数',
- auth: '/data/environment',
- sidebar: false,
- breadcrumb: true,
- activeMenu: '/dataEnvironment',
- },
- },
- ],
- },
- {
path: '/dataDevice',
component: Layout,
redirect: '/dataDevice/device',
@@ -165,6 +40,131 @@
],
},
{
+ path: '/dataCollect',
+ component: Layout,
+ redirect: '/dataCollect/collect',
+ name: 'Dcollect',
+ meta: {
+ title: '采集数据',
+ icon: 'ep:key',
+ auth: '/data/collect',
+ },
+ children: [
+ {
+ path: 'collect',
+ name: 'Collect',
+ component: () => import('@/views/data/collect/index.vue'),
+ meta: {
+ title: '采集数据',
+ auth: '/data/collect',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/dataCollect',
+ },
+ },
+ ],
+ },
+ // {
+ // path: '/dataElectricity',
+ // component: Layout,
+ // redirect: '/dataElectricity/electricity',
+ // name: 'DElectricity',
+ // meta: {
+ // title: '用电监测',
+ // icon: 'ep:key',
+ // auth: '/data/electricity',
+ // },
+ // children: [
+ // {
+ // path: 'electricity',
+ // name: 'Electricity',
+ // component: () => import('@/views/data/electricity/index.vue'),
+ // meta: {
+ // title: '用电监测',
+ // auth: '/data/electricity',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataElectricity',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataHot',
+ // component: Layout,
+ // redirect: '/dataHot/hot',
+ // name: 'Dhot',
+ // meta: {
+ // title: '用热监测',
+ // icon: 'ep:key',
+ // auth: '/data/hot',
+ // },
+ // children: [
+ // {
+ // path: 'hot',
+ // name: 'Hot',
+ // component: () => import('@/views/data/useHeat/index.vue'),
+ // meta: {
+ // title: '用热监测',
+ // auth: '/data/hot',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataHot',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataConsumption',
+ // component: Layout,
+ // redirect: '/dataConsumption/consumption',
+ // name: 'Dconsumption',
+ // meta: {
+ // title: '用气监测',
+ // icon: 'ep:key',
+ // auth: '/data/consumption',
+ // },
+ // children: [
+ // {
+ // path: 'consumption',
+ // name: 'Consumption',
+ // component: () => import('@/views/data/consumption/index.vue'),
+ // meta: {
+ // title: '用气监测',
+ // auth: '/data/consumption',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataConsumption',
+ // },
+ // },
+ // ],
+ // },
+ // {
+ // path: '/dataEnvironment',
+ // component: Layout,
+ // redirect: '/dataEnvironment/environment',
+ // name: 'Denvironment',
+ // meta: {
+ // title: '环境参数',
+ // icon: 'ep:key',
+ // auth: '/data/environment',
+ // },
+ // children: [
+ // {
+ // path: 'environment',
+ // name: 'Environment',
+ // component: () => import('@/views/data/environment/index.vue'),
+ // meta: {
+ // title: '环境参数',
+ // auth: '/data/environment',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/dataEnvironment',
+ // },
+ // },
+ // ],
+ // },
+ {
path: '/dataDetail',
component: Layout,
redirect: '/dataDetail/detail',
diff --git a/src/router/modules/environment.ts b/src/router/modules/environment.ts
new file mode 100644
index 0000000..e635707
--- /dev/null
+++ b/src/router/modules/environment.ts
@@ -0,0 +1,46 @@
+// 环境监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/environment',
+ component: Layout,
+ redirect: '/environment/dataEnvironment',
+ name: 'Environment',
+ meta: {
+ title: '环境监测',
+ icon: 'ep:key',
+ auth: '/environment',
+ },
+ children: [
+ {
+ path: '/dataEnvironment',
+ component: Layout,
+ redirect: '/dataEnvironment/environmentpage',
+ name: 'Denvironment',
+ meta: {
+ title: '环境参数',
+ icon: 'ep:key',
+ auth: '/data/environment',
+ },
+ children: [
+ {
+ path: 'environmentpage',
+ name: 'EnvironmentPage',
+ component: () => import('@/views/data/environment/index.vue'),
+ meta: {
+ title: '环境参数',
+ auth: '/data/environment',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/environment',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useElectricity.ts b/src/router/modules/useElectricity.ts
new file mode 100644
index 0000000..a037828
--- /dev/null
+++ b/src/router/modules/useElectricity.ts
@@ -0,0 +1,71 @@
+// 用电检测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/electricity',
+ component: Layout,
+ redirect: '/electricity/electricitylist',
+ name: 'Electricity',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/electricity',
+ },
+ children: [
+ {
+ path: '/electricitylist',
+ component: Layout,
+ redirect: '/electricitylist/electricitypage',
+ name: 'ElectricityList',
+ meta: {
+ title: '用电监测',
+ icon: 'ep:key',
+ auth: '/data/electricity',
+ },
+ children: [
+ {
+ path: 'electricitypage',
+ name: 'electricityPage',
+ component: () => import('@/views/data/electricity/index.vue'),
+ meta: {
+ title: '用电监测',
+ auth: '/data/electricity',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ {
+ path: '/datalist',
+ component: Layout,
+ redirect: '/datalist/datapage',
+ name: 'DataList1',
+ meta: {
+ title: '数据管理',
+ icon: 'ep:key',
+ auth: '/electricity/data',
+ },
+ children: [
+ {
+ path: 'datapage',
+ name: 'DataPage1',
+ component: () => import('@/views/data/useHeat/page.vue'),
+ meta: {
+ title: '数据管理',
+ auth: '/electricity/data',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/electricity',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useGas.ts b/src/router/modules/useGas.ts
new file mode 100644
index 0000000..00c5ba4
--- /dev/null
+++ b/src/router/modules/useGas.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/gas',
+ component: Layout,
+ redirect: '/gas/gaslist',
+ name: 'Gas',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/consumption',
+ },
+ children: [
+ {
+ path: '/gaslist',
+ component: Layout,
+ redirect: '/gaslist/gaspage',
+ name: 'GasList',
+ meta: {
+ title: '用气监测',
+ icon: 'ep:key',
+ auth: '/data/consumption',
+ },
+ children: [
+ {
+ path: 'gaspage',
+ name: 'GasPage',
+ component: () => import('@/views/data/consumption/index.vue'),
+ meta: {
+ title: '用气监测',
+ auth: '/data/consumption',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/gas',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/modules/useHot.ts b/src/router/modules/useHot.ts
new file mode 100644
index 0000000..2966f88
--- /dev/null
+++ b/src/router/modules/useHot.ts
@@ -0,0 +1,46 @@
+// 用热监测
+import type { Route } from '@/global'
+
+const Layout = () => import('@/layouts/index.vue')
+const routes: Route.recordRaw[] = [
+ {
+ path: '/hot',
+ component: Layout,
+ redirect: '/hot/hotlist',
+ name: 'Hot',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/hot',
+ },
+ children: [
+ {
+ path: '/hotlist',
+ component: Layout,
+ redirect: '/hotlist/hotpage',
+ name: 'HotList',
+ meta: {
+ title: '用热监测',
+ icon: 'ep:key',
+ auth: '/data/hot',
+ },
+ children: [
+ {
+ path: 'hotpage',
+ name: 'HotPage',
+ component: () => import('@/views/data/useHeat/index.vue'),
+ meta: {
+ title: '用热监测',
+ auth: '/data/hot',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/hot',
+ },
+ },
+ ],
+ },
+ ],
+ },
+]
+
+export default routes
diff --git a/src/router/routes.ts b/src/router/routes.ts
index 6f295be..7f746e8 100644
--- a/src/router/routes.ts
+++ b/src/router/routes.ts
@@ -8,6 +8,10 @@
import evaluateRoute from './modules/carbonEvaluate'
import warningRoute from './modules/carbonWarning'
import dashboard from './modules/dashboard'
+import electricityRouter from './modules/useElectricity'
+import hotRouter from './modules/useHot'
+import gasRouter from './modules/useGas'
+import environment from './modules/environment'
// import electricityRoute from './modules/electricity'
import countRoute from './modules/carbonCount'
import type { Route } from '@/global'
@@ -134,6 +138,46 @@
},
{
meta: {
+ title: '用电监测',
+ icon: '',
+ auth: '/electricity',
+ },
+ children: [
+ ...electricityRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '用热监测',
+ icon: '',
+ auth: '/hot',
+ },
+ children: [
+ ...hotRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '用气监测',
+ icon: '',
+ auth: '/consumption',
+ },
+ children: [
+ ...gasRouter,
+ ],
+ },
+ {
+ meta: {
+ title: '环境监测',
+ icon: '',
+ auth: '/environment',
+ },
+ children: [
+ ...environment,
+ ],
+ },
+ {
+ meta: {
title: '数据管理',
icon: '',
auth: '/dataset',
@@ -144,6 +188,16 @@
},
{
meta: {
+ title: '电力碳核算',
+ icon: '',
+ auth: '/count',
+ },
+ children: [
+ ...countRoute,
+ ],
+ },
+ {
+ meta: {
title: '碳足迹监测',
icon: '',
auth: '/footprint',
@@ -182,16 +236,6 @@
// ...decisionRoute,
// ],
// },
- {
- meta: {
- title: '碳足迹计算',
- icon: '',
- auth: '/count',
- },
- children: [
- ...countRoute,
- ],
- },
// {
// meta: {
// title: '电网管理',
diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue
index b505e10..0583b16 100644
--- a/src/views/data/electricity/index.vue
+++ b/src/views/data/electricity/index.vue
@@ -14,10 +14,10 @@
id: '0',
title: '分布式光伏',
},
- {
- id: '1',
- title: '设备监测数据',
- },
+ // {
+ // id: '1',
+ // title: '设备监测数据',
+ // },
])
const select = ref('')
const confirm = (selectp: string) => {
@@ -37,7 +37,7 @@
-
+
diff --git a/src/views/data/useHeat/page.vue b/src/views/data/useHeat/page.vue
index 2ad63d0..34029a4 100644
--- a/src/views/data/useHeat/page.vue
+++ b/src/views/data/useHeat/page.vue
@@ -11,7 +11,7 @@
// 根据type发送不同请求
type: {
type: String,
- required: true,
+ default: '0',
},
})