<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('人员表列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>Id：</p>
                                <input type="text" name="id"/>
                            </li>
                            <li>
                                <p>Bsid：</p>
                                <input type="text" name="bsid"/>
                            </li>
                            <li>
                                <p>姓名：</p>
                                <input type="text" name="renname"/>
                            </li>
                            <li>
                                <p>性别：</p>
                                <select name="rensex" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>身份证：</p>
                                <input type="text" name="rencardno"/>
                            </li>
                            <li>
                                <p>联系方式：</p>
                                <input type="text" name="renmoblie"/>
                            </li>
                            <li>
                                <p>手机号：</p>
                                <input type="text" name="renphone"/>
                            </li>
                            <li>
                                <p>邮箱：</p>
                                <input type="text" name="renemail"/>
                            </li>
                            <li>
                                <p>身份证办理地址：</p>
                                <input type="text" name="rencardjg"/>
                            </li>
                            <li>
                                <p>住址：</p>
                                <input type="text" name="renaddress"/>
                            </li>
                            <li>
                                <p>身份证时间：</p>
                                <input type="text" name="rencarddate"/>
                            </li>
                            <li>
                                <p>照片：</p>
                                <input type="text" name="renphoto"/>
                            </li>
                            <li>
                                <p>签名：</p>
                                <input type="text" name="renqianming"/>
                            </li>
                            <li>
                                <p>拍照：</p>
                                <input type="text" name="paiphoto"/>
                            </li>
                            <li>
                                <p>身份类别：</p>
                                <select name="rentype" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>RzQx：</p>
                                <input type="text" name="rzqx"/>
                            </li>
                            <li>
                                <p>职位名称：</p>
                                <input type="text" name="zwmc"/>
                            </li>
                            <li>
                                <p>从事方式：</p>
                                <input type="text" name="csfs"/>
                            </li>
                            <li>
                                <p>委派部门：</p>
                                <input type="text" name="weipaidept"/>
                            </li>
                            <li>
                                <p>是否法人：</p>
                                <input type="text" name="isfr"/>
                            </li>
                            <li>
                                <p>操作人身份证：</p>
                                <input type="text" name="czrsfz"/>
                            </li>
                            <li>
                                <p>操作人身份证1：</p>
                                <input type="text" name="czrsfz1"/>
                            </li>
                            <li>
                                <p>WXOpenID：</p>
                                <input type="text" name="wxopenid"/>
                            </li>
                            <li class="select-time">
                                <p>添加时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginAddtime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endAddtime]"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:person:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:person:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:person:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:person:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table" data-mobile-responsive="true"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:person:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:person:remove')}]];
        var prefix = ctx + "Ytj/person";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "人员表",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id', 
                    title : 'Id'
                },
                {
                    field : 'bsid', 
                    title : 'Bsid'
                },
                {
                    field : 'renname', 
                    title : '姓名'
                },
                {
                    field : 'rensex', 
                    title : '性别'
                },
                {
                    field : 'rencardno', 
                    title : '身份证'
                },
                {
                    field : 'renmoblie', 
                    title : '联系方式'
                },
                {
                    field : 'renphone', 
                    title : '手机号'
                },
                {
                    field : 'renemail', 
                    title : '邮箱'
                },
                {
                    field : 'rencardjg', 
                    title : '身份证办理地址'
                },
                {
                    field : 'renaddress', 
                    title : '住址'
                },
                {
                    field : 'rencarddate', 
                    title : '身份证时间'
                },
                {
                    field : 'renphoto', 
                    title : '照片'
                },
                {
                    field : 'renqianming', 
                    title : '签名'
                },
                {
                    field : 'paiphoto', 
                    title : '拍照'
                },
                {
                    field : 'rentype', 
                    title : '身份类别'
                },
                {
                    field : 'rzqx', 
                    title : 'RzQx'
                },
                {
                    field : 'zwmc', 
                    title : '职位名称'
                },
                {
                    field : 'csfs', 
                    title : '从事方式'
                },
                {
                    field : 'weipaidept', 
                    title : '委派部门'
                },
                {
                    field : 'isfr', 
                    title : '是否法人'
                },
                {
                    field : 'czrsfz', 
                    title : '操作人身份证'
                },
                {
                    field : 'czrsfz1', 
                    title : '操作人身份证1'
                },
                {
                    field : 'wxopenid', 
                    title : 'WXOpenID'
                },
                {
                    field : 'addtime', 
                    title : '添加时间'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>