diff --git a/Application/Admin/View/Permission/rule.html b/Application/Admin/View/Permission/rule.html
index 37b0638..1304df7 100644
--- a/Application/Admin/View/Permission/rule.html
+++ b/Application/Admin/View/Permission/rule.html
@@ -7,21 +7,21 @@
-
+
@@ -39,13 +39,14 @@
layui.use('form', function(){
var form = layui.form();
form.on('checkbox(admin-check)', function(data){
+ var dataId = $(this).attr('data-id');
var $el = data.elem;
if( $el.checked ){
- $('input[fid="'+$el.value+'"]').prop('checked','checked');
- $('input[pid="'+$el.value+'"]').prop('checked','checked');
+ $('input[fid="'+dataId+'"]').prop('checked','checked');
+ $('input[pid="'+dataId+'"]').prop('checked','checked');
}else{
- $('input[fid="'+$el.value+'"]').prop('checked', false);
- $('input[pid="'+$el.value+'"]').prop('checked', false);
+ $('input[fid="'+dataId+'"]').prop('checked', false);
+ $('input[pid="'+dataId+'"]').prop('checked', false);
}
form.render();
});