Authored by 袁晋鹏

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

@@ -161,7 +161,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -161,7 +161,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
161 '<td></td>' + 161 '<td></td>' +
162 '<td></td>' + 162 '<td></td>' +
163 '<td></td>' + 163 '<td></td>' +
164 - '<td></td>' + 164 +
165 '<td></td>' + 165 '<td></td>' +
166 '<td></td>' + 166 '<td></td>' +
167 '</tr>' 167 '</tr>'
@@ -238,7 +238,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -238,7 +238,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
238 '<td>' + useTime + '</td>' + 238 '<td>' + useTime + '</td>' +
239 '<td>' + startTime + '</td>' + 239 '<td>' + startTime + '</td>' +
240 '<td>' + endTime + '</td>' + 240 '<td>' + endTime + '</td>' +
241 - '<td>' + remark + '</td>' + 241 +
242 '<td>' + lastTime + '</td>' + 242 '<td>' + lastTime + '</td>' +
243 '<td><input type="button" value="编辑" class="edit layui-button layui-btn-sm layui-btn-normal" style="color: #ffffff;border-radius:4px"/></td>' + 243 '<td><input type="button" value="编辑" class="edit layui-button layui-btn-sm layui-btn-normal" style="color: #ffffff;border-radius:4px"/></td>' +
244 '</tr>' 244 '</tr>'
@@ -255,9 +255,9 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -255,9 +255,9 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
255 '<td>' + useTime + '</td>' + 255 '<td>' + useTime + '</td>' +
256 '<td>' + startTime + '</td>' + 256 '<td>' + startTime + '</td>' +
257 '<td>' + endTime + '</td>' + 257 '<td>' + endTime + '</td>' +
258 - '<td>' + remark + '</td>' + 258 +
259 '<td>' + lastTime + '</td>' + 259 '<td>' + lastTime + '</td>' +
260 - '<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>' + 260 + '<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>' +
261 '</tr>' 261 '</tr>'
262 } 262 }
263 }); 263 });
@@ -320,8 +320,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -320,8 +320,7 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
320 'backSpeed': tdArr[8], 320 'backSpeed': tdArr[8],
321 'useTime': tdArr[9], 321 'useTime': tdArr[9],
322 'startTime': tdArr[10], 322 'startTime': tdArr[10],
323 - 'endTime': tdArr[11],  
324 - 'remark': tdArr[12] 323 + 'endTime': tdArr[11]
325 }; 324 };
326 if (param.resName == '') { 325 if (param.resName == '') {
327 layer.msg('数据库名称不能为空!', {icon: 1}); 326 layer.msg('数据库名称不能为空!', {icon: 1});
@@ -387,7 +386,6 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -387,7 +386,6 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
387 tdlist[9].innerHTML = '<input class="text" type="text" value="' + obj.useTime + '"/>'; 386 tdlist[9].innerHTML = '<input class="text" type="text" value="' + obj.useTime + '"/>';
388 tdlist[10].innerHTML = '<input class="text" type="text" value="' + dateForm(obj.startTime) + '"/>'; 387 tdlist[10].innerHTML = '<input class="text" type="text" value="' + dateForm(obj.startTime) + '"/>';
389 tdlist[11].innerHTML = '<input class="text" type="text" value="' + dateForm(obj.endTime) + '"/>'; 388 tdlist[11].innerHTML = '<input class="text" type="text" value="' + dateForm(obj.endTime) + '"/>';
390 - tdlist[12].innerHTML = '<input class="text" type="text" value="' + obj.remark + '"/>';  
391 // tdlist[13].innerHTML = '<input class="text" type="text" value="' + dateForm(obj.lastTime) + '"/>'; 389 // tdlist[13].innerHTML = '<input class="text" type="text" value="' + dateForm(obj.lastTime) + '"/>';
392 } else { 390 } else {
393 $.each(tdlist, function (i, e) { 391 $.each(tdlist, function (i, e) {
@@ -419,8 +417,8 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view', @@ -419,8 +417,8 @@ layui.define(['table', 'admin', 'form', 'laydate', 'common', 'sessions', 'view',
419 'backSpeed': tdArr[8], 417 'backSpeed': tdArr[8],
420 'useTime': tdArr[9], 418 'useTime': tdArr[9],
421 'startTime': tdArr[10], 419 'startTime': tdArr[10],
422 - 'endTime': tdArr[11],  
423 - 'remark': tdArr[12] 420 + 'endTime': tdArr[11]
  421 +
424 }; 422 };
425 if (param.resName == '') { 423 if (param.resName == '') {
426 layer.msg('数据库名称不能为空!', {icon: 2}); 424 layer.msg('数据库名称不能为空!', {icon: 2});
@@ -35,20 +35,19 @@ @@ -35,20 +35,19 @@
35 <thead> 35 <thead>
36 <tr> 36 <tr>
37 <th>序号</th> 37 <th>序号</th>
38 - <th width="150">系统名称</th>  
39 - <th width="100">等保等级</th>  
40 - <th width="200">数据库名称</th> 38 + <th>系统名称</th>
  39 + <th>等保等级</th>
  40 + <th>数据库名称</th>
41 <th>IP地址</th> 41 <th>IP地址</th>
42 <th>备份平台</th> 42 <th>备份平台</th>
43 <th>备份级别</th> 43 <th>备份级别</th>
44 - <th width="100">备份状态</th>  
45 - <th width="100">数据量(GB)</th>  
46 - <th width="100">速率(MB/s)</th>  
47 - <th width="100">运行时间(分)</th> 44 + <th>备份状态</th>
  45 + <th>数据量(GB)</th>
  46 + <th>速率(MB/s)</th>
  47 + <th>运行时间(分)</th>
48 <th>开始时间</th> 48 <th>开始时间</th>
49 <th>结束时间</th> 49 <th>结束时间</th>
50 - <th>备注</th>  
51 - <th>上次备份</th> 50 + <th>上次备份时间</th>
52 <th>操作</th> 51 <th>操作</th>
53 </tr> 52 </tr>
54 </thead> 53 </thead>
@@ -67,6 +66,7 @@ @@ -67,6 +66,7 @@
67 </script> 66 </script>
68 <style type="text/css"> 67 <style type="text/css">
69 .layui-table td, .layui-table th { 68 .layui-table td, .layui-table th {
  69 + line-height: 39px!important;
70 padding: 0 5px!important; 70 padding: 0 5px!important;
71 } 71 }
72 td input:not([type=button]) { 72 td input:not([type=button]) {