12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
- <jsp:include page="../../common/include.jsp" />
- <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
- <script type="text/javascript">
- /**列表显示区*/
- $(function() {
- $('#smsDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- pageSize:20,
- pageList : [ 10, 20, 30, 40, 50 ],
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- pagination:true,
- idField:'id',
- url:whzl.basePath + '/smsAction_listSms',
- toolbar:'#searchtool',
- checkOnSelect:true,
- selectOnCheck:true,
- singleSelect:true,
- loadFilter:function(result){
- if(result.success){
- console.log(result.obj)
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- }
- });
- });
-
- var statusFormatter = function(value , row , index){
- if(row.status=="1"){
- return "有效";
- }else{
- return "无效";
- }
- }
-
- var nameFormatter = function(value , row , index){
- return row.user.fullName;
- }
-
- /**查询*/
- function searchFun(){
- $("#smsDataGrid").datagrid("load", {
- "sms.phone":$("#tblQuery").find("input[id='phone']").val(),
- "sms.sendTime":$('#sendTime').datebox('getValue')
- });
-
- }
-
- /*清除查询条件**/
- function ClearQuery() {
- $("#tblQuery").find("input").val("");
- }
- </script>
- <div class="easyui-layout" data-options="fit:true,border:false">
- <div data-options="region:'center',border:false">
- <div id="searchtool" data-options="region:'north' , border:false">
- <table id="tblQuery" style="width:100%;font-size:12px;" >
- <tr>
- <td align="right" style="width: 12%"><span>发送号码</span></td>
- <td style="width: 10%"><input id="phone" name="sms.phone" type="text"/></td>
- <td align="right" style="width: 8%"><span>发送时间</span></td>
- <td style="width: 20%"><input id="sendTime" name="sendTime" class="easyui-datebox"/></td>
- <td style="width: 50%">
- <a href="javascript:searchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
- <a href="javascript:ClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
- </td>
- </tr>
- </table>
- </div>
-
- <table id="smsDataGrid">
- <thead>
- <tr>
- <th data-options="field:'id',checkbox:true,width:30">ID</th>
- <th data-options="field:'phone',width:100">发送号码</th>
- <th data-options="field:'name',width:100,formatter:nameFormatter">收信人</th>
- <th data-options="field:'sendTime',width:140">发送时间</th>
- <th data-options="field:'content',width:300">发送内容</th>
- <th data-options="field:'status',width:100,formatter:statusFormatter">验证码状态</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div id="setSmsDialog" data-options="title:' 个性化设置',iconCls:'icon-cog',width:500,height:370,modal:true,href:'<%=basePath %>/columnSetAction_toSet?tname=sms'">
- </div>
- <script type="text/javascript">
- $(function(){
- parent.$.messager.progress('close');
- })
- </script>
|