Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IT-monitor
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
张伯涛
IT-monitor
Commits
3a91eaa3
Commit
3a91eaa3
authored
May 23, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
a7928ba4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
9 deletions
+104
-9
gongsi-zhengchang.png
src/assets/image/gongsi-zhengchang.png
+0
-0
liantong-zhengchang.png
src/assets/image/liantong-zhengchang.png
+0
-0
shebei9-zhengchang.png
src/assets/image/shebei9-zhengchang.png
+0
-0
logicalGroup.vue
src/views/IntegratedMonitor/viewExhibition/logicalGroup.vue
+103
-8
warningSetup.vue
src/views/IntegratedMonitor/warning/warningSetup.vue
+1
-1
No files found.
src/assets/image/gongsi-zhengchang.png
0 → 100644
View file @
3a91eaa3
887 Bytes
src/assets/image/liantong-zhengchang.png
0 → 100644
View file @
3a91eaa3
1.78 KB
src/assets/image/shebei9-zhengchang.png
0 → 100644
View file @
3a91eaa3
677 Bytes
src/views/IntegratedMonitor/viewExhibition/logicalGroup.vue
View file @
3a91eaa3
...
...
@@ -14,13 +14,19 @@
:expand-row-keys=
"expand"
:tree-props=
"
{children: 'child'}"
>
<el-table-column
label=
"公司"
prop=
"company"
show-overflow-tooltip
/>
<el-table-column
label=
"公司"
prop=
"company"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<img
v-if=
"scope.row.noIcon !== '1'"
:src=
"scope.row.icon"
class=
"name-icon"
>
<span
v-if=
"scope.row.noIcon === '1' "
class=
"square-green"
/>
<span>
{{
scope
.
row
.
company
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"类型"
prop=
"type"
show-overflow-tooltip
/>
<el-table-column
width=
"300px"
label=
"操作"
>
<!-- <template slot-scope="scope">-->
<el-link
@
click=
"addGroup"
>
添加逻辑组
</el-link>
<el-link
@
click=
"addWarn"
>
添加告警
</el-link>
<
!--
<el-link
@
click=
"addObject"
>
添加对象
</el-link>
--
>
<
el-link
@
click=
"addObject"
>
添加对象
</el-link
>
<el-link
@
click=
"addGroup"
>
编辑
</el-link>
<el-link
@
click=
"deleteRow"
>
移除
</el-link>
<!-- </template>-->
...
...
@@ -138,6 +144,33 @@
<el-button
@
click=
"closeAddDialog"
>
取消
</el-button>
</span>
</el-dialog>
<el-dialog
class=
"addWarnClass"
width=
"50%"
title=
"告警添加"
:visible
.
sync=
"objectDialog"
>
<el-form
v-if=
"stepActive === 1"
ref=
"addForm"
style=
"width: 100%;height: 300px"
label-width=
"auto"
:model=
"addForm"
>
<el-form-item
label=
" "
>
<div
class=
"treebody"
>
<el-tree
:data=
"dataTree"
show-checkbox
node-key=
"id"
:default-expanded-keys=
"[1, 3]"
:default-checked-keys=
"[5]"
:props=
"defaultProps"
>
<
template
slot-scope=
"{ node, data }"
>
<span>
<img
:src=
"data.icon"
class=
"treeIcon"
>
<label>
{{
node
.
label
}}
</label>
</span>
</
template
>
</el-tree>
</div>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"closeObjectDialog"
>
确定
</el-button>
<el-button
@
click=
"closeObjectDialog"
>
取消
</el-button>
</span>
</el-dialog>
</div>
</template>
...
...
@@ -148,6 +181,39 @@ export default {
name
:
'LogicalGroup'
,
data
()
{
return
{
dataTree
:
[{
id
:
1
,
icon
:
require
(
'@/assets/image/shebei.png'
),
label
:
'本机容器'
,
children
:
[{
id
:
11
,
icon
:
require
(
'@/assets/image/shebei9-guzhang.png'
),
label
:
'虚拟化平台'
,
children
:
[{
id
:
111
,
icon
:
require
(
'@/assets/image/shebei2-zhengchang.png'
),
label
:
'三级 1-1-1'
},
{
id
:
112
,
icon
:
require
(
'@/assets/image/shebei2-zhengchang.png'
),
label
:
'三级 1-1-2'
}]
},
{
id
:
12
,
icon
:
require
(
'@/assets/image/shebei9-weixian.png'
),
label
:
'虚拟设备(默认每个设备支持5个监测点)'
,
children
:
[{
id
:
121
,
icon
:
require
(
'@/assets/image/shebei2-guzhang.png'
),
label
:
'三级 1-1-1'
},
{
id
:
122
,
icon
:
require
(
'@/assets/image/shebei2-guzhang.png'
),
label
:
'三级 1-1-2'
}]
}]
}],
defaultProps
:
{
children
:
'children'
,
label
:
'label'
...
...
@@ -210,22 +276,23 @@ export default {
},
stepActive
:
1
,
addWarnDialog
:
false
,
objectDialog
:
false
,
addgroupForm
:
{
groupName
:
''
},
addGroupDialog
:
false
,
dataList
:
[
{
id
:
'1'
,
company
:
'公司'
,
type
:
'公司'
,
{
id
:
'1'
,
icon
:
require
(
'@/assets/image/gongsi-zhengchang.png'
),
company
:
'公司'
,
type
:
'公司'
,
child
:
[
{
id
:
'11'
,
company
:
'中国联通'
,
type
:
'逻辑组'
,
{
id
:
'11'
,
icon
:
require
(
'@/assets/image/liantong-zhengchang.png'
),
company
:
'中国联通'
,
type
:
'逻辑组'
,
child
:
[
{
id
:
'111'
,
company
:
'服务器硬件'
,
type
:
''
,
{
id
:
'111'
,
icon
:
require
(
'@/assets/image/shebei9-zhengchang.png'
),
company
:
'服务器硬件'
,
type
:
''
,
child
:
[
{
id
:
'1111'
,
company
:
'云打印服务器-硬件'
,
type
:
''
}
{
id
:
'1111'
,
icon
:
require
(
'@/assets/image/shebei2-zhengchang.png'
),
company
:
'云打印服务器-硬件'
,
type
:
''
}
]
},
{
id
:
'112'
,
company
:
'云打印服务器-硬件'
,
type
:
''
,
{
id
:
'112'
,
icon
:
require
(
'@/assets/image/shebei2-zhengchang.png'
),
company
:
'云打印服务器-硬件'
,
type
:
''
,
child
:
[
{
id
:
'1121'
,
company
:
'Power Supply -PS 2 Presence-0045'
,
type
:
''
}
{
id
:
'1121'
,
noIcon
:
'1'
,
company
:
'Power Supply -PS 2 Presence-0045'
,
type
:
''
}
]
}
]
}
]
}
...
...
@@ -254,6 +321,12 @@ export default {
nextStep
()
{
if
(
this
.
stepActive
++
>
2
)
this
.
stepActive
=
1
},
closeObjectDialog
()
{
this
.
objectDialog
=
false
},
addObject
()
{
this
.
objectDialog
=
true
},
addWarn
()
{
this
.
stepActive
=
1
this
.
addWarnDialog
=
true
...
...
@@ -264,6 +337,13 @@ export default {
addGroup
()
{
this
.
addGroupDialog
=
true
},
deleteRow
()
{
this
.
$confirm
(
'此操作将删除该数据, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{})
},
handleExpandList
()
{
this
.
expand
.
push
(
this
.
dataList
[
0
].
id
)
},
...
...
@@ -290,6 +370,21 @@ export default {
.strategyRow
{
padding
:
5px
0
;
}
.logicalBody
{
.name-icon
{
width
:
20px
;
height
:
20px
;
position
:
relative
;
top
:
5px
;
}
.square-green
{
background-color
:
#3db58d
;
margin-right
:
6px
;
width
:
9px
;
height
:
9px
;
display
:
inline-block
;
}
}
.logicalHead
{
height
:
58px
;
padding
:
15px
20px
10px
20px
;
...
...
src/views/IntegratedMonitor/warning/warningSetup.vue
View file @
3a91eaa3
...
...
@@ -186,7 +186,7 @@ export default {
{
id
:
12
,
icon
:
require
(
'@/assets/image/shebei9-weixian.png'
),
label
:
'虚拟
化平台
'
,
label
:
'虚拟
设备(默认每个设备支持5个监测点)
'
,
children
:
[{
id
:
121
,
icon
:
require
(
'@/assets/image/shebei2-guzhang.png'
),
...
...
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