修复任务列表搜索功能

This commit is contained in:
郝大全
2017-07-18 18:09:21 +08:00
parent 980f49b486
commit 4640d29d7b
2 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ func (this *TaskController) List() {
}
filters := make([]interface{}, 0)
if groupId > 0 {
if groupId > 0 && groupId!=99 {
filters = append(filters, "group_id", groupId)
}
result, count := models.TaskGetList(page, this.pageSize, filters...)

View File

@@ -39,7 +39,7 @@
<div class=" btn-large pull-right" >
<form method="post" name="s" action="{{urlfor "TaskController.List"}}">
<select name="groupid" class="btn-large form-control">
<option value="0">全部分组</option>
<option value="99">全部分组</option>
{{range $k, $v := .groups}}
<option value="{{$v.Id}}" {{if eq $v.Id $.groupid}}selected{{end}} >{{$v.GroupName}}</option>
{{end}}