rabin 11 months ago
parent
commit
2242db2ba6
2 changed files with 25 additions and 5 deletions
  1. 9 2
      assets/lib/layui/admin/style/admin.css
  2. 16 3
      assets/lib/manage/main.js

+ 9 - 2
assets/lib/layui/admin/style/admin.css

@@ -33,12 +33,18 @@
   border-bottom: 1px solid #E8E8E8;
 }
 .order-info ul li {
+/*
   width: 33.33%;
   box-sizing: border-box;
   padding: 14px 10px 14px 0;
+  */
+
+      width: 20%;
+    box-sizing: border-box;
+    padding: 3px 23px 12px 0px;
 }
 .order-info ul li label {
-  color: rgba(0, 0, 0, 0.85);
+  /*color: rgba(0, 0, 0, 0.85);*/
 }
 .order-info ul li span{
   /*color: #a5a5a5;*/
@@ -124,7 +130,8 @@
   width: 100%;
 }
 .dls-user-info {
-  width: 33.33%;
+  width: 20%;
+  display: inline-block;
   margin-bottom: 20px;
 }
 .dls-user-info h3 {

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

@@ -1155,7 +1155,12 @@ function loading(e, data, type)
 		$.getJSON(data.url + '&json=1', data, function(s) {
 			t = s.data;
 			if (typeof(t) == 'object') {
-				
+				var r = t.remove;
+				if (r) {
+					for(var i in r) {
+						$(r[i]).remove();
+					}
+				}
 				var o = t.option;
 				if (o) {
 					for (var i in o) {
@@ -2482,6 +2487,13 @@ function showAlert(msg, func, title, index, t)
 		layer.close(index);
 	};
 
+	if (msg.indexOf('保存成功') != -1) {
+		config.end = function(index)
+		{
+			layer.closeAll();
+		};
+	}
+
 	
 	if (func) {
 		config.yes = function(index)
@@ -3625,8 +3637,9 @@ function append(self, id)
 	total += append_total;
 	html = html.replaceAll('_-1_', '_' + total + '_');
 	html = html.replaceAll('up_', 'update_');
-	id = 'update_' + id + '_c_' + total;
-	parent.append('<tr id="'+id+'">' + html + '</tr>');
+	var class_name = 'update_' + id;
+	id = class_name + '_c_' + total;
+	parent.append('<tr id="'+id+'" class="'+class_name+'">' + html + '</tr>');
 	form.render();
 	/*
 	$('#' + id + " select").each(function()