@extends('vip.layouts')
@section('content')


<div class="layui-row">

    <div class="layui-col-xs12">

        <form class="layui-form rewrite" action="" eventType=eventForm>
            <div class="layui-form-item">
               <!-- <div class="layui-inline">
        					<label class="layui-form-label">{{ trans('system_user.admin_name') }}</label>
        					<div class="layui-input-inline">
        						<input type="text" name="admin_name"  id="admin_name"  lay-verify="" autocomplete="off" class="layui-input">
        					</div>
                </div>-->

                <div class="layui-inline">

                <label class="layui-form-label">{{ trans('system_user.name') }}</label>
                      <div class="layui-input-inline">
                        <input type="text" name="role_name" id="role_name" lay-verify="required" autocomplete="off" class="layui-input"
                               eventType=event-query>
                      </div>
                </div>

                <div class="layui-inline">
                <a class="layui-btn layui-btn-sm lay-btn-diy"   data-type="reload" style="opacity: 1; pointer-events: auto;"
                   eventType=event-query-submit>提交</a>
				<a  class="layui-btn   layui-btn-sm  layui-btn-normal reset" data-type="reload" style="opacity: 1; pointer-events: auto;">重置</a>
        <a class="layui-btn layui-btn-sm layui-btn-green set" data-type="reload" style="opacity: 1; pointer-events: auto;"><i class="layui-icon">ဂ</i></a>
               </div>


				<div class="layui-inline"><a href="/admin/adminRole/addRole?id={{Request::get('id')}}" class="layui-btn layui-btn-sm  ">添加</a>
        </div>
        <div class="layui-inline"><a href="javascript:delWin('/admin/AdminRole/delete?id=');" class="layui-btn layui-btn-sm  layui-btn-danger">删除</a></div>
        </div>
        </form>
    </div>
    </div>

    <script type="text/html" id="waterTool">
        <a href="/admin/priv_role/index?id=@{{d.id}}" class="layui-btn layui-btn-sm">权限管理</a>
        <a href="/admin/Adminroot/view?id=@{{d.id}}" class="layui-btn layui-btn-sm">修改</a>
    </script>
@push('dataTableJS')
/*var active = {
    reload: function(){
      //执行重载
      table.reload('{{ $dataId }}', {
        page: {
          curr: 1 //重新从第 1 页开始
        }
        ,where: {
            name:$("#name").val(),
            level:$('#level').val(),
            money_small:$('#money_small').val(),
            money_big:$('#money_big').val(),
        }
      });
    }
  };
$('.lay-btn-diy').on('click', function(){
    var type = $(this).data('type');
    active[type] ? active[type].call(this) : '';
  });*/

  //重置表单
  $('.reset').on('click',function(){
	  $('input').val('');
//	  var type = $(this).data('type');
//	  active[type] ? active[type].call(this) : '';
  });

  //刷新表单
//    $('.set').on('click',function(){
//    var type = $(this).data('type');
//    active[type] ? active[type].call(this) : '';
//    });


@endpush

<!-- <script>
  $(document).on('click','[eventType=event-priv_role]',function(){
    var url='/admin/priv_role/index?role_id=';
    var pid=$(this).attr('pid');
    var id=$(this).parent().find('span').attr('data-'+pid);
    openWin(url+id,'权限信息');
  });
</script> -->
@include('vip.datatable')
<link rel="stylesheet" href="{{ asset('/css/untablelist.css') }}"  />
@endsection

