index.ejs 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="panel-content">
  2. <div class="panel-title fluid">
  3. <div class="title-main d-flex justify-content-between">
  4. <div>资料归集</div>
  5. <div class="d-inline-block ml-1" id="show-level"></div>
  6. <div class="ml-auto"></div>
  7. </div>
  8. </div>
  9. <div class="content-wrap">
  10. <div class="sjs-height-0" style="background-color: #fff">
  11. <div class="c-body">
  12. <% if (!projectList || projectList.length === 0) { %>
  13. <div class="jumbotron">
  14. <h3 class="display-6">还没有项目数据</h3>
  15. </div>
  16. <% } else { %>
  17. <table class="table table-hover table-bordered">
  18. <tr class="text-center"><th style="min-width: 200px; width: 45%">项目名称</th><th>文件个数</th><th>管理单位</th><th>创建时间</th><th>操作</th></tr>
  19. <tbody id="projectList">
  20. </tbody>
  21. </table>
  22. <% } %>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <script>
  28. autoFlashHeight();
  29. const projectList = JSON.parse(unescape('<%- escape(JSON.stringify(projectList)) %>'));
  30. const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
  31. const canManage = <%- ctx.session.sessionUser.is_admin %>;
  32. </script>