|
@@ -9,7 +9,8 @@
|
|
|
<section class="content-header">
|
|
|
<h1>
|
|
|
<small>
|
|
|
- <button type="button" class="btn btn-primary" data-toggle="modal" onclick="delSelect()">批量删除</button>
|
|
|
+ <button type="button" class="btn btn-primary" data-toggle="modal" onclick="batchprocess(2)">批量删除</button>
|
|
|
+ <button type="button" class="btn btn-primary" data-toggle="modal" onclick="batchprocess(4)">批量发布</button>
|
|
|
</small>
|
|
|
</h1>
|
|
|
<ol class="breadcrumb">
|
|
@@ -174,7 +175,7 @@
|
|
|
})
|
|
|
});
|
|
|
//批量删除
|
|
|
- function delSelect(){
|
|
|
+ function batchprocess(state){
|
|
|
var ids=[];
|
|
|
$("#spiderwarn td input[type=checkbox]").each(function(){
|
|
|
if($(this).prop("checked")){
|
|
@@ -186,7 +187,7 @@
|
|
|
$.ajax({
|
|
|
url: "/lua/spiderupdate",
|
|
|
type: "post",
|
|
|
- data: {"ids":ids.join(",")},
|
|
|
+ data: {"ids":ids.join(","),"state":state},
|
|
|
success: function(r){
|
|
|
if(r&&r.success){
|
|
|
$("#selrow").prop('checked',false);
|
|
@@ -196,7 +197,11 @@
|
|
|
})
|
|
|
})
|
|
|
}else{
|
|
|
- alert("请选择要删除的数据!")
|
|
|
+ if(state == 2){
|
|
|
+ alert("请选择要删除的数据!")
|
|
|
+ }else if(state == 4){
|
|
|
+ alert("请选择要发布的数据!")
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|