Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
super-hive-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
front-end
super-hive-web
Commits
01ed96ad
Commit
01ed96ad
authored
Aug 07, 2020
by
wends
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 仪表盘
parent
a387c6b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
159 additions
and
81 deletions
+159
-81
index.vue
src/views/data-visible/dashboard/index.vue
+159
-81
No files found.
src/views/data-visible/dashboard/index.vue
View file @
01ed96ad
<
template
>
<
template
>
<el-card
class=
"container"
>
<el-card
class=
"container"
>
<el-tabs
<el-row
:gutter=
"20"
class=
"content"
>
v-model=
"activeModel"
<el-col
:xs=
"8"
:sm=
"8"
:md=
"6"
:lg=
"4"
>
tab-position=
"left"
<div
class=
"left"
>
@
tab-click=
"onTabClick"
<div
class=
"search"
>
<el-select
v-model=
"eModel"
style=
"width: 100%"
>
<el-option
v-for=
"item in eModelList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
>
<el-tab-pane
</el-option>
v-for=
"(model, index) in modelList"
</el-select>
:key=
"index"
</div>
:label=
"model.name"
<div
class=
"custom-menu"
>
:name=
"model.id.toString()"
<el-menu
ref=
"customMenu"
default-active=
"1"
>
>
<div
v-if=
"activeModel === model.id.toString()"
>
<el-menu-item
v-for=
"(model, index) in eInstanceList"
:key=
"'model' + index"
:index=
"model.id.toString()"
>
{{
model
.
name
}}
</el-menu-item>
</el-menu>
</div>
</div>
</el-col>
<el-col
:xs=
"16"
:sm=
"16"
:md=
"18"
:lg=
"20"
>
<el-form
<el-form
:ref=
"'form'+activeModel"
:ref=
"'form'+activeModel"
:model=
"chartField"
:model=
"chartField"
...
@@ -79,9 +96,8 @@
...
@@ -79,9 +96,8 @@
></e-line>
></e-line>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</el-col>
</el-tab-pane>
</el-row>
</el-tabs>
</el-card>
</el-card>
</
template
>
</
template
>
...
@@ -108,6 +124,35 @@ export default {
...
@@ -108,6 +124,35 @@ export default {
count
:
0
,
count
:
0
,
instanceList
:
[],
instanceList
:
[],
propertyList
:
[],
propertyList
:
[],
eModel
:
1
,
eModelList
:
[
{
value
:
1
,
label
:
'
设备模型一
'
},
{
value
:
2
,
label
:
'
设备模型二
'
}
],
eInstanceList
:
[
{
id
:
1
,
name
:
'
设备实例一
'
},
{
id
:
2
,
name
:
'
设备实例二
'
},
{
id
:
3
,
name
:
'
设备实例三
'
},
{
id
:
4
,
name
:
'
设备实例四
'
}
],
chartData
:
[],
chartData
:
[],
chartList
:
[],
chartList
:
[],
rules
:
{
rules
:
{
...
@@ -167,7 +212,7 @@ export default {
...
@@ -167,7 +212,7 @@ export default {
},
},
createCharts
()
{
createCharts
()
{
const
form
=
`form
${
this
.
activeModel
}
`
const
form
=
`form
${
this
.
activeModel
}
`
this
.
$refs
[
form
]
[
0
]
.
validate
()
this
.
$refs
[
form
].
validate
()
.
then
(
_
=>
{
.
then
(
_
=>
{
this
.
chartData
=
[]
this
.
chartData
=
[]
this
.
chartList
=
[]
this
.
chartList
=
[]
...
@@ -208,6 +253,39 @@ export default {
...
@@ -208,6 +253,39 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.container
{
.container
{
min-height
:
calc
(
100vh
-
90px
);
min-height
:
calc
(
100vh
-
95px
);
.content
{
display
:
flex
;
min-height
:
calc
(
100vh
-
135px
);
.left
{
width
:
100%
;
height
:
100%
;
.search
{
height
:
40px
;
}
.custom-menu
{
background-color
:
#efeff1
;
height
:
calc
(
100%
-
40px
);
.el-menu
{
background-color
:
initial
;
border-right
:
none
;
border-top
:
solid
1px
#e6e6e6
;
border-left
:
solid
1px
#e6e6e6
;
.el-menu-item.el-menu-item
{
min-width
:
initial
;
background-color
:
#efeff1
;
}
.el-menu-item.is-active
{
background-color
:
#fff
;
color
:
#303133
;
}
}
}
}
.top
{
display
:
flex
;
justify-content
:
space-between
;
}
}
}
}
</
style
>
</
style
>
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