| | |
| | | </div> |
| | | |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-del" lay-event="del">删除</a> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">Изменить</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-del" lay-event="del">Удалить</a> |
| | | </script> |
| | | |
| | | <!-- 表单弹窗 --> |
| | |
| | | </div> |
| | | <hr class="layui-bg-gray"> |
| | | <div class="layui-form-item text-right"> |
| | | <button class="layui-btn" lay-filter="editSubmit" lay-submit="">保存</button> |
| | | <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> |
| | | <button class="layui-btn" lay-filter="editSubmit" lay-submit="">Сохранить</button> |
| | | <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">Отменить</button> |
| | | </div> |
| | | </form> |
| | | </script> |
| | |
| | | ,{field: 'code', align: 'center',title: '菜单编码'} |
| | | // ,{field: 'resourceName', align: 'center',title: '父级菜单'} |
| | | // ,{field: 'level$', align: 'center',title: '菜单等级'} |
| | | ,{field: 'type', align: 'center',title: '类型', templet: '#typeTpl', width: 120} |
| | | ,{field: 'type', align: 'center',title: 'Тип', templet: '#typeTpl', width: 120} |
| | | ,{field: 'sort', align: 'center',title: '排序'} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ,{field: 'status$', align: 'center',title: 'Статус'} |
| | | ,{fixed: 'right', title:'Операция', align: 'center', toolbar: '#operate', width:150} |
| | | ]], |
| | | done: function (data) { |
| | | $('.ew-tree-table-box').css('height', '100%'); |
| | |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: (mData ? '修改' : '添加') + '权限', |
| | | title: (mData ? 'Изменить' : 'Добавить') + '权限', |
| | | content: $('#editDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | // 回显表单数据 |