{layout name="manager/layout" /}

<div class="layui-row layui-col-space12">
    <div class="layui-col-xs12 layui-col-md12">
        <div class="layuimini-container location-index-page">
            <div class="layuimini-main">
                <fieldset class="table-search-fieldset" style="display: none">
                    <legend>搜索信息</legend>
                    <div style="margin: 10px 10px 10px 10px">
                        <form class="layui-form layui-form-pane" action="">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">关键词</label>
                                    <div class="layui-input-block">
                                        <input class="layui-input" name="keyword" placeholder="支持模糊查询">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </fieldset>
                <div class="image-table">
                    <table id="table-container" class="layui-table" data-url="/manager/worksite/index" lay-filter="table-container-filter"></table>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 隐藏列 -->
<!-- 编辑单元格提交url -->
<input type="hidden" id="row-modify" data-url="/manager/worksite/modify">

<!-- 操作列 -->
<script type="text/html" id="row-operate">
    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/worksite/edit.html?id={{d.id}}" data-title="编辑" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/worksite-outsource/index.html?worksite_id={{d.id}}" data-title="【{{d.name}}】分包单位" lay-event="detail">分包单位</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/account/index/index.html?worksite_id={{d.id}}&role=1" data-title="【{{d.name}}】工人列表" lay-event="detail">工人列表</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/worksite/outlay.html?worksite_id={{d.id}}" data-title="【{{d.name}}】项目开支汇总" lay-event="detail">项目开支汇总</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/project-log/index.html?worksite_id={{d.id}}" data-title="【{{d.name}}】项目日志" lay-event="detail">项目日志</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/project-progress/index.html?worksite_id={{d.id}}" data-title="【{{d.name}}】项目进度" lay-event="detail">项目进度</a>
<!--    <a class="layui-btn layui-btn-danger layui-btn-xs" data-href="/manager/worksite/del.html" lay-event="del">删除</a>-->
</script>

<!-- toolbar -->
<script type="text/html" id="toolbar-tpl">
    <a class="layui-btn layui-btn-primary layui-btn-sm" data-table-refresh lay-event="refresh"><i class="fa fa-refresh"></i></a>
    <a class="layui-btn layui-btn-normal layui-btn-sm" data-href="/manager/worksite/add.html" data-title="添加" lay-event="add">添加</a>
<!--    <a class="layui-btn layui-btn-danger layui-btn-sm" data-href="/manager/worksite/del.html" lay-event="del">删除</a>-->
</script>

<script src="__MANAGER__/js/worksite/worksite.js?v={:mt_rand()}"></script>