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
袁晋鹏
about a year ago
Commit
c576a39c26240c71205afdef29c4cca333707858
1 parent
6cf2390a
fix: 数据库备份展示行间距和宽度展示优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/backupmain.js
hg-monitor-web-base/src/main/resources/static/src/views/backup/main.html
hg-monitor-web-base/src/main/resources/static/src/controller/backupmain.js
View file @
c576a39
...
...
@@ -161,7 +161,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
'<td></td>'
+
'<td></td>'
+
'<td></td>'
+
'<td></td>'
+
'<td></td>'
+
'<td></td>'
+
'</tr>'
...
...
@@ -238,7 +238,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
'<td>'
+
useTime
+
'</td>'
+
'<td>'
+
startTime
+
'</td>'
+
'<td>'
+
endTime
+
'</td>'
+
'<td>'
+
remark
+
'</td>'
+
'<td>'
+
lastTime
+
'</td>'
+
'<td><input type="button" value="编辑" class="edit layui-button layui-btn-sm layui-btn-normal" style="color: #ffffff;border-radius:4px"/></td>'
+
'</tr>'
...
...
@@ -255,9 +255,9 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
'<td>'
+
useTime
+
'</td>'
+
'<td>'
+
startTime
+
'</td>'
+
'<td>'
+
endTime
+
'</td>'
+
'<td>'
+
remark
+
'</td>'
+
'<td>'
+
lastTime
+
'</td>'
+
'<td style="display:
grid
"><input type="button" value="编辑" class="edit layui-button layui-btn-sm layui-btn-normal" style="color: #ffffff;border-radius:4px"/><input type="button" class="import layui-button layui-btn-sm layui-btn-normal" value="引用上次" style="background-color: #c0c4cc;margin-top: 5px;border-radius:4px"/></td>'
+
'<td style="display:
table-caption
"><input type="button" value="编辑" class="edit layui-button layui-btn-sm layui-btn-normal" style="color: #ffffff;border-radius:4px"/><input type="button" class="import layui-button layui-btn-sm layui-btn-normal" value="引用上次" style="background-color: #c0c4cc;margin-top: 5px;border-radius:4px"/></td>'
+
'</tr>'
}
});
...
...
@@ -320,8 +320,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
'backSpeed'
:
tdArr
[
8
],
'useTime'
:
tdArr
[
9
],
'startTime'
:
tdArr
[
10
],
'endTime'
:
tdArr
[
11
],
'remark'
:
tdArr
[
12
]
'endTime'
:
tdArr
[
11
]
};
if
(
param
.
resName
==
''
)
{
layer
.
msg
(
'数据库名称不能为空!'
,
{
icon
:
1
});
...
...
@@ -387,7 +386,6 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
tdlist
[
9
].
innerHTML
=
'<input class="text" type="text" value="'
+
obj
.
useTime
+
'"/>'
;
tdlist
[
10
].
innerHTML
=
'<input class="text" type="text" value="'
+
dateForm
(
obj
.
startTime
)
+
'"/>'
;
tdlist
[
11
].
innerHTML
=
'<input class="text" type="text" value="'
+
dateForm
(
obj
.
endTime
)
+
'"/>'
;
tdlist
[
12
].
innerHTML
=
'<input class="text" type="text" value="'
+
obj
.
remark
+
'"/>'
;
// tdlist[13].innerHTML = '<input class="text" type="text" value="' + dateForm(obj.lastTime) + '"/>';
}
else
{
$
.
each
(
tdlist
,
function
(
i
,
e
)
{
...
...
@@ -419,8 +417,8 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
'backSpeed'
:
tdArr
[
8
],
'useTime'
:
tdArr
[
9
],
'startTime'
:
tdArr
[
10
],
'endTime'
:
tdArr
[
11
],
'remark'
:
tdArr
[
12
]
'endTime'
:
tdArr
[
11
]
};
if
(
param
.
resName
==
''
)
{
layer
.
msg
(
'数据库名称不能为空!'
,
{
icon
:
2
});
...
...
hg-monitor-web-base/src/main/resources/static/src/views/backup/main.html
View file @
c576a39
...
...
@@ -35,20 +35,19 @@
<thead>
<tr>
<th>
序号
</th>
<th
width=
"150"
>
系统名称
</th>
<th
width=
"100"
>
等保等级
</th>
<th
width=
"200"
>
数据库名称
</th>
<th>
系统名称
</th>
<th>
等保等级
</th>
<th>
数据库名称
</th>
<th>
IP地址
</th>
<th>
备份平台
</th>
<th>
备份级别
</th>
<th
width=
"100"
>
备份状态
</th>
<th
width=
"100"
>
数据量(GB)
</th>
<th
width=
"100"
>
速率(MB/s)
</th>
<th
width=
"100"
>
运行时间(分)
</th>
<th>
备份状态
</th>
<th>
数据量(GB)
</th>
<th>
速率(MB/s)
</th>
<th>
运行时间(分)
</th>
<th>
开始时间
</th>
<th>
结束时间
</th>
<th>
备注
</th>
<th>
上次备份
</th>
<th>
上次备份时间
</th>
<th>
操作
</th>
</tr>
</thead>
...
...
@@ -67,6 +66,7 @@
</script>
<style
type=
"text/css"
>
.layui-table
td
,
.layui-table
th
{
line-height
:
39px
!important
;
padding
:
0
5px
!important
;
}
td
input
:not
([
type
=
button
])
{
...
...
Please
register
or
login
to post a comment