+ |
<#if it.category! == 'sell'>
二手房
@@ -249,7 +254,7 @@
}
});
}
-
+
changeCity('${cityDisplay!}');
$(".hrefClick").click(function(){
@@ -336,8 +341,48 @@
$("#roomSpan").hide();
}
}
-
-
+
+ // 全选
+ $("#checkAll").click(function(){
+ $('input[name="houseCheck"]').each(function() {
+ var _this = this
+ if (_this.checked == true) {
+ _this.checked = false
+ } else {
+ _this.checked = true
+ }
+
+ })
+ })
+
+ $("#batchDelete").click(function(){
+ if(confirm('确认要删除所选的数据吗?')) {
+ var ids = "";
+ $('input:checkbox[name=houseCheck]:checked').each(function() {
+ var _this = $(this);
+ ids += _this.val() + ","
+ });
+ if (ids == "") {
+ alert("请选择数据")
+ return false;
+ }
+ jQuery.ajax({
+ type: 'POST',
+ url: '../seawater/batchDelete',
+ data:{ids:ids},
+ dataType: 'json',
+ timeout: 100000,
+ success: function(model) {
+ alert("批量删除操作成功");
+ location.reload();
+ },
+ error : function() {
+ //alert("操作失败");
+ }
+ });
+ }
+ });
+
|