From 30520ffafa0b8d0c1ea5a6b94cd68fc4ea9d9f89 Mon Sep 17 00:00:00 2001 From: tingzi <2693633308@qq.com> Date: Tue, 6 May 2025 16:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=98=E7=BA=BF=E5=9B=BEdashboard\big\LineIn?= =?UTF-8?q?dex.vue=20=E6=8A=98=E7=BA=BF=E5=9B=BEdashboard\big\lineChart.vu?= =?UTF-8?q?e=20=E5=90=8E=E7=BB=AD=EF=BC=9AlineChart.vue=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=E6=9A=82=E6=97=B6=E7=94=A8=E7=94=9F=E6=88=90=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=8F=AF=E8=A7=86=E5=8C=96=E5=90=8E=E9=9D=A2=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=94=B9=E6=88=90=E5=90=91=E5=90=8E=E7=AB=AF=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=95=B0=E6=8D=AE=20=E8=BF=99=E9=87=8C=E6=8A=98?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E6=96=B0=E5=8A=A0=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=89=80=E4=BB=A5=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E4=BA=86=E5=89=8D=E7=AB=AF=E8=B7=AF=E7=94=B1=20=E9=A1=BA?= =?UTF-8?q?=E4=BE=BF=E5=AE=8C=E5=96=84=E4=BA=86=E4=B8=80=E4=B8=8Bindex.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 3 + src/router/route.ts | 15 +- src/views/common/dashboard/big/LineIndex.vue | 204 +++++++++++++++++ src/views/common/dashboard/big/index.vue | 18 +- src/views/common/dashboard/big/lineChart.vue | 225 +++++++++++++++++++ 5 files changed, 446 insertions(+), 19 deletions(-) create mode 100644 src/views/common/dashboard/big/LineIndex.vue create mode 100644 src/views/common/dashboard/big/lineChart.vue diff --git a/readme.md b/readme.md index 30820ab..484c49e 100644 --- a/readme.md +++ b/readme.md @@ -125,4 +125,7 @@ src/ │ └── routerView/ #路由视图 ``` 重要的文件 +G:\Projects\VueProject\SamATV\src\views\common src/views/common/dashboard/big/index.vue dashboard仪表盘 + +前端路由:G:\Projects\VueProject\SamATV\src\router\route.ts diff --git a/src/router/route.ts b/src/router/route.ts index 9853d9b..6ff36b3 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -19,7 +19,7 @@ export const dynamicRoutes: Array = [ path: '/home', name: 'home', component: () => import('/@/views/common/dashboard/atv/index.vue'), meta: { - title: 'message.router.home', + title: '首页', isLink: '', isHide: false, isKeepAlive: true, isAffix: true, isIframe: false, roles: ['admin', 'common'], icon: 'fa fa-home', @@ -33,7 +33,16 @@ export const dynamicRoutes: Array = [ path: '/big', name: 'grafana', component: () => import('/@/views/common/dashboard/big/index.vue'), meta: { - title: 'message.router.bigscreen', isIframe: false, isLink: '/big', + title: '数据监测', isIframe: false, isLink: '/big', + isHide: false, isKeepAlive: false, isAffix: false, + roles: ['admin'], icon: 'fa fa-window-restore' + }, + }, + { + path: '/line', name: 'line', + component: () => import('/@/views/common/dashboard/big/LineIndex.vue'), + meta: { + title: '具体传感器', isIframe: false, isLink: '/line', isHide: false, isKeepAlive: false, isAffix: false, roles: ['admin'], icon: 'fa fa-window-restore' }, @@ -42,7 +51,7 @@ export const dynamicRoutes: Array = [ path: '/set_config', name: 'config', component: () => import('/@/views/common/dashboard/config_page/index.vue'), meta: { - title: 'message.router.set_config', isIframe: false, isLink: '/set_config', + title: '配置管理', isIframe: false, isLink: '/set_config', isHide: false, isKeepAlive: false, isAffix: false, roles: ['admin'], icon: 'fa fa-window-restore' }, diff --git a/src/views/common/dashboard/big/LineIndex.vue b/src/views/common/dashboard/big/LineIndex.vue new file mode 100644 index 0000000..2a5c3a5 --- /dev/null +++ b/src/views/common/dashboard/big/LineIndex.vue @@ -0,0 +1,204 @@ + + + + + \ No newline at end of file diff --git a/src/views/common/dashboard/big/index.vue b/src/views/common/dashboard/big/index.vue index bd6a80c..0dee947 100644 --- a/src/views/common/dashboard/big/index.vue +++ b/src/views/common/dashboard/big/index.vue @@ -61,7 +61,6 @@ placeholder="其他选项" @change="handleOtherChange" /> - @@ -72,12 +71,14 @@ :picType="typeValue" />
+ + + \ No newline at end of file