<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>人员管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
  <link rel="stylesheet" type="text/css" href="../../layuiadmin/style/formSelects-v4.css"/>
    <style type="text/css">
    .LAY-btns .layui-nav {padding-left:0;padding-right:10px;top:-4px;margin: 0 10px;border: 0;background-color: #009688;}
    .LAY-btns .layui-nav .layui-nav-item{line-height: 30px;}
    .LAY-btns .layui-nav .layui-nav-child{top:34px;}
    .LAY-btns .layui-nav .layui-nav-bar{display: none;}
    .LAY-btns .layui-nav .layui-nav-child dd.layui-this a{color:#333;background-color:#fff;}
    .LAY-btns .layui-nav .layui-nav-child dd.layui-this a:hover {background-color: #f2f2f2;color: #000;}
    .seach_items {float:right;margin-left: 10px;}
  </style>
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" pad15>
        <div class="layui-row layui-col-space15">
          <div class="layui-col-md12">
            <div class="LAY-btns" style="margin-bottom: 10px;">
                <form class="layui-form" lay-filter="query-form-element">
                    <div class="seach_items">
                        <button class="layui-btn" lay-submit lay-filter="query-form-element"><i class="layui-icon layui-icon-search"></i>查询</button>
                    </div>
                    <div class="seach_items">
                       <select name="type">
                            <option value="">类别</option>
                            <option value="1">添加</option>
                            <option value="2">修改</option>
                            <option value="3">删除</option>
                        </select>
                    </div>
                    <div class="seach_items">
                     <div class="layui-inline">
                      <div class="layui-input-inline">
                        <input type="text" name="range_time" class="layui-input" id="range_time" placeholder="时间">
                      </div>
                    </div>
                    </div>
                </form>
                <div style="clear: both;"></div>
            </div>
            <table class="layui-hide" id="datagrid" lay-filter="datagrid-operate"></table>

          </div>
        </div>
        </div>
    </div>
  </div>

  <script src="../../layuiadmin/layui/layui.js?t=1"></script>
  <script>
  layui.config({
    base: '../../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
     ,formSelects: 'formSelects-v4'
  }).use(['index', 'table', 'form', 'formSelects', 'laydate'], function(){
    var $ = layui.$
            ,table = layui.table
            ,admin = layui.admin
        ,laydate = layui.laydate
            ,form = layui.form;


    table.render({
      elem: '#datagrid'
      ,url: '/foundation/bizlog/'
      ,cols: [[
        {field:'user_name', title:'人员',width: 100}
       ,{field:'type_name', title:'类别',width: 80}
       ,{field:'create_time', title:'时间',width: 150}
       ,{field:'description', title:'操作', width:500}
      ]]
      ,page: true
      ,height: 'full-108'
      , done: function () {
        layui.index.removeNoPermButtons()
      }
    });

    laydate.render({
        elem: '#range_time'
        ,range:true
    });
    form.on('submit(query-form-element)', function(data){
      //layer.msg(JSON.stringify(data.field));
      table.reload('datagrid', {
          where: data.field
          ,page:{curr:1}
      });
      layer.closeAll();
      return false;
    });
  });
  </script>
</body>
</html>

