Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wangtao
3 years ago
Commit
f2cd803eda03d3aebe18ecae97de184c8a474f57
1 parent
76b0368f
通知查询优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
44 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/noticeIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/noticeIndex.js
View file @
f2cd803
...
...
@@ -69,39 +69,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect'
,
even
:
true
,
cols
:
[[
{
title
:
'序号'
,
align
:
"center"
,
type
:
'numbers'
,
width
:
'3%'
}
,
{
field
:
'type'
,
title
:
'通知类型'
,
align
:
'center'
,
sort
:
true
,
width
:
130
,
templet
:
function
(
d
){
if
(
d
.
type
)
{
switch
(
d
.
type
)
{
case
10
:
return
'告警通知'
break
;
case
11
:
return
'告警消除'
break
;
case
13
:
return
'合并通知'
break
;
case
20
:
return
'巡检报表通知'
break
;
case
30
:
return
'系统通知'
break
;
case
40
:
return
'工单通知'
break
;
case
99
:
return
'测试通知'
break
;
default
:
return
'测试通知'
break
;
}
}
else
{
return
'系统通知'
}
}}
,
{
field
:
'typeName'
,
title
:
'通知类型'
,
align
:
'center'
,
sort
:
true
,
width
:
130
}
,
{
field
:
'way'
,
title
:
'通知方式'
,
align
:
'center'
,
sort
:
true
,
width
:
120
,
templet
:
function
(
d
){
switch
(
d
.
way
){
...
...
@@ -563,16 +531,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect'
resType
:
resType
,
isSend
:
$
(
'#notice_search_isSend'
).
val
()
};
var
typeName
=
new
Map
();
typeName
.
set
(
"10"
,
"告警通知"
);
typeName
.
set
(
"11"
,
"告警消除"
);
//2021-10-15 添加合并通知 XuHaoJie
typeName
.
set
(
"13"
,
"合并通知"
);
typeName
.
set
(
"20"
,
"巡检报表通知"
);
typeName
.
set
(
"30"
,
"系统通知"
);
typeName
.
set
(
"40"
,
"工单通知"
);
typeName
.
set
(
"99"
,
"测试通知"
);
typeName
.
set
(
"0"
,
"测试通知"
);
$
.
ajax
({
url
:
`
$
{
common
.
domainName
}
/api-web/
notice
/
groupByType
`
,
method
:
'GET'
,
...
...
@@ -582,7 +541,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common','sessions', 'xmSelect'
var
yData
=
[];
if
(
res
&&
res
.
map
)
{
$
.
each
(
res
.
map
.
typeList
,
function
(
i
,
v
)
{
xData
.
push
(
typeName
.
get
(
v
)
)
xData
.
push
(
v
)
})
yData
=
res
.
map
.
countList
;
}
...
...
Please
register
or
login
to post a comment