MaiXinRong 2 rokov pred
rodič
commit
8acf98475b
2 zmenil súbory, kde vykonal 9 pridanie a 9 odobranie
  1. 4 4
      app/public/js/file_detail.js
  2. 5 5
      app/view/file/file.ejs

+ 4 - 4
app/public/js/file_detail.js

@@ -71,11 +71,11 @@ $(document).ready(function() {
         _getFileHtml(file) {
             const html = [];
             html.push(`<tr fid="${file.id}">`);
-            html.push(`<td><input type="checkbox" name="bd-check" fid="${file.id}"></td>`);
+            html.push(`<td class="text-center"><input type="checkbox" name="bd-check" fid="${file.id}"></td>`);
             html.push(`<td fid="${file.id}">${this._getFileNameHtml(file)}</td>`);
-            html.push(`<td>${file.user_name}</td>`);
-            html.push(`<td>${moment(file.create_time).format('YYYY-MM-DD HH:mm:ss')}</td>`);
-            html.push(`<td>${file.fileext_str}</td>`);
+            html.push(`<td class="text-center">${file.user_name}</td>`);
+            html.push(`<td class="text-center">${moment(file.create_time).format('YYYY-MM-DD HH:mm:ss')}</td>`);
+            html.push(`<td class="text-center">${file.fileext_str}</td>`);
             html.push('</tr>');
             return html.join('');
         }

+ 5 - 5
app/view/file/file.ejs

@@ -42,11 +42,11 @@
                     <table class="table table-bordered">
                         <thead>
                         <tr class="text-center">
-                            <th>选择</th>
-                            <th width="45%">文件名称</th>
-                            <th>上传人</th>
-                            <th>上传时间</th>
-                            <th>文件类型</th>
+                            <th width="60px">选择</th>
+                            <th>文件名称</th>
+                            <th width="10%">上传人</th>
+                            <th width="20%">上传时间</th>
+                            <th width="10%">文件类型</th>
                         </tr>
                         </thead>
                         <tbody id="file-list">