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