用户,角色,权限增加是否启用,修补菜单排序

This commit is contained in:
mkg
2021-03-25 20:00:00 +08:00
parent 0672a13c0a
commit 2455351347
14 changed files with 818 additions and 79 deletions
+2 -2
View File
@@ -68,7 +68,7 @@
</script>
<script type="text/html" id="role-enable">
<input type="checkbox" name="enable" value="{{ "{{d.roleId}}" }}" lay-skin="switch" lay-text="启用|禁用" lay-filter="role-enable" {{ " {{d.enable== '0' ? 'checked' : '' }} " }}>
<input type="checkbox" name="enable" value="{{ "{{d.id}}" }}" lay-skin="switch" lay-text="启用|禁用" lay-filter="role-enable" {{"{{# if(d.enable==1){ }} checked {{# } }}"}}>
</script>
<script src="{{ url_for('static', filename='/admin/component/layui/layui.js') }}"></script>
@@ -144,7 +144,7 @@
}
let loading = layer.load()
$.ajax({
url: '/system/role/' + operate,
url: '/admin/role/' + operate,
data: JSON.stringify({roleId: this.value}),
dataType: 'json',
contentType: 'application/json',