| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>demo</title>
- <link rel="stylesheet" href="../../libs/bootstrap/css/bootstrap.min.css">
- <link rel="stylesheet" href="../../libs/fontawesome/css/all.min.css">
- <link rel="stylesheet" href="../../libs/layui/css/layui.css">
- <link rel="stylesheet" href="../../css/style.css">
- <script src="../../libs/jquery-3.5.1.min.js"></script>
- <script src="../../libs/bootstrap/js/bootstrap.min.js"></script>
- </head>
- <body>
- <div class="main s000001">
- <div class="operate">
- <div>
- <div class="dm_picker">
- <i class="fas fa-layer-group"></i>
- <span class="name">张德晨</span>
- <i class="fas fa-caret-down"></i>
- </div>
- <div class="search">
- <input type="text" class="input">
- <button type="button" class="layui-btn layui-btn-primary layui-btn-sm search-btn"><i class="fas fa-search"></i></button>
- </div>
- </div>
- <div class="btn-handle">
- <button type="button" class="layui-btn">添加员工</button>
- <button type="button" class="layui-btn layui-btn-primary">导入花名册</button>
- <button type="button" class="layui-btn layui-btn-primary">导出花名册</button>
- </div>
- </div>
- <div class="content">
- <!-- <div class="table-handle pull-right">
- <span class="layui-breadcrumb" lay-separator="|">
- <a ></a>
- <a >刷新</a>
- <a >选择表头</a>
- <a >排序方式</a>
- <a >导出</a>
- <a ></a>
- </span>
- </div><br> -->
- <table id="staff" lay-filter="staff"></table>
- </div>
- </div>
- <script src="../../libs/layui/layui.all.js" charset="utf-8"></script>
- <script src="../../js/global.js"></script>
- <script>
- layui.use('table', function(){
- var table = layui.table;
- //第一个实例
- var tableObj = table.render({
- elem: '#staff',
- height: '600',
- // url: '/demo/table/user/', //数据接口
- page: true, //开启分页
- data:[{id:1},{id:2}],
- defaultToolbar:['filter', 'print', 'exports', {
- title: '自定义' //标题
- ,layEvent: 'LAYTABLE_TIPS' //事件名,用于 toolbar 事件中使用
- ,icon: 'layui-icon-tips' //图标类名
- }],
- toolbar: 'default' ,
- cols: [[ //表头
- {field: 'id', title: 'ID', width:80, fixed: 'left'},
- {field: 'username', title: '姓名', width:80},
- {field: 'wealth', title: '部门', width:80, },
- {field: 'wealth', title: '工号', width:80} ,
- {field: 'wealth', title: '工作性质', width: 177},
- {field: 'wealth', title: '岗位', width: 80, },
- {field: 'wealth', title: '入职日期', width: 80, },
- {field: 'wealth', title: '证件类型', width: 80},
- {field: 'wealth', title: '证件号码', width: 135, },
- {field: 'wealth', title: '手机号码', width: 135, },
- {field: 'wealth', title: '一级部门', width: 135, },
- {field: 'wealth', title: '二级部门', width: 135, },
- {field: 'wealth', title: '三级部门', width: 135, },
- {field: 'wealth', title: '职级', width: 135, },
- {field: 'wealth', title: '职等', width: 135, },
- {field: 'wealth', title: '职务', width: 135, },
- {field: 'wealth', title: '岗位类别', width: 135, },
- {field: 'wealth', title: '汇报上级', width: 135, },
- {field: 'wealth', title: '工作城市', width: 135, },
- {field: 'wealth', title: '工作地点', width: 135, },
- {field: 'wealth', title: '合同公司', width: 135, },
- {field: 'wealth', title: '考勤编号', width: 135, },
- {field: 'wealth', title: '工时制度', width: 135, },
- {field: 'wealth', title: '招聘渠道', width: 135, },
- {field: 'wealth', title: '员工状态', width: 135, },
- {field: 'wealth', title: '转正日期', width: 135, },
- {field: 'wealth', title: '司龄', width: 135, },
- {field: 'wealth', title: '档案编号', width: 135, },
- {field: 'wealth', title: '别名', width: 135, },
- {field: 'wealth', title: '英文名', width: 135, },
- {field: 'wealth', title: '身份证有效期', width: 135, },
- {field: 'wealth', title: '性别', width: 135, },
- {field: 'wealth', title: '生日', width: 135, },
- {field: 'wealth', title: '年龄', width: 135, },
- {field: 'wealth', title: '是否已婚', width: 135, },
- {field: 'wealth', title: '是否已育', width: 135, },
- {field: 'wealth', title: '国家地区', width: 135, },
- {field: 'wealth', title: '民族', width: 135, },
- {field: 'wealth', title: '政治面貌', width: 135, },
- {field: 'wealth', title: '籍贯', width: 135, },
- {field: 'wealth', title: '操作', width: 135, fixed: 'right',templet: `<div><a onclick='console.log({{d.id}})' class="layui-table-link">编辑</a></div>`},
- ]]
- });
- });
- </script>
- </body>
- </html>
|