sub_proj.ejs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>项目-计量支付</title>
  8. <link rel="stylesheet" href="/public/css/bootstrap/bootstrap.min.css">
  9. <link rel="stylesheet" href="/public/css/wap/main.css">
  10. <link rel="stylesheet" href="/public/css/toast.css">
  11. <link rel="stylesheet" href="/public/css/font-awesome/font-awesome.min.css">
  12. <link rel="stylesheet" href="/public/css/toastr.css">
  13. <link rel="shortcut icon" href="/public/images/favicon.ico">
  14. <style>
  15. html{height:100%;}
  16. body {
  17. padding: 0;
  18. }
  19. </style>
  20. <!-- JS. -->
  21. <% for (const file of jsFiles) { %>
  22. <script type="text/javascript" src="<%- file %>"></script>
  23. <% } %>
  24. </head>
  25. <body>
  26. <div class="container">
  27. <!--顶部-->
  28. <nav class="fixed-top bg-dark">
  29. <div class="my-2 d-flex justify-content-between">
  30. <span class="text-white ml-3">项目</span>
  31. <div class="mr-3">
  32. <div class="dropdown">
  33. <button class="btn btn-sm btn-light dropdown-toggle" type="button" data-toggle="dropdown">
  34. <%- ctx.session.sessionUser.name.substr(ctx.session.sessionUser.name.length > 2 ? ctx.session.sessionUser.name.length - 2 : 0) %>
  35. </button>
  36. <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  37. <a class="dropdown-item" href="/wap/logout">退出登录</a>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </nav>
  43. <div class="py-6">
  44. <div class="c-body">
  45. <% if (!projectList || projectList.length === 0) { %>
  46. <div class="jumbotron" id="no-project">
  47. <h3 class="display-6">还没有项目数据</h3>
  48. </div>
  49. <% } else { %>
  50. <table class="table">
  51. <thead>
  52. <tr class="text-center"><th>项目名称</th></tr>
  53. </thead>
  54. <tbody id="projectList">
  55. </tbody>
  56. </table>
  57. <% } %>
  58. </div>
  59. </div>
  60. <!--底栏菜单-->
  61. <nav class="fixed-bottom navbar-dark bg-light border-top">
  62. <ul class="nav nav-fill my-2">
  63. <li class="nav-item">
  64. <a class="nav-link text-muted show-loading" href="/wap/dashboard"><i class="fa fa-check-square-o"></i> 待审批</a>
  65. </li>
  66. <li class="nav-item">
  67. <a class="nav-link active show-loading" href="/wap/subproj"><i class="fa fa-list-ul"></i> 项目</a>
  68. </li>
  69. </ul>
  70. </nav>
  71. </div>
  72. <script>
  73. const projectList = JSON.parse(unescape('<%- escape(JSON.stringify(projectList)) %>'));
  74. </script>