用户,角色,权限增加是否启用,修补菜单排序
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user