<% include ./sub_menu.ejs %>
<div class="panel-content">
    <div class="panel-title">
        <div class="title-main">
            <h2>标段自定义类别
                <a href="#add-cate" data-toggle="modal" data-target="#add-cate" class="btn btn-primary btn-sm pull-right">添加类别</a>
            </h2>
        </div>
    </div>
    <div class="content-wrap">
        <div class="c-body">
            <table class="table table-hover table-bordered table-sm">
                <thead>
                <tr>
                    <th>名称</th>
                    <th>类型</th>
                    <th>值</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody id="categoryList">
                </tbody>
            </table>
        </div>
    </div>
</div>
<script>
    let cData = JSON.parse('<%- JSON.stringify(categoryData) %>');
    const cType = JSON.parse('<%- JSON.stringify(categoryType) %>');
    let tenders = JSON.parse('<%- JSON.stringify(tenderData) %>');
</script>
<script src="/public/js/category.js"></script>