| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 标题 |
| | | */ |
| | | private String title; |
| | | |
| | | /** |
| | | * 权限名称 |
| | | */ |
| | | private String name; |
| | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | public String getTitle() { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) { |
| | | this.title = title; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {type: 'checkbox', fixed: 'left'} |
| | | // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} |
| | | //,{field: 'title', title: '标题', sort: true,align: 'center', fixed: 'left', width: 80} |
| | | ,{field: 'title', title: '标题', align: 'center',} |
| | | ,{field: 'name', align: 'center',title: '权限名称'} |
| | | ,{field: 'action', align: 'center',title: '接口地址'} |
| | | // ,{field: 'resourceName', align: 'center',title: '所属菜单',event: 'Resource', style: 'text-decoration: underline;cursor:pointer'} |
| | |
| | | shade: [0.5,'#000'] //0.1透明度的背景 |
| | | }); |
| | | var data = { |
| | | title: $('#title').val(), |
| | | id: $('#id').val(), |
| | | name: $('#name').val(), |
| | | action: $('#action').val(), |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:31%;"> |
| | | <label class="layui-form-label"><span class="not-null">*</span>标题:</label> |
| | | <div class="layui-input-inline"> |
| | | <input id="title" class="layui-input" type="text" placeholder="标题" lay-verify="required" > |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width:31%;"> |
| | | <label class="layui-form-label"><span class="not-null">*</span>权限名称:</label> |
| | | <div class="layui-input-inline"> |
| | | <input id="name" class="layui-input" type="text" placeholder="权限名称" lay-verify="required" > |