@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.level') }}</label>
        					<div class="layui-input-inline">
        						<input type="text" name="level"  id="level"  lay-verify="" autocomplete="off" eventType="event-query"  value="{{ $level }}" 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="name" id="name" lay-verify="required" autocomplete="off" eventType="event-query"  value="{{ $name }}" class="layui-input">
                      </div>
                </div>
                <div class="layui-inline">
					<label class="layui-form-label">{{ trans('system_user.settingmoney') }}</label>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input type="text" name="money_small" id="money_small" placeholder="￥0" autocomplete="off" eventType="event-query"  value="{{ $money_small }}" class="layui-input">
                    </div>
					<div class="layui-form-mid">-</div>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input type="text" name="money_big" id="money_big" placeholder="￥0" autocomplete="off" eventType="event-query"  value="{{ $money_big }}" class="layui-input">
                    </div>

               </div>

                <div class="layui-inline">
                <a class="layui-btn layui-btn-sm lay-btn-diy"   data-type="reload" eventType="event-query-submit" style="opacity: 1; pointer-events: auto;">提交</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>


				  @if(checkRriv('/admin/Manager/systemAdd'))   <div class="layui-inline"><a href="/admin/Manager/systemAdd" class="layui-btn layui-btn-sm  ">添加</a> @endif
        </div>
         @if(checkRriv('/admin/Adminroot/delete'))  <div class="layui-inline"><a href="javascript:delWin('/admin/Adminroot/delete?id=');" class="layui-btn layui-btn-sm  layui-btn-danger">删除</a></div> @endif 
        </div>
        </form>
    </div>
    </div>

    <script type="text/html" id="waterTool">
@{{#if(d.id != 1){ }}
    @if(checkRriv('/admin/priv_role/index'))<a href="/admin/priv_role/index?id=@{{d.id}}" class="layui-btn layui-btn-sm">权限管理</a>@endif
@{{#} }}


	@if(checkRriv('/admin/Adminroot/view'))<a href="/admin/Adminroot/view?id=@{{d.id}}" class="layui-btn layui-btn-sm">修改</a>@endif

    </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

