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
Plain Diff
Browse Files
Authored by
王涛
2 years ago
Commit
dd1431637752c91b6f025ae15e25fccc7c81da09
2 parents
9a637e1d
a899e6e8
Merge branch 'master-mj-yjpnew' into 'master-mj'
fix:数据库备份统计页面优化同步 See merge request
!1198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/backupCount.js
hg-monitor-web-base/src/main/resources/static/src/controller/backupCount.js
View file @
dd14316
...
...
@@ -10,7 +10,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions', 'layd
//对外暴露的接口
var
accessToken
;
exports
(
'backupCount'
,
function
()
{
var
accessToken
=
common
.
getMjToken
();
accessToken
=
common
.
getMjToken
();
var
period
=
'thisMonth'
;
initTable
();
initStatusTable
()
...
...
@@ -140,17 +140,22 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions', 'layd
$
.
each
(
e
.
backlist
[
j
],
function
(
h
,
n
)
{
if
(
h
!=
"resId"
)
{
if
(
/失败/
.
test
(
n
))
{
tr
+=
'<td
><i class="layui-icon layui-icon-close" style="font-size: 3
0px; color: #ff252c;"></i></td>'
tr
+=
'<td
style="text-align: center"><i class="layui-icon layui-icon-close" style="font-size: 2
0px; color: #ff252c;"></i></td>'
}
else
if
(
/成功/
.
test
(
n
))
{
tr
+=
'<td><
i class="layui-icon layui-icon-ok" style="font-size: 30px; color: #1dff1c;"></i
></td>'
tr
+=
'<td><
p style="text-align: center"><i class="layui-icon layui-icon-ok" style="font-size: 20px; color: #1dff1c;"></i></p><p style="margin-top: 8px;text-align: center">主楼+综改</p
></td>'
}
else
if
(
/备份中/
.
test
(
n
))
{
tr
+=
'<td><span style="color:#ffe40e">'
+
n
+
'</span></td>'
tr
+=
'<td
style="text-align: center"
><span style="color:#ffe40e">'
+
n
+
'</span></td>'
}
else
if
(
/未备份/
.
test
(
n
))
{
tr
+=
'<td><span style="color:magenta">'
+
n
+
'</span></td>'
}
else
if
(
/已失效/
.
test
(
n
))
{
tr
+=
'<td><span style="color:rgba(72,72,72,0.77)">'
+
n
+
'</span></td>'
}
else
{
tr
+=
'<td>'
+
n
+
'</td>'
tr
+=
'<td style="text-align: center"><span style="color:magenta">'
+
n
+
'</span></td>'
}
else
if
(
/历史存放/
.
test
(
n
))
{
tr
+=
'<td><p style="text-align: center"><i class="layui-icon layui-icon-log" style="font-size: 20px; color: #1e9fff;"></i></p><p style="margin-top: 8px;text-align: center">综改</p></td>'
}
else
if
(
/全备/
.
test
(
n
))
{
tr
+=
'<td style="text-align: center"><span style="color:#1DFF1C">'
+
n
+
'</span></td>'
}
else
if
(
/已失效/
.
test
(
n
)){
tr
+=
'<td style="text-align: center"><span style="color:#FF252C">'
+
n
+
'</span></td>'
}
else
{
tr
+=
'<td style="text-align: center">'
+
n
+
'</td>'
}
}
...
...
Please
register
or
login
to post a comment