Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
event-analysis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔义雄
event-analysis
Commits
414252aa
Commit
414252aa
authored
May 11, 2020
by
Kerwin_Cui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口更新
parent
e01ff4cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
event_analysis/views.py
event_analysis/views.py
+16
-5
templates/event_analysis/error_alarm.html
templates/event_analysis/error_alarm.html
+1
-1
No files found.
event_analysis/views.py
View file @
414252aa
...
...
@@ -2150,15 +2150,26 @@ def search_user_group(request):
group_user_list
=
[]
group_system_list
=
[]
for
i
in
gruop_data
:
newdic
=
{}
newdic
[
'label'
]
=
i
[
u'名称'
]
newdic
[
'value'
]
=
i
[
u'名称'
]
group_list
.
append
(
newdic
)
groupDic
=
{}
groupDic
[
'label'
]
=
i
[
u'名称'
]
groupDic
[
'value'
]
=
i
[
u'名称'
]
group_list
.
append
(
groupDic
)
for
j
in
i
[
'relationshipInstance'
]:
if
j
[
'ralationshipModule'
]
==
u'支持人员'
:
userDic
=
{
'group_name'
:
i
[
u'名称'
],
'group_user'
:
[]}
for
user
in
j
[
'relationshipInstance'
]:
userDic
[
'group_user'
]
.
append
(
user
[
u'名称'
])
group_user_list
.
append
(
userDic
)
elif
j
[
'ralationshipModule'
]
==
u'应用子系统'
:
systemDic
=
{
'group_name'
:
i
[
u'名称'
],
'group_system'
:
[]}
for
system
in
j
[
'relationshipInstance'
]:
systemDic
[
'group_system'
]
.
append
(
system
[
u'名称'
])
group_system_list
.
append
(
systemDic
)
return
render_json
({
"result"
:
True
,
"code"
:
0
,
"message"
:
u"搜索成功"
,
"data"
:
{
'group_list'
:
group_list
}
"data"
:
{
'group_list'
:
group_list
,
'group_user_list'
:
group_user_list
,
'group_system_list'
:
group_system_list
}
})
except
Exception
as
e
:
return
render_json
(
...
...
templates/event_analysis/error_alarm.html
View file @
414252aa
...
...
@@ -58,7 +58,7 @@
<el-col
:span=
"8"
>
<el-form-item
label=
"预警系统:"
label-width=
"100px"
style=
"display:inline-block;width:100%;"
>
<el-select
style=
"min-width:150px;width:80%;"
clearable
<el-select
style=
"min-width:150px;width:80%;"
clearable
filterable
v-model=
"formLine.alarm_system"
>
<el-option
v-for=
"item in systemList"
:key=
"item.value"
...
...
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