修复任务列表搜索功能
This commit is contained in:
@@ -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...)
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user