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

<div class="layui-row">

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

        <form class="layui-form" action="" eventType=eventForm>
            <div class="layui-form-item">
            <div class="layui-inline"><a href="\admin/menu/add"; class="layui-btn layui-btn-sm" >添加</a></div>
            <div class="layui-inline"><a href="javascript:delWin('/admin/menu/delete?id=');" class="layui-btn layui-btn-sm layui-btn-danger">{{ trans('common.delete') }}</a></div>
                <div class="layui-inline">

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

                <label class="layui-form-label">{{ trans('menu.navs_url') }}</label>
                <div class="layui-input-inline">
                    <input type="text" name="navs_url"  id="navs_url"  lay-verify="" autocomplete="off" class="layui-input">
                </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>
               </div>

            </div>
        </form>
    </div>
    </div>
@push('dataTableJS')
/*var active = {
    reload: function(){
      //执行重载
      table.reload('{{ $dataId }}', {
        page: {
          curr: 1 //重新从第 1 页开始
        }
        ,where: {
            name:$("#navs_name").val(),
            url:$('#navs_url').val(),
        }
      });
    }
  };
$('.lay-btn-diy').on('click', function(){
    var type = $(this).data('type');
    active[type] ? active[type].call(this) : '';
  });*/
@endpush

@include('vip.datatable')
@endsection
