12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <div class="panel-content">
- <div class="panel-title fluid">
- <div class="title-main d-flex">
- <div class="d-inline-block">
- <div class="btn-group group-tab">
- </div>
- </div>
- <div class="d-inline-block mr-2" id="show-level"></div>
- </div>
- </div>
- <div class="content-wrap">
- <div class="sjs-height-0" style="background-color: #fff">
- <div class="c-body">
- <% if (!projectList || projectList.length === 0) { %>
- <div class="jumbotron" id="no-project">
- <h3 class="display-6">还没有项目数据</h3>
- </div>
- <% } else { %>
- <table class="table table-bordered">
- <tr class="text-center">
- <th style="min-width: 200px" rowspan="2" class="align-middle">项目名称</th>
- <th width="10%" rowspan="2" class="align-middle">创建时间</th>
- <th colspan="3">支出合同</th>
- <th colspan="3">收入合同</th>
- <% if (ctx.session.sessionUser.is_admin) { %>
- <th width="10%" rowspan="2" class="align-middle">操作</th>
- <% } %>
- </tr>
- <tr class="text-center">
- <th width="6%">合同个数</th>
- <th width="10%">合同金额</th>
- <th width="15%">支出进度</th>
- <th width="6%">合同个数</th>
- <th width="10%">合同金额</th>
- <th width="15%">回款进度</th>
- </tr>
- <tbody id="projectList">
- </tbody>
- </table>
- <% } %>
- </div>
- </div>
- </div>
- </div>
- <script>
- const projectList = JSON.parse(unescape('<%- escape(JSON.stringify(projectList)) %>'));
- const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
- const is_admin = <%- ctx.session.sessionUser.is_admin %>;
- </script>
|