Authored by chenchao

add filter

... ... @@ -13,7 +13,7 @@
<select name="status" id="status" title="" class="form-control">
<option value="">启用状态</option>
<option value="1">启用</option>
<option value="2">未启用</option>
<option value="0">未启用</option>
</select>
</div>
<div class="panel-col">
... ...
... ... @@ -10,9 +10,11 @@ var g = new common.grid({
el: '#basicTable',
size: 10,
parms: function() {
return {
status: common.util.__input('status')
status: common.util.__input('status'),
is_valid:$("#is_valid").val(),
sort_type:$("#sort_type").val(),
title:common.util.__input('title')
};
},
columns: [{
... ... @@ -73,4 +75,9 @@ var g = new common.grid({
}
}]
})
g.init('/promotionInfo/list');
\ No newline at end of file
g.init('/promotionInfo/list');
//查询
$("#filter-btn").click(function() {
g.reload(1);
});
... ...