Authored by 高磊

Merge branch 'master-mj-yuanjinpeng' into 'master-mj'

fix: 数据库备份展示行间距和宽度展示优化



See merge request !1246
... ... @@ -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});
... ...
... ... @@ -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]) {
... ...