rabin 2 years ago
parent
commit
25482d9d46
1 changed files with 7 additions and 3 deletions
  1. 7 3
      assets/lib/manage/main.js

+ 7 - 3
assets/lib/manage/main.js

@@ -1642,9 +1642,11 @@ function checkbox()
 									self.parent().append('<input type="hidden" value="0" id="'+id+'" name="'+hidden+'" />');
 								}
 							} else {
+								/*
 								if ($('#' + id).length) {
 									$('#' + id).remove();
 								}
+								*/
 							}
 
 							form.render('checkbox');
@@ -2541,13 +2543,15 @@ function showLoad(id, value)
 				}
 			} else {
 				e.html(t.data);
-				layui.use(['form'], function(){
-					layui.form.render();
-				  });
 			}
 		} else {
 			e.html('');
 		}
+
+		layui.use(['form'], function(){
+			layui.form.render();
+		  });
+		checkbox();
 	});
 }
 var level_value = [];