@extends('vip.layouts')
@section('content')
    <style>
        .layui-laydate-range{
            width: auto;
        }
    </style>

    <script type="text/html" id="detail">
      <a href="/admin/BaseSet/Edit?infotype=@{{d.infotype}}">@{{ d.infoname}}</a>
    </script>
<!---注单管理-->
    <div class="layui-row">

        <!--<div class="layui-col-xs12 layui-col-sm2 layui-col-md2">
            <ul id="tree" class="tree-table-tree-box"></ul>
        </div> -->
        <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">

            <form class="layui-form rewrite" action="" eventType=eventForm>
                <div class="layui-form-item">

                    <div class="layui-inline">
						<label class="layui-form-label">{{ trans('notice.infoname') }}</label>
						<div class="layui-input-inline">
							<input type="text" name="infoname" id="infoname" lay-verify="required" autocomplete="off" class="layui-input">
						</div>
                    </div>
                    <div class="layui-inline">
						<!--<label class="layui-form-label">{{ trans('notice.infocontent') }}</label>
						<div class="layui-input-inline">
							<input type="text" name="infocontent" id="infocontent" lay-verify="required" autocomplete="off" class="layui-input">
						</div>-->

						<label class="layui-form-label">{{ trans('notice.status') }}</label>
						<div class="layui-input-inline">
							<select name="status"  id="status"  lay-verify="" autocomplete="off" class="layui-input" >
								<option value="">{{ trans('notice.select_status') }}</option>
								@foreach(trans('status.setinfo.status') as $k=>$v):
									<option value="{{$k}}">{{$v}}</option>
								@endforeach
							</select>
						</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;">提交</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>
            </form>
			@push('dataTableJS')
/*var active = {
    reload: function(){
      //执行重载
      table.reload('{{ $dataId }}', {
        page: {
          curr: 1 //重新从第 1 页开始
        }
        ,where: {
            infoname:$("#infoname").val(),
            infocontent:$('#infocontent').val(),
            status:$('#status').val(),
        }
      });
    }
  };
$('.lay-btn-diy').on('click', function(){
    var type = $(this).data('type');
    active[type] ? active[type].call(this) : '';
  });*/

  //重置表单
  $('.reset').on('click',function(){
	  $('input').val('');
	  $('#status').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

            @include('vip.datatable')
        </div>
    </div>

@endsection
