<div class="panel-content">
    <div class="panel-title fluid">
        <div class="title-main">
            <h2>
                <%= libInfo.filename %>
                <% if(libInfo.status === libConst.status.pend) { %><a href="#storage" data-toggle="modal" data-target="#storage" class="btn btn-primary btn-sm pull-right">入库</a><% } %>
                <a href="#del" data-toggle="modal" data-target="#del" class="btn btn-outline-danger btn-sm pull-right">从库中删除</a>
            </h2>
        </div>
    </div>
    <div class="content-wrap">
        <div class="c-header p-0 col-12">
            <ul class="nav nav-tabs">
                <li class="nav-item">
                    <a class="nav-link" href="/lib/global/<%= ctx.params.id %>">全局参数</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" href="javascript:void(0);">项目节参数</a>
                </li>
            </ul>
        </div>
        <div class="c-body">
            <div class="row">
                <div class="col-5">
                    <div id="bills-spread" class="sjs-height-1" style="overflow:hidden">
                    </div>
                </div>
                <div class="col-7">
                    <!--top-->
                    <div>
                        <div class="top-title">
                            <h5>指标</h5>
                        </div>
                        <div class="sjs-height-3">
                            <table class="table table-bordered table-sm table-hover">
                                <thead>
                                <tr>
                                    <th>指标编号</th>
                                    <th>项目或费用名称</th>
                                    <th colspan="2">指标单位</th>
                                    <th>计算规则</th>
                                    <th>指标计算</th>
                                    <th>经济指标</th>
                                </tr>
                                </thead>
                                <tbody id="indexList">
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <!--bottom-->
                    <div>
                        <div class="bottom-title mt-3">
                            <h5 class="d-flex justify-content-between">填写参数 <a href="javascript:void(0)" id="param-visible">展开</a></h5>
                        </div>
                        <div class="sjs-bottom-2">
                            <div class="sjs-bottom-4" style="display:none">
                                <!--本节点参数-->
                                <table class="table table-bordered table-sm table-hover">
                                    <thead>
                                    <tr><th colspan="4" class="text-center"><span id="codeName"></span> 参数</th></tr>
                                    <tr>
                                        <th>参数名称</th><th>绑定分项节点</th><th>参数数值</th>
                                    </tr>
                                    </thead>
                                    <tbody id="paramList">
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/public/js/spreadjs/sheets/gc.spread.sheets.all.10.0.1.min.js"></script>
<script>
    GC.Spread.Sheets.LicenseKey = "559432293813965#A0y3iTOzEDOzkjMyMDN9UTNiojIklkI1pjIEJCLi4TPB9mM5AFNTd4cvZ7SaJUVy3CWKtWYXx4VVhjMpp7dYNGdx2ia9sEVlZGOTh7NRlTUwkWR9wEV4gmbjBDZ4ElR8N7cGdHVvEWVBtCOwIGW0ZmeYVWVr3mI0IyUiwCMzETN8kzNzYTM0IicfJye&Qf35VfiEzRwEkI0IyQiwiIwEjL6ByUKBCZhVmcwNlI0IiTis7W0ICZyBlIsIyNyMzM5ADI5ADNwcTMwIjI0ICdyNkIsIibj9SbvNmL4N7bjRnch56ciojIz5GRiwiI8+Y9sWY9QmZ0Jyp96uL9v6L0wap9biY9qiq95q197Wr9g+89iojIh94Wiqi";
</script>
<script src="/public/js/spreadjs_rela/spreadjs_zh.js"></script>
<script src="/public/js/spreadjs_rela/extend_celltype.js"></script>
<script src="/public/js/path_tree.js"></script>
<script type="text/javascript">
    const bills = JSON.parse('<%- billsData %>');
</script>
<script src="/public/js/lib_detail.js"></script>