<div class="panel-content">
    <div class="panel-title fluid">
        <div class="title-main d-flex justify-content-between">
            <div>
                <div class="btn-group">
                    <ul class="nav nav-pills m-0">
                        <li class="nav-item">
                            <a class="nav-link <% if(status === undefined) { %>active<% } %>" href="/lib">全部</a>
                        </li>
                        <li class="nav-item">
                            <% if(parseInt(status) === libConst.status.pend) { %>
                            <a class="nav-link active" href="/lib?status=<%= libConst.status.pend %>"><%= libConst.statusString[libConst.status.pend] %> <span class="badge badge-light"><%= libStatus.pend %></span></a>
                            <% } else { %>
                            <a class="nav-link" href="/lib?status=<%= libConst.status.pend %>"><%= libConst.statusString[libConst.status.pend] %> <span class="badge badge-secondary"><%= libStatus.pend %></span></a>
                            <% } %>
                        </li>
                        <li class="nav-item">
                            <% if(parseInt(status) === libConst.status.enter) { %>
                            <a class="nav-link active" href="/lib?status=<%= libConst.status.enter %>"><%= libConst.statusString[libConst.status.enter] %> <span class="badge badge-light"><%= libStatus.enter %></span></a>
                            <% } else { %>
                            <a class="nav-link" href="/lib?status=<%= libConst.status.enter %>"><%= libConst.statusString[libConst.status.enter] %> <span class="badge badge-secondary"><%= libStatus.enter %></span></a>
                            <% } %>
                        </li>
                    </ul>
                </div>
            </div>
            <div>
                <a href="#upload" data-toggle="modal" data-target="#upload" class="btn btn-primary btn-sm pull-right">导入造价文件</a>
            </div>
        </div>
    </div>
    <div class="content-wrap">
        <div class="c-header p-0 col-12"></div>
        <div class="c-body">
            <div class="sjs-height-1">
                <table class="table table-bordered">
                    <tr>
                        <th class="">造价文件名称</th>
                        <th class="">导入时间</th>
                        <th class=""></th>
                    </tr>
                    <% if(libList.length > 0) { %>
                    <% libList.forEach(function(lib) { %>
                    <tr>
                        <td><a href="/lib/global/<%= lib.id %>"><%= lib.filename %></a></td>
                        <td><%= lib.create_time > 0 ? moment(lib.create_time * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' %> </td>
                        <td><% if(lib.status === 1) { %><a href="/lib/global/<%= lib.id %>" class="btn btn-sm btn-outline-primary">填写参数</a> <% } else { %><%= lib.enter_time > 0 ? moment(lib.enter_time * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' %> 入库<% } %></td>
                    </tr>
                    <% }) %>
                    <% } %>
                </table>
            </div>
        </div>
    </div>
</div>