|
|
@@ -551,6 +551,35 @@ layui.config({
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ BatchSetting: function () {
|
|
|
+ var checkStatus = table.checkStatus('LAY-list-manage'),
|
|
|
+ data = checkStatus.data; //得到选中的数据
|
|
|
+ if (data.length < 1) {
|
|
|
+ parent.layer.msg("请选择要设置的项");
|
|
|
+ } else {
|
|
|
+ var ids = "";
|
|
|
+ $.each(data, function (index, value) {
|
|
|
+ ids += data[index].Id + ",";
|
|
|
+ });
|
|
|
+ ids = ids.substring(0, ids.length - 1);
|
|
|
+ var index = layer.confirm('确定要为成功状态吗?', function (index) {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "/Admin/UserCashRecord/BatchSetting?r=" + Math.random(1),
|
|
|
+ data: "Id=" + ids,
|
|
|
+ dataType: "text",
|
|
|
+ success: function (data) {
|
|
|
+ layer.close(index);
|
|
|
+ if (data == "success") {
|
|
|
+ table.reload('LAY-list-manage');
|
|
|
+ } else {
|
|
|
+ layer.msg(data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
Open: function () {
|
|
|
var checkStatus = table.checkStatus('LAY-list-manage'),
|
|
|
data = checkStatus.data; //得到选中的数据
|