...
|
...
|
@@ -33,7 +33,7 @@ var g = new common.grid({ |
|
|
{display: '操作', render: function(item) {
|
|
|
if (item.validFlag == 1) {
|
|
|
$('#add-btn').addClass('disabled');
|
|
|
return '<a class="btn btn-info end-btn" data-id="' + item.id + '" href="javascript:;">结束</a>';
|
|
|
return '<a class="btn btn-info end-btn" data-id="' + item.id + '" href="javascript:;">停止</a>';
|
|
|
} else {
|
|
|
return '活动已结束';
|
|
|
}
|
...
|
...
|
@@ -41,7 +41,7 @@ var g = new common.grid({ |
|
|
}}
|
|
|
]
|
|
|
});
|
|
|
g.init($("#gridurl").val());
|
|
|
/*g.init($("#gridurl").val());*/
|
|
|
|
|
|
$('#basicTable').on('click', '.end-btn', function() {
|
|
|
var activeId = $(this).data('id');
|
...
|
...
|
@@ -52,7 +52,16 @@ $('#basicTable').on('click', '.end-btn', function() { |
|
|
id: activeId
|
|
|
}
|
|
|
}, function(res){
|
|
|
$('#add-btn').removeAttr('disabled');
|
|
|
$('#add-btn').removeClass('disabled');
|
|
|
g.reload();
|
|
|
});
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
});
|
|
|
|
|
|
common.util.__ajax({
|
|
|
url: $("#gridurl").val(),
|
|
|
data:{
|
|
|
status: 1
|
|
|
}
|
|
|
}, function(res){
|
|
|
console.log(res);
|
|
|
}, true); |
|
|
\ No newline at end of file |
...
|
...
|
|