Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中通客车项目
zhongtong-avi-web
Commits
8902b668
Commit
8902b668
authored
Sep 27, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(整体AVI视图): 静态开发
parent
29a0ae9d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
991 additions
and
2 deletions
+991
-2
monitor_car.png
src/assets/images/Monitor/monitor_car.png
+0
-0
monitor_index_bg.png
src/assets/images/Monitor/monitor_index_bg.png
+0
-0
route.js
src/lang/zh/route.js
+4
-1
index.js
src/router/index.js
+3
-0
monitor.js
src/router/modules/monitor.js
+17
-0
SidebarItem.vue
src/views/Layout/components/SidebarItem.vue
+9
-1
index.vue
src/views/Monitor/index.vue
+958
-0
No files found.
src/assets/images/Monitor/monitor_car.png
0 → 100644
View file @
8902b668
1.33 KB
src/assets/images/Monitor/monitor_index_bg.png
0 → 100644
View file @
8902b668
365 KB
src/lang/zh/route.js
View file @
8902b668
...
...
@@ -24,5 +24,8 @@ export default {
Basic
:
'基础数据'
,
WorkshopBasic
:
'车间基础数据'
,
DeviceBasic
:
'设备基础数据'
,
LaneBasic
:
'车道基础数据'
LaneBasic
:
'车道基础数据'
,
// AVI大屏
Monitor
:
'AVI大屏'
,
MonitorIndex
:
'AVI大屏'
}
src/router/index.js
View file @
8902b668
...
...
@@ -19,6 +19,8 @@ import workshopRouter from './modules/workshop'
import
deviceRunningTimeRouter
from
'./modules/deviceRunning'
// 基础数据
import
basicRouter
from
'./modules/basic'
// AVI大屏
import
monitorRouter
from
'./modules/monitor'
// 系统管理
import
systemRouter
from
'./modules/system'
...
...
@@ -48,6 +50,7 @@ export const asyncRouterMap = [
workshopRouter
,
deviceRunningTimeRouter
,
basicRouter
,
monitorRouter
,
systemRouter
,
{
path
:
'*'
,
...
...
src/router/modules/monitor.js
0 → 100644
View file @
8902b668
/**
* 大屏监控
*/
export
default
{
path
:
'/monitor'
,
component
:
()
=>
import
(
'@/views/Layout/lsd'
),
redirect
:
'/monitor/index'
,
meta
:
{
title
:
'Monitor'
,
icon
:
'kanban'
,
openNewWindow
:
true
},
children
:
[
{
path
:
'monitorIndex'
,
component
:
()
=>
import
(
'@/views/Monitor/index'
),
name
:
'MonitorIndex'
,
meta
:
{
title
:
'MonitorIndex'
,
icon
:
'kanban'
}
}
]
}
src/views/Layout/components/SidebarItem.vue
View file @
8902b668
...
...
@@ -2,7 +2,7 @@
<div
v-if=
"!item.hidden && item.children"
class=
"sidebar-item-pack"
>
<!-- 显示一层菜单 -->
<template
v-if=
"hasOneShowingChild(item.children, item) && (!onlyOneChild.children || onlyOneChild.noShowingChildren) && !item.alwaysShow && checkCurrentRouteAuthority(item.children, item)"
>
<router-link
:to=
"resolvePath(onlyOneChild.path)"
>
<router-link
tag=
"a"
:target=
"openNewWindowToggle(item)"
:to=
"resolvePath(onlyOneChild.path)"
>
<el-menu-item
:index=
"resolvePath(onlyOneChild.path)"
>
<svg-icon
:icon-class=
"onlyOneChild.meta.icon !== undefined ? onlyOneChild.meta.icon : 'list'"
/>
<span
slot=
"title"
>
{{
generateTitle
(
onlyOneChild
.
meta
.
title
)
}}
</span>
...
...
@@ -110,6 +110,14 @@
isExternalLink
(
routePath
)
{
return
validateURL
(
routePath
)
},
// 判断是否打开新的标签页
openNewWindowToggle
(
routeItem
)
{
if
(
routeItem
.
meta
.
hasOwnProperty
(
'openNewWindow'
)
&&
routeItem
.
meta
.
openNewWindow
)
{
return
'_blank'
}
else
{
return
'_self'
}
},
generateTitle
}
}
...
...
src/views/Monitor/index.vue
0 → 100644
View file @
8902b668
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment