Authored by zhengwen.ge

update

@@ -176,6 +176,7 @@ public class HttpUriContants { @@ -176,6 +176,7 @@ public class HttpUriContants {
176 public static final String GET_PENDING_JOBS = "/pendingWork/getPendingJobs"; 176 public static final String GET_PENDING_JOBS = "/pendingWork/getPendingJobs";
177 public static final String GET_PENDING_JOB_BYUSER = "/pendingWork/getPendingJobByUser"; 177 public static final String GET_PENDING_JOB_BYUSER = "/pendingWork/getPendingJobByUser";
178 public static final String GET_WORKJOBS = "/works/getWorkJobs"; 178 public static final String GET_WORKJOBS = "/works/getWorkJobs";
  179 + public static final String GET_SMSLOG = "/sms/getSmsLogsByMobile";
179 180
180 //java服务重启 181 //java服务重启
181 public static final String JAVA_RESTART_GET = "/javaRestart/query"; 182 public static final String JAVA_RESTART_GET = "/javaRestart/query";
  1 +package com.ui.model.req;
  2 +
  3 +/**
  4 + * Created by yoho on 2016/11/29.
  5 + */
  6 +public class SmsLogReq extends PageRequest {
  7 +
  8 + private String mobile;
  9 +
  10 + public String getMobile() {
  11 + return mobile;
  12 + }
  13 +
  14 + public void setMobile(String mobile) {
  15 + this.mobile = mobile;
  16 + }
  17 +}
  1 +package com.ui.ctrl;
  2 +
  3 +import com.ui.contants.HttpUriContants;
  4 +import com.ui.http.HttpRestClient;
  5 +import com.ui.model.BaseResponse;
  6 +import com.ui.model.req.SmsLogReq;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.stereotype.Controller;
  9 +import org.springframework.web.bind.annotation.RequestMapping;
  10 +import org.springframework.web.bind.annotation.ResponseBody;
  11 +import org.springframework.web.servlet.ModelAndView;
  12 +
  13 +/**
  14 + * Created by yoho on 2016/11/29.
  15 + */
  16 +@Controller
  17 +@RequestMapping("sms")
  18 +public class SmsCtrl {
  19 +
  20 + @Autowired
  21 + HttpRestClient httpRestClient;
  22 +
  23 + @RequestMapping("/toSmsLog")
  24 + public ModelAndView getJobs() {
  25 + return new ModelAndView("sms/smsLog");
  26 + }
  27 +
  28 +
  29 + @RequestMapping("/getSmsLog")
  30 + @ResponseBody
  31 + public BaseResponse getSmsLog(SmsLogReq req) {
  32 + BaseResponse response = httpRestClient.defaultPost(HttpUriContants.GET_SMSLOG, req, BaseResponse.class);
  33 + return response;
  34 + }
  35 +}
  1 +<%@page language="java" contentType="text/html;charset=utf-8" %>
  2 +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3 +
  4 +<%
  5 + String path = request.getContextPath();
  6 + String basePath = request.getScheme() + "://"
  7 + + request.getServerName() + ":" + request.getServerPort()
  8 + + path + "/";
  9 +%>
  10 +
  11 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  12 +<html>
  13 +<head>
  14 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  15 + <link rel="stylesheet" href="<%=basePath %>css/bootstrap.min.css"/>
  16 + <link rel="stylesheet" href="<%=basePath %>css/bootstrap-datetimepicker.css"/>
  17 + <link href="<%=basePath %>js/bootstrap-plugin/css/bootstrap.table.css" rel="stylesheet" media="screen"/>
  18 + <link rel="stylesheet" href="<%=basePath %>css/bootstrap-responsive.min.css"/>
  19 + <link rel="stylesheet" href="<%=basePath %>css/fullcalendar.css"/>
  20 + <link rel="stylesheet" href="<%=basePath %>css/unicorn.main.css"/>
  21 + <link rel="stylesheet" href="<%=basePath %>css/unicorn.grey.css"/>
  22 + <link rel="stylesheet" href="<%=basePath %>css/jquery-ui.css"/>
  23 + <link rel="stylesheet" href="<%=basePath %>css/uniform.css"/>
  24 + <link rel="stylesheet" href="<%=basePath %>css/select2.css"/>
  25 + <link rel="stylesheet" href="<%=basePath %>js/jstree/themes/proton/style.css"/>
  26 + <link rel="stylesheet" href="<%=basePath %>css/select2.css"/>
  27 + <link rel="stylesheet" href="<%=basePath %>css/yoho.css"/>
  28 + <script src="<%=basePath %>js/excanvas.min.js" charset="UTF-8" type="text/javascript"></script>
  29 + <script src="<%=basePath %>js/jquery-1.12.0.min.js" charset="UTF-8" type="text/javascript"></script>
  30 + <script src="<%=basePath %>js/jquery-ui.custom.js" charset="UTF-8" type="text/javascript"></script>
  31 + <script src="<%=basePath %>/js/bootstrap.min.js"></script>
  32 + <script src="<%=basePath %>/js/unicorn.js"></script>
  33 + <script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/moment-with-locales.js" charset="UTF-8"
  34 + type="text/javascript"></script>
  35 + <script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/bootstrap-datetimepicker.js" charset="UTF-8"
  36 + type="text/javascript"></script>
  37 + <script src="<%=basePath %>js/global.js" charset="UTF-8" type="text/javascript"></script>
  38 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.pagination.js" charset="UTF-8"
  39 + type="text/javascript"></script>
  40 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.table.js" charset="UTF-8" type="text/javascript"></script>
  41 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.dialog.js" charset="UTF-8" type="text/javascript"></script>
  42 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.form.js" charset="UTF-8" type="text/javascript"></script>
  43 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.panel.js" charset="UTF-8" type="text/javascript"></script>
  44 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.alerts.js" charset="UTF-8" type="text/javascript"></script>
  45 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.accordion.js" charset="UTF-8"
  46 + type="text/javascript"></script>
  47 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.breadcrumb.js" charset="UTF-8"
  48 + type="text/javascript"></script>
  49 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.validate.js" charset="UTF-8"
  50 + type="text/javascript"></script>
  51 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.form.js" charset="UTF-8" type="text/javascript"></script>
  52 + <script src="<%=basePath %>js/layer/layer.js" charset="UTF-8" type="text/javascript"></script>
  53 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.select.js" charset="UTF-8" type="text/javascript"></script>
  54 + <script src="<%=basePath %>js/jstree/jstree.min.js"></script>
  55 + <script src="<%=basePath %>js/jquery.toaster.js"></script>
  56 + <script>
  57 + var contextPath = '<%=basePath %>';
  58 + </script>
  59 + <title>注册短信查询</title>
  60 +</head>
  61 +<body>
  62 +
  63 +<!-- 头部 -->
  64 +<div id="head">
  65 +</div>
  66 +<!-- 右侧具体内容 -->
  67 +<div id="content">
  68 +
  69 + <div id="breadcrumb">
  70 + <a href="#" title="Go to Home" class="tip-bottom"><i
  71 + class="icon-home"></i> Home</a> <a href="#" class="current">查询注册短信</a>
  72 + </div>
  73 +
  74 + <div class="container-fluid">
  75 +
  76 +
  77 + <div class="widget-box">
  78 + <div class="widget-title">
  79 + <h5>短信查询</h5>
  80 + </div>
  81 + <div class="widget-content nopadding">
  82 + <div class="widget-title" style="height: 53px;">
  83 + <div>
  84 + <div class="form-inline" role="form" id="inBoxQueryDiv"
  85 + style=" margin-top: 12px;margin-left: 25px;float: left;">
  86 + <div class="input-group" style="float: left;">
  87 + <span class="input-group-addon">手机号码:</span>
  88 + <input type="text" id="workid" name="workid" class="form-control" placeholder=""/>
  89 + </div>
  90 + <button id="searchBtn" class="btn btn-primary" style="margin-left: 18px;">搜索</button>
  91 + </div>
  92 + </div>
  93 + </div>
  94 + <div id="jobsTable">
  95 +
  96 + </div>
  97 + </div>
  98 + </div>
  99 + </div>
  100 +</div>
  101 +<script src="<%=basePath %>script/common/genarate_left_panel.js"></script>
  102 +<script>
  103 + $("#li_worksystem").addClass("active open");
  104 + $("#li_works").addClass("active");
  105 +</script>
  106 +<script>
  107 +
  108 + $(function () {
  109 + //加载表格
  110 + $("#jobsTable").table({
  111 + columnAutoWidth: false,
  112 + url: contextPath +"sms/getSmsLog",
  113 + striped: true,
  114 + title: "短信列表",
  115 + dataType: "json",
  116 + pagination: true,
  117 + pageSize: 10,
  118 + loadFilter: function (data) {
  119 + return defaultLoadFilter(data);
  120 + },
  121 + columns: [ {
  122 + title: "手机号码",
  123 + field: "mobile",
  124 + width: "10%"
  125 + }, {
  126 + title: "服务商",
  127 + field: "firstService",
  128 + formatter : function(value, rowData, rowIndex) {
  129 + if(value == '8'){
  130 + return '玄武';
  131 + }else if(value == '13'){
  132 + return '移通';
  133 + } else if(value == '24'){
  134 + return '玄武400';
  135 + }else{
  136 + return '国都'
  137 + }
  138 + },
  139 + width: "10%"
  140 + }, {
  141 + title: "发送内容",
  142 + field: "content",
  143 + width: "45%"
  144 + },{
  145 + title: "发送结果",
  146 + field: "firstServiceStatus",
  147 + formatter : function(value, rowData, rowIndex) {
  148 + if(value == '1'){
  149 + return '成功';
  150 + }else{
  151 + return '失败';
  152 + }
  153 + },
  154 + width: "15%"
  155 + },{
  156 + title: "时间",
  157 + field: "createTime",
  158 + width: "20%"
  159 + }]
  160 + });
  161 +
  162 + });
  163 +
  164 + //点击查询按钮
  165 + $("#searchBtn").click(function () {
  166 + var mobile = $("#workid").val();
  167 + $("#jobsTable").table("load", {
  168 + 'mobile': mobile
  169 + });
  170 + });
  171 +
  172 +</script>
@@ -85,8 +85,9 @@ innerHTML += "<li id='li_taskConfigure'><a id='li_taskConfigure_a' href=''>任 @@ -85,8 +85,9 @@ innerHTML += "<li id='li_taskConfigure'><a id='li_taskConfigure_a' href=''>任
85 innerHTML += "</ul></li>"; 85 innerHTML += "</ul></li>";
86 86
87 /*其他*/ 87 /*其他*/
88 -innerHTML += "<li id='li_others'><a id='li_others_a' href=''><i class='icon icon-th'></i> <span>其他</span></a></li>";  
89 -/*其他*/ 88 +innerHTML += "<li class='submenu' id='li_other'><a id='li_other_a' href='#'><i class='icon icon-th-list'></i> <span>其他</span><span class='label'>3</span></a>";
  89 +innerHTML += "<ul><li id='li_sms'><a id='li_sms_a' href=''>短信验证码</a></li>";
  90 +innerHTML += "</ul></li>";/*其他*/
90 91
91 innerHTML += "</ul></div>"; 92 innerHTML += "</ul></div>";
92 document.getElementById("head").innerHTML = innerHTML; 93 document.getElementById("head").innerHTML = innerHTML;
@@ -104,10 +105,9 @@ document.getElementById("li_rabbitview_a").setAttribute("href", path + "/rabbitm @@ -104,10 +105,9 @@ document.getElementById("li_rabbitview_a").setAttribute("href", path + "/rabbitm
104 /*document.getElementById("li_redisInfo_a").setAttribute("href", path + "/redisInfo/toRedisInfo");*/ 105 /*document.getElementById("li_redisInfo_a").setAttribute("href", path + "/redisInfo/toRedisInfo");*/
105 document.getElementById("li_nginxview_a").setAttribute("href", path + "/nginx/toNginxView"); 106 document.getElementById("li_nginxview_a").setAttribute("href", path + "/nginx/toNginxView");
106 document.getElementById("li_projectRelease_a").setAttribute("href", path + "/project/toProject"); 107 document.getElementById("li_projectRelease_a").setAttribute("href", path + "/project/toProject");
107 -document.getElementById("li_others_a").setAttribute("href", path + "/dashboard/toDashboard");  
108 document.getElementById("logout_a").setAttribute("href", path + "/user/logout"); 108 document.getElementById("logout_a").setAttribute("href", path + "/user/logout");
109 document.getElementById("changepwd_a").setAttribute("href", path + "/user/toupdatePwd"); 109 document.getElementById("changepwd_a").setAttribute("href", path + "/user/toupdatePwd");
110 -document.getElementById("li_others_a").setAttribute("href", path + "/dashboard/toOthers"); 110 +document.getElementById("li_sms_a").setAttribute("href", path + "/sms/toSmsLog");
111 document.getElementById("li_zkMonitor_a").setAttribute("href", path + "/zkTree/tozkMonitorList"); 111 document.getElementById("li_zkMonitor_a").setAttribute("href", path + "/zkTree/tozkMonitorList");
112 document.getElementById("li_user_a").setAttribute("href", path + "/manage/toUser"); 112 document.getElementById("li_user_a").setAttribute("href", path + "/manage/toUser");
113 document.getElementById("li_module_a").setAttribute("href", path + "/manage/toModule"); 113 document.getElementById("li_module_a").setAttribute("href", path + "/manage/toModule");