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
a20ce5d1
Commit
a20ce5d1
authored
May 08, 2020
by
shiwr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
69f41d0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
22 deletions
+33
-22
templates/event_analysis/alarm_count.html
templates/event_analysis/alarm_count.html
+30
-16
templates/event_analysis/alarm_edit.html
templates/event_analysis/alarm_edit.html
+3
-6
No files found.
templates/event_analysis/alarm_count.html
View file @
a20ce5d1
...
...
@@ -10,7 +10,7 @@
<div
class=
"panel-body"
>
<div
class=
"king-wrapper clearfix"
>
选择用户组:
<el-select
style=
"width:300px;"
clearable
<el-select
style=
"width:300px;
margin-right: 100px
"
clearable
v-model=
"userGroup"
>
<el-option
v-for=
"item in userGroupOp"
:key=
"item.value"
...
...
@@ -18,9 +18,19 @@
:value=
"item.label"
>
</el-option>
</el-select>
查询时间:
<el-date-picker
v-model=
"time"
type=
"daterange"
style=
"width:250px;"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
<el-button
size=
"medium"
id=
"search"
type=
"primary"
@
click=
"searchList()"
style=
"float: right;margin-right:12px"
>
查询
</el-button>
<el-input
v-model=
"keyword"
placeholder=
"请输入关键字搜索"
style=
"width:400px;float:right"
></el-input>
</div>
</div>
<div
style=
"height:100%;min-height: 500px;padding:0 15px;"
>
...
...
@@ -70,16 +80,17 @@
return
{
userGroupOp
:
[
{
label
:
'
网络
'
,
value
:
'
3
'
,
},
label
:
'
网络
'
,
value
:
'
3
'
,
},
],
userGroup
:
''
,
userGroup
:
''
,
keyword
:
""
,
AlarmCountData
:
[],
loading
:
false
,
currentPage
:
1
,
pageSize
:
10
,
time
:
''
}
},
mounted
()
{
...
...
@@ -88,21 +99,24 @@
methods
:
{
getUserGroup
(){
searchList
(){
},
getUserGroup
()
{
axios
.
get
(
'
${SITE_URL}search_user_group/
'
).
then
(
res
=>
{
res
=
res
.
data
;
this
.
systemList
=
res
})
},
handleCurrentChange
(
val
)
{
console
.
log
(
"
当前页
"
+
val
);
if
(
this
.
currentPage
!=
val
)
{
this
.
currentPage
=
val
this
.
getTaskList
(()
=>
{
this
.
handleCurPageChange
()
})
}
},
console
.
log
(
"
当前页
"
+
val
);
if
(
this
.
currentPage
!=
val
)
{
this
.
currentPage
=
val
this
.
getTaskList
(()
=>
{
this
.
handleCurPageChange
()
})
}
},
},
})
...
...
templates/event_analysis/alarm_edit.html
View file @
a20ce5d1
...
...
@@ -412,8 +412,8 @@
methods
:
{
getSubDate
()
{
let
result
=
"
无
"
if
(
this
.
formLine
.
event_happened_time
&&
this
.
formLine
.
user_reporting
_time
)
{
let
dateDiff
=
this
.
formLine
.
user_reporting_time
-
this
.
formLine
.
event_happened
_time
;
//时间差的毫秒数
if
(
this
.
formLine
.
recover_time
&&
this
.
formLine
.
alarm
_time
)
{
let
dateDiff
=
this
.
formLine
.
recover_time
-
this
.
formLine
.
alarm
_time
;
//时间差的毫秒数
let
dayDiff
=
Math
.
floor
(
dateDiff
/
(
24
*
3600
*
1000
));
//计算出相差天数
let
leave1
=
dateDiff
%
(
24
*
3600
*
1000
)
//计算天数后剩余的毫秒数
let
hours
=
Math
.
floor
(
leave1
/
(
3600
*
1000
))
//计算出小时数//计算相差分钟数
...
...
@@ -752,18 +752,15 @@
type
:
'
success
'
,
message
:
res
.
message
});
this
.
dellabelshow
=
false
this
.
getLabel
()
window
.
location
.
href
=
"
${SITE_URL}error_alarm
"
}
else
{
this
.
$message
({
type
:
'
error
'
,
message
:
res
.
message
});
this
.
dellabelshow
=
false
}
})
window
.
history
.
go
(
-
1
)
}
},
}
...
...
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