Sfoglia il codice sorgente

项目列表,文件个数

MaiXinRong 1 mese fa
parent
commit
78e315505f
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 3 0
      app/public/js/sub_project.js
  2. 1 1
      app/view/sub_proj/index.ejs

+ 3 - 0
app/public/js/sub_project.js

@@ -47,10 +47,13 @@ $(document).ready(function() {
                     html.push(`<td class="text-center"></td>`);
                     html.push(`<td class="text-center"></td>`);
                     html.push(`<td class="text-center"></td>`);
+                    html.push(`<td class="text-center"></td>`);
                 } else {
                     html.push(`<td class="text-center">${moment(node.create_time).format('YYYY-MM-DD')}</td>`);
                     // 标段个数
                     html.push(`<td class="text-center">${node.tender_count}</td>`);
+                    // 文件个数
+                    html.push(`<td class="text-center">${node.file_count}</td>`);
                     if (canEdit) {
                         html.push(`<td class="text-center">${node.management || ''}<a class="ml-2" href="javascript: void(0)" name="set-management"><i class="fa fa-pencil-square-o "></i></a>${node.management ? '<a class="ml-2" href="javascript: void(0)" name="refresh-management"><i class="fa fa-refresh "></i></a>': ''}</td>`);
                     } else {

+ 1 - 1
app/view/sub_proj/index.ejs

@@ -26,7 +26,7 @@
                 </div>
                 <% } else { %>
                 <table class="table table-bordered">
-                    <tr class="text-center"><th style="min-width: 300px">项目名称</th><th width="8%">概预算标准</th><th width="8%">创建时间</th><th width="5%">标段个数</th><th width="20%">管理单位</th><% if (ctx.session.sessionUser.is_admin) { %><th width="20%">操作</th><% } %></tr>
+                    <tr class="text-center"><th style="min-width: 300px">项目名称</th><th width="8%">概预算标准</th><th width="8%">创建时间</th><th width="5%">标段个数</th><th width="5%">文件个数<i class="fa fa-question-circle text-primary" data-placement="bottom" data-toggle="tooltip" data-original-title="指资料归集的所有文件个数"></i></th><th width="20%">管理单位</th><% if (ctx.session.sessionUser.is_admin) { %><th width="20%">操作</th><% } %></tr>
                     <tbody id="projectList">
                     </tbody>
                 </table>