Authored by mlge

任务管理--支持短信搜索

... ... @@ -8,4 +8,5 @@ import lombok.Data;
@Data
public class GateWayTaskReq extends PageRequest{
private String eventName;
private String sms;//支持按照短信搜索
}
... ...
... ... @@ -55,7 +55,7 @@ public class TaskConfigCtrl {
@RequestMapping("/getTaskConfigure")
@ResponseBody
public BaseResponse getTaskConfigure(PageRequest req) {
public BaseResponse getTaskConfigure(GateWayTaskReq req) {
BaseResponse response=httpRestClient.defaultPost(HttpUriContants.TASK__GETALL, req, BaseResponse.class);
return response;
}
... ...
... ... @@ -69,10 +69,17 @@
<h5>任务操作</h5>
</div>
<div class="widget-content nopadding">
<div class="widget-title" style="height: 53px;">
<div class="form-inline">
<a href="#" id="toAddTask" class="btn btn-success"
style="margin-top: 12px;margin-left: 0px;" onclick="editTask(0)">添加任务</a>
<div class="widget-title" style="height: 53px;margin-top: 12px;">
<div class="form-inline" role="form" id="inBoxQueryDiv">
<div class="input-group" style="float: left;margin-left: 5px">
<span class="input-group-addon">短信内容:</span>
<input type="text" id="smsSearch" name="smsSearch" class="form-control" placeholder="" />
</div>
<button id="btnSearch" class="btn btn-primary" style="margin-left: 10px" onclick="btnSearch()">
搜 索
</button>
<a href="#" id="toAddTask" class="btn btn-success" style="margin-left: 0px;" onclick="editTask(0)">添加任务</a>
</div>
</div>
</div>
... ... @@ -623,6 +630,12 @@
}
});
}
function btnSearch(){
var smsSearch = $.trim($("#smsSearch").val());
$("#taskTable").table("load", {'sms': smsSearch});
}
</script>
</body>
</html>
... ...