Commit 5a7cf2e2 by liuyongshuai

修改批量授权的一个问题;修改批量授权提示的样式

parent 85ec004e
...@@ -235,7 +235,6 @@ ...@@ -235,7 +235,6 @@
}) })
}); });
function removeUser(obj) { function removeUser(obj) {
console.log(obj);
var checkboxs, origin, target, num = 0; var checkboxs, origin, target, num = 0;
if ($(obj).hasClass('right')) { if ($(obj).hasClass('right')) {
origin = $('.layui-table-main'); origin = $('.layui-table-main');
...@@ -254,17 +253,17 @@ ...@@ -254,17 +253,17 @@
$(checkboxs[i]).parents("tr").find("td").each(function () { $(checkboxs[i]).parents("tr").find("td").each(function () {
if($(this).attr("data-field")=="id"){ if($(this).attr("data-field")=="id"){
idStr = $(this).find("div").text(); idStr = $(this).find("div").text();
console.log("id:"+idStr);
} }
}); });
target.each(function () { target.find('.layui-form-checkbox').each(function () {
if($(this).attr("data-field")=="id"){ $(this).parents("tr").find("td").each(function () {
if(idStr ==$(this).find("div").text()){ if(idStr ==$(this).find("div").text()){
//如果已经有该用户,则不再允许移动
running = true; running = true;
return; return;
};
} }
}); });
});
} }
} }
......
...@@ -33,3 +33,6 @@ ...@@ -33,3 +33,6 @@
.layui-layer-dialog>.layui-layer-content{ .layui-layer-dialog>.layui-layer-content{
color: black; color: black;
} }
.layui-layer-msg{
background: rgba(235, 235, 235, 0.82);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment