rabin 5 months ago
parent
commit
b345a8e070
1 changed files with 17 additions and 1 deletions
  1. 17 1
      assets/lib/manage/main.js

+ 17 - 1
assets/lib/manage/main.js

@@ -2657,7 +2657,7 @@ function showAlert(msg, func, title, index, t)
 	var index = layer.open(config);
 }
 
-function fastEdit(e, url, title, col, index, type)
+function fastEdit(e, url, title, col, index, type, mul, mul_load)
 {
 	var func = function()
 	{
@@ -2669,6 +2669,22 @@ function fastEdit(e, url, title, col, index, type)
 		send.col = col;
 	}
 
+	if (mul) {
+		var ids = [];
+		$('.checkbox-checkall-list').each(function() {
+			if ($(this).get(0).checked) {
+				ids.push($(this).val())
+			}
+		})
+
+		if (ids.length <= 0) {
+			showAlert('您还没有选择数据');
+			return;
+		}
+		send.mul_ids = ids.join(',');
+		send.mul_load = mul_load;
+	}
+
 	$.get(url + '&fast=1',send,function(t)
 	{
 		var html = '';