Authored by 姜敏

反馈管理-添加表头筛选项

... ... @@ -41,7 +41,7 @@ $('.hasDatepicker').fdatepicker({
var appVersion = {};
var replyPersonName = {};
var quick_select = {};
var status=-1;
var status="-1";
/**
* 列表
* @type {common.grid}
... ... @@ -52,7 +52,8 @@ var g = new common.grid({
if (data && data.data) {
quick_select = {
replyTotal: data.data.replyTotal,
unReplyTotal: data.data.unReplyTotal
unReplyTotal: data.data.unReplyTotal,
status:status
};
}
$("#quick").html(common.util.__template2($("#quick-search").html(), {quick_select:quick_select}));
... ... @@ -186,7 +187,7 @@ var Bll = {
id: id
}
}, function (res) {
console.log(res);
//console.log(res);
g.reload(1);
});
});
... ...
... ... @@ -107,14 +107,26 @@
<script type="text/template" id="quick-search">
<div class="pull-left">
<label class="radio-inline">
[[if quick_select.status=='-1']]
<input name="quick_select" type="radio" value="-1" checked="checked">全部
[[else]]
<input name="quick_select" type="radio" value="-1">全部
[[/if]]
</label>
<label class="radio-inline">
[[if quick_select.status=='0']]
<input name="quick_select" type="radio" value="0" checked="checked">未回复
[[else]]
<input name="quick_select" type="radio" value="0">未回复
[[/if]]
<span style="color:#0066CC;">[[quick_select.unReplyTotal]] </span>
</label>
<label class="radio-inline">
<input name="quick_select" type="radio" value="1">已回复
[[if quick_select.status=='1']]
<input name="quick_select" type="radio" value="1" checked="checked">已回复
[[else]]
<input name="quick_select" type="radio" value="1" >已回复
[[/if]]
<span style="color:#0066CC;"> [[quick_select.replyTotal]]</span>
</label>
</div>
... ...