Commit 7de26c704906e20641dc2299d080719cce8bf410

Authored by 王言钊
1 parent 5939bd64

增加 审核通过 拒绝功能

src/main/java/com/cnlive/shenhe/controller/LiveController.java
@@ -268,7 +268,7 @@ public class LiveController extends BaseController { @@ -268,7 +268,7 @@ public class LiveController extends BaseController {
268 */ 268 */
269 @PostMapping("/repulse") 269 @PostMapping("/repulse")
270 @ResponseBody 270 @ResponseBody
271 - public ResponseBean repulse(String ids, String msg, HttpSession session) { 271 + public ResponseBean repulse(String ids, String msg, Integer status, HttpSession session) {
272 SessionUser sessionUser = (SessionUser) session.getAttribute(SessionUser.getSessionKey()); 272 SessionUser sessionUser = (SessionUser) session.getAttribute(SessionUser.getSessionKey());
273 String userId = sessionUser.getUserId(); 273 String userId = sessionUser.getUserId();
274 ResponseBean responseBean = new ResponseBean(); 274 ResponseBean responseBean = new ResponseBean();
@@ -278,7 +278,7 @@ public class LiveController extends BaseController { @@ -278,7 +278,7 @@ public class LiveController extends BaseController {
278 ShyLive shyLive = liveService.selectByPrimaryKey(Integer.parseInt(shyLiveId)); 278 ShyLive shyLive = liveService.selectByPrimaryKey(Integer.parseInt(shyLiveId));
279 JSONObject result = null; 279 JSONObject result = null;
280 try { 280 try {
281 - result = pass.livePass(shyLive.getActivity_id(), 6, msg, msg, shyLive.getCallback()); 281 + result = pass.livePass(shyLive.getActivity_id(), status, msg, msg, shyLive.getCallback());
282 } catch (Exception e) { 282 } catch (Exception e) {
283 logger.error("直播视频审核失败,id==" + shyLiveId, e); 283 logger.error("直播视频审核失败,id==" + shyLiveId, e);
284 showMsg = showMsg + "," + shyLive.getActivity_id() + " 拒绝请求失败"; 284 showMsg = showMsg + "," + shyLive.getActivity_id() + " 拒绝请求失败";
@@ -295,7 +295,7 @@ public class LiveController extends BaseController { @@ -295,7 +295,7 @@ public class LiveController extends BaseController {
295 showMsg = showMsg + "," + shyLive.getActivity_id() + " " + result.getString(" errorMessage"); 295 showMsg = showMsg + "," + shyLive.getActivity_id() + " " + result.getString(" errorMessage");
296 break; 296 break;
297 } 297 }
298 - int i = liveService.updateLive(Integer.parseInt(shyLiveId), userId, "", 4, msg); 298 + int i = liveService.updateLive(Integer.parseInt(shyLiveId), userId, "", status == 3 ? 3 : 4, msg);
299 if (i == 0) { 299 if (i == 0) {
300 showMsg = showMsg + "," + shyLive.getActivity_id() + " 更新失败"; 300 showMsg = showMsg + "," + shyLive.getActivity_id() + " 更新失败";
301 break; 301 break;
src/main/resources/templates/page/live.html
@@ -2,325 +2,341 @@ @@ -2,325 +2,341 @@
2 <html lang="zh" xmlns:th="http://www.thymeleaf.org"> 2 <html lang="zh" xmlns:th="http://www.thymeleaf.org">
3 3
4 <head th:replace="../templates/common/head::head"> 4 <head th:replace="../templates/common/head::head">
5 -<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->  
6 -<!-- <link rel="stylesheet" -->  
7 -<!-- href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" -->  
8 -<!-- integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" -->  
9 -<!-- crossorigin="anonymous"> --> 5 + <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
  6 + <!-- <link rel="stylesheet" -->
  7 + <!-- href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" -->
  8 + <!-- integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" -->
  9 + <!-- crossorigin="anonymous"> -->
10 </head> 10 </head>
11 11
12 <body class="hold-transition skin-blue sidebar-mini"> 12 <body class="hold-transition skin-blue sidebar-mini">
13 13
14 - <div class="wrapper">  
15 - <div th:replace="../templates/common/frame::frame"></div>  
16 - <div class="content-wrapper" style="min-height: 788px;">  
17 - <section class="content-header">  
18 - <h1>直播审核</h1>  
19 - <ol class="breadcrumb">  
20 - <li><a href="/"><i class="fa fa-dashboard"></i> 首页</a></li>  
21 - <li class="active"><a href="/live/page?activity_status=1">直播审核</a></li>  
22 - </ol>  
23 - </section>  
24 - <section class="content">  
25 - <div class="row">  
26 - <div class="col-md-12">  
27 - <div class="box box-info">  
28 - <div class="box-body">  
29 - <div class="clearfix">  
30 - <div class="btn-group margin-bottom" id="hide_select_area_2">  
31 - <div class="cb-toolbar">  
32 - <input type="checkbox" id="select_all">全选  
33 - </div>  
34 - <div class="btn-group margin-bottom pull-left" style=>  
35 - <input type="hidden" name="state" id="state" value="" />  
36 -  
37 - <button type="button"  
38 - class="btn btn-success btn-sm margin-r-5 action claim"  
39 - value="2" data="claim" id="claim" data-toggle="modal"  
40 - data-target="#modal" onclick="receive(0);">认领</button>  
41 - <button type="button"  
42 - class="btn btn-success btn-sm margin-r-5 action claim"  
43 - value="2" data="claim10" id="claim10" data-toggle="modal"  
44 - data-target="#modal" onclick="receive(10);">认领10条</button>  
45 - <button type="button"  
46 - class="btn btn-success btn-sm margin-r-5 action claim"  
47 - value="2" data="claim100" id="claim100"  
48 - data-toggle="modal" data-target="#modal" onclick="receive(100);">认领100条</button>  
49 - </div>  
50 - </div>  
51 -  
52 - <div class="btn-group margin-bottom pull-right">  
53 - <button type="button" class="btn btn-success btn-sm margin-r-5 filter "  
54 - th:onclick="'javascript:daochu()'" value="" id="excel">导出excel 14 +<div class="wrapper">
  15 + <div th:replace="../templates/common/frame::frame"></div>
  16 + <div class="content-wrapper" style="min-height: 788px;">
  17 + <section class="content-header">
  18 + <h1>直播审核</h1>
  19 + <ol class="breadcrumb">
  20 + <li><a href="/"><i class="fa fa-dashboard"></i> 首页</a></li>
  21 + <li class="active"><a href="/live/page?activity_status=1">直播审核</a></li>
  22 + </ol>
  23 + </section>
  24 + <section class="content">
  25 + <div class="row">
  26 + <div class="col-md-12">
  27 + <div class="box box-info">
  28 + <div class="box-body">
  29 + <div class="clearfix">
  30 + <div class="btn-group margin-bottom" id="hide_select_area_2">
  31 + <div class="cb-toolbar">
  32 + <input type="checkbox" id="select_all">全选
  33 + </div>
  34 + <div class="btn-group margin-bottom pull-left" style=>
  35 + <input type="hidden" name="state" id="state" value=""/>
  36 +
  37 + <button type="button"
  38 + class="btn btn-success btn-sm margin-r-5 action claim"
  39 + value="2" data="claim" id="claim" data-toggle="modal"
  40 + data-target="#modal" onclick="receive(0);">认领
  41 + </button>
  42 + <button type="button"
  43 + class="btn btn-success btn-sm margin-r-5 action claim"
  44 + value="2" data="claim10" id="claim10" data-toggle="modal"
  45 + data-target="#modal" onclick="receive(10);">认领10条
  46 + </button>
  47 + <button type="button"
  48 + class="btn btn-success btn-sm margin-r-5 action claim"
  49 + value="2" data="claim100" id="claim100"
  50 + data-toggle="modal" data-target="#modal" onclick="receive(100);">认领100条
55 </button> 51 </button>
56 - <button type="button" class="btn btn-sm margin-r-5 filter >"  
57 - value="0" th:onclick="'javascript:quanbu()'" id="quanbu">查询</button>  
58 - <button type="button"  
59 - class="btn btn-sm margin-r-5 filter " id="daishen" value="0">全部待领  
60 - </button>  
61 - <button type="button"  
62 - class="btn btn-sm margin-r-5 filter " id="Mydaishen" value="0">我的待审  
63 - </button>  
64 - <button type="button"  
65 - class="btn btn-sm margin-r-5 filter " id="yishen" value="1">我的已审  
66 - </button>  
67 - <button type="button"  
68 - class="btn btn-primary btn-sm margin-r-5" id="query"  
69 - onclick="openOrClose('forms')">  
70 - 查询 <span id="a_up">▼</span><span id="a_down">▲</span>  
71 - </button>  
72 - </div>  
73 -  
74 - </div>  
75 -  
76 - <div class="clearfix">  
77 - <div class="form-horizontal form-group-sm" id="forms"  
78 - style="display: none;">  
79 - <div class="btn-group margin-bottom col-md-7"  
80 - style="padding: 0;">  
81 - <div class="col-md-3" style="padding: 0">  
82 - <label for="activity_name" class="control-label cb-toolbar">直播名称:</label>  
83 - <div class="col-sm-7" style="padding: 0;">  
84 - <input class="form-control col-sm-2" name="activity_name"  
85 - type="text" id="activity_name">  
86 - </div>  
87 - </div>  
88 - <div class="col-md-3" style="padding: 0">  
89 - <label for="activity_id" class="control-label cb-toolbar">直播id:</label>  
90 - <div class="col-sm-7" style="padding: 0;">  
91 - <input class="form-control" name="activity_id" type="text"  
92 - id="activity_id">  
93 - </div>  
94 - </div>  
95 -  
96 - <div class="col-md-3" style="padding: 0" th:if="${session.sessionUser.spid==0}">  
97 - <label for="contentId" class="control-label cb-toolbar">内容id:</label>  
98 - <div class="col-sm-7" style="padding: 0;">  
99 - <input class="form-control" name="contentId" type="text"  
100 - id="contentId">  
101 - </div>  
102 - </div>  
103 -  
104 -<!-- <div class="col-md-3" style="padding: 0"> -->  
105 -<!-- <label for="is_hot" class="control-label cb-toolbar">是否热点:</label> -->  
106 -<!-- <div class="col-sm-6" style="padding: 0;"> -->  
107 -<!-- <select class="form-control" id="is_hot" name="is_hot"><option -->  
108 -<!-- value="0">全部</option> -->  
109 -<!-- <option value="2">是</option> -->  
110 -<!-- <option value="1">否</option></select> -->  
111 -<!-- </div> -->  
112 -<!-- </div> -->  
113 -  
114 - <div class="col-md-6" style="padding: 0;width: 25%;" th:if="${session.sessionUser.spid==0}"> 52 + </div>
  53 + </div>
  54 +
  55 + <div class="btn-group margin-bottom pull-right">
  56 + <button type="button" class="btn btn-success btn-sm margin-r-5 filter "
  57 + th:onclick="'javascript:daochu()'" value="" id="excel">导出excel
  58 + </button>
  59 + <button type="button" class="btn btn-sm margin-r-5 filter >"
  60 + value="0" th:onclick="'javascript:quanbu()'" id="quanbu">查询
  61 + </button>
  62 + <button type="button"
  63 + class="btn btn-sm margin-r-5 filter " id="daishen" value="0">全部待领
  64 + </button>
  65 + <button type="button"
  66 + class="btn btn-sm margin-r-5 filter " id="Mydaishen" value="0">我的待审
  67 + </button>
  68 + <button type="button"
  69 + class="btn btn-sm margin-r-5 filter " id="yishen" value="1">我的已审
  70 + </button>
  71 + <button type="button"
  72 + class="btn btn-primary btn-sm margin-r-5" id="query"
  73 + onclick="openOrClose('forms')">
  74 + 查询 <span id="a_up">▼</span><span id="a_down">▲</span>
  75 + </button>
  76 + </div>
  77 +
  78 + </div>
  79 +
  80 + <div class="clearfix">
  81 + <div class="form-horizontal form-group-sm" id="forms"
  82 + style="display: none;">
  83 + <div class="btn-group margin-bottom col-md-7"
  84 + style="padding: 0;">
  85 + <div class="col-md-3" style="padding: 0">
  86 + <label for="activity_name" class="control-label cb-toolbar">直播名称:</label>
  87 + <div class="col-sm-7" style="padding: 0;">
  88 + <input class="form-control col-sm-2" name="activity_name"
  89 + type="text" id="activity_name">
  90 + </div>
  91 + </div>
  92 + <div class="col-md-3" style="padding: 0">
  93 + <label for="activity_id" class="control-label cb-toolbar">直播id:</label>
  94 + <div class="col-sm-7" style="padding: 0;">
  95 + <input class="form-control" name="activity_id" type="text"
  96 + id="activity_id">
  97 + </div>
  98 + </div>
  99 +
  100 + <div class="col-md-3" style="padding: 0" th:if="${session.sessionUser.spid==0}">
  101 + <label for="contentId" class="control-label cb-toolbar">内容id:</label>
  102 + <div class="col-sm-7" style="padding: 0;">
  103 + <input class="form-control" name="contentId" type="text"
  104 + id="contentId">
  105 + </div>
  106 + </div>
  107 +
  108 + <!-- <div class="col-md-3" style="padding: 0"> -->
  109 + <!-- <label for="is_hot" class="control-label cb-toolbar">是否热点:</label> -->
  110 + <!-- <div class="col-sm-6" style="padding: 0;"> -->
  111 + <!-- <select class="form-control" id="is_hot" name="is_hot"><option -->
  112 + <!-- value="0">全部</option> -->
  113 + <!-- <option value="2">是</option> -->
  114 + <!-- <option value="1">否</option></select> -->
  115 + <!-- </div> -->
  116 + <!-- </div> -->
  117 +
  118 + <div class="col-md-6" style="padding: 0;width: 25%;"
  119 + th:if="${session.sessionUser.spid==0}">
115 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> 120 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label>
116 <div class="col-sm-8" style="padding: 0;"> 121 <div class="col-sm-8" style="padding: 0;">
117 <input class="form-control" type="text" value="" id="sp_desc"> 122 <input class="form-control" type="text" value="" id="sp_desc">
118 </div> 123 </div>
119 </div> 124 </div>
120 - <div class="col-md-3" style="padding: 0">  
121 - <label for="activity_status"  
122 - class="control-label cb-toolbar">直播状态:</label>  
123 - <div class="col-sm-6" style="padding: 0;">  
124 - <select class="form-control col-sm-2" id="activity_status"  
125 - name="activity_status"><option value="">全部</option>  
126 - <option value="3">等待直播</option>  
127 - <option value="1">正在直播</option>  
128 - <option value="2">直播结束</option>  
129 - <option value="0">直播撤销</option>  
130 - <option value="4">直播下线</option></select>  
131 - </div>  
132 - </div>  
133 -  
134 - </div>  
135 -  
136 - <div class="btn-group margin-bottom col-md-5 pull-right"  
137 - style="padding: 0">  
138 - <div class="col-md-11" style="width: 88%; padding: 0;">  
139 - <div class="col-md-5" style="padding: 0">  
140 - <label for="start_date" class="control-label cb-toolbar">时间:</label>  
141 - <div class='input-group col-md-9 date'>  
142 - <input class="form-control date" name="start_date"  
143 - type="text" id="start_date"> <span  
144 - class="input-group-addon"> <span  
145 - class="glyphicon glyphicon-calendar"></span> 125 + <div class="col-md-3" style="padding: 0">
  126 + <label for="activity_status"
  127 + class="control-label cb-toolbar">直播状态:</label>
  128 + <div class="col-sm-6" style="padding: 0;">
  129 + <select class="form-control col-sm-2" id="activity_status"
  130 + name="activity_status">
  131 + <option value="">全部</option>
  132 + <option value="3">等待直播</option>
  133 + <option value="1">正在直播</option>
  134 + <option value="2">直播结束</option>
  135 + <option value="0">直播撤销</option>
  136 + <option value="4">直播下线</option>
  137 + </select>
  138 + </div>
  139 + </div>
  140 +
  141 + </div>
  142 +
  143 + <div class="btn-group margin-bottom col-md-5 pull-right"
  144 + style="padding: 0">
  145 + <div class="col-md-11" style="width: 88%; padding: 0;">
  146 + <div class="col-md-5" style="padding: 0">
  147 + <label for="start_date" class="control-label cb-toolbar">时间:</label>
  148 + <div class='input-group col-md-9 date'>
  149 + <input class="form-control date" name="start_date"
  150 + type="text" id="start_date"> <span
  151 + class="input-group-addon"> <span
  152 + class="glyphicon glyphicon-calendar"></span>
146 </span> 153 </span>
147 - </div>  
148 - </div>  
149 - <div class="col-md-5" style="padding: 0">  
150 - <label for="start_date" class="control-label cb-toolbar">至</label>  
151 - <div class='input-group col-md-9 date'>  
152 - <input class="form-control date" name="end_date"  
153 - type="text" id="end_date"> <span class="input-group-addon"> 154 + </div>
  155 + </div>
  156 + <div class="col-md-5" style="padding: 0">
  157 + <label for="start_date" class="control-label cb-toolbar">至</label>
  158 + <div class='input-group col-md-9 date'>
  159 + <input class="form-control date" name="end_date"
  160 + type="text" id="end_date"> <span class="input-group-addon">
154 <span class="glyphicon glyphicon-calendar"></span> 161 <span class="glyphicon glyphicon-calendar"></span>
155 </span> 162 </span>
156 - </div>  
157 - </div>  
158 - </div>  
159 -  
160 -<!-- <div class="col-md-1 text-center" -->  
161 -<!-- style="width: 12%; padding: 0"> -->  
162 -<!-- <button type="button" class="btn btn-primary btn-sm" -->  
163 -<!-- id="live_query" onclick="query()">查 询</button> -->  
164 -<!-- </div> -->  
165 -  
166 - </div>  
167 -  
168 - <div class="btn-group margin-bottom col-md-6"  
169 - style="padding: 0;"></div>  
170 - </div>  
171 - </div>  
172 -  
173 - <div class="modal fade common" id="modal_remove" tabindex="-1"  
174 - role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">  
175 - <div class="modal-dialog">  
176 - <div class="modal-content">  
177 - <div class="modal-header">  
178 - <button type="button" class="close" data-dismiss="modal"  
179 - aria-hidden="true">&times;</button>  
180 - <h4 class="modal-title" id="modal_title"></h4>  
181 - </div>  
182 - <div class="modal-body">  
183 - <div class="alert alert-danger" id="window_msg"  
184 - style="display: none;">  
185 - <p></p>  
186 - </div>  
187 - <div id="contents"></div>  
188 - </div>  
189 - </div>  
190 - </div>  
191 - </div>  
192 -  
193 - <div class="fixed-table-container" style="padding-bottom: 0px;">  
194 - <div class="fixed-table-body">  
195 - <table id="table">  
196 - <div>  
197 - <div class="col-xs-3 col-lg-3 margin-bottom action" th:each="live : ${livePage.list}">  
198 -<!-- <a href="#" class="thumbnail margin-bottom" -->  
199 -<!-- th:onclick="@{'preview(\''+${live.rtmp_url}+'\')'}"> -->  
200 -<!-- <div style="text-align: center"> -->  
201 -<!-- <img th:src='@{${live.cover_img_url}}' -->  
202 -<!-- alt="封面图" width="134px" height="100px"> -->  
203 -<!-- </div> -->  
204 -  
205 -<!-- </a> -->  
206 - <div class="form-group" th:if="${live.activity_status != 1 }">  
207 - <div style="height: 22vmin">  
208 - <img th:src='@{${live.cover_img_url}}' th:onclick="'detail('+${live.id}+')'"  
209 - alt="封面图" width="100%" height="100%">  
210 - </div>  
211 -  
212 - </div>  
213 - <div class="form-group" th:if="${live.activity_status== 1 }">  
214 - <div style="height: 22vmin">  
215 - <embed name="cnlive" width="100%" height="100%" id="cnlive"  
216 - src="http://data.cnlive.com/export/UuidPlayerMain.swf"  
217 - th:flashVars="@{'hasBorder=false&appid=82_irej0pbo53&type=live&model=2&videoURL='+${live.rtmp_url}}"  
218 - type="application/x-shockwave-flash" wmode="window"  
219 - quility="high" allowscriptaccess="always"  
220 - allowfullscreen="true">  
221 - </div>  
222 -  
223 - </div>  
224 - <div>  
225 - <p style="line-height: 0">  
226 - <span class="text-success" th:text="${live.shenhe_state==2?'已审':'待审'}">待审</span>  
227 - <span class="text-primary pull-right"  
228 - th:text="${#dates.format(live.pre_start_time, 'yyyy-MM-dd HH:mm:ss')}">2019-06-26 14:56:33</span>  
229 - </p>  
230 - <p class="info-box-text">  
231 - <input type="checkbox" class="check" th:value="${live.id}" name="btSelectItem">  
232 - <span th:text="${live.activity_name}">国新办举行新时代人民满意公务员代表中外记者见面会</span>  
233 - </p>  
234 - <p class="info-box-text">  
235 - <span style="float: left;">id:<span th:text="${live.id}">10225</span></span>  
236 - <span style="float: right;"> <span style="margin-left: 40px;">&nbsp;&nbsp; 163 + </div>
  164 + </div>
  165 + </div>
  166 +
  167 + <!-- <div class="col-md-1 text-center" -->
  168 + <!-- style="width: 12%; padding: 0"> -->
  169 + <!-- <button type="button" class="btn btn-primary btn-sm" -->
  170 + <!-- id="live_query" onclick="query()">查 询</button> -->
  171 + <!-- </div> -->
  172 +
  173 + </div>
  174 +
  175 + <div class="btn-group margin-bottom col-md-6"
  176 + style="padding: 0;"></div>
  177 + </div>
  178 + </div>
  179 +
  180 + <div class="modal fade common" id="modal_remove" tabindex="-1"
  181 + role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  182 + <div class="modal-dialog">
  183 + <div class="modal-content">
  184 + <div class="modal-header">
  185 + <button type="button" class="close" data-dismiss="modal"
  186 + aria-hidden="true">&times;
  187 + </button>
  188 + <h4 class="modal-title" id="modal_title"></h4>
  189 + </div>
  190 + <div class="modal-body">
  191 + <div class="alert alert-danger" id="window_msg"
  192 + style="display: none;">
  193 + <p></p>
  194 + </div>
  195 + <div id="contents"></div>
  196 + </div>
  197 + </div>
  198 + </div>
  199 + </div>
  200 +
  201 + <div class="fixed-table-container" style="padding-bottom: 0px;">
  202 + <div class="fixed-table-body">
  203 + <table id="table">
  204 + <div>
  205 + <div class="col-xs-3 col-lg-3 margin-bottom action"
  206 + th:each="live : ${livePage.list}">
  207 + <!-- <a href="#" class="thumbnail margin-bottom" -->
  208 + <!-- th:onclick="@{'preview(\''+${live.rtmp_url}+'\')'}"> -->
  209 + <!-- <div style="text-align: center"> -->
  210 + <!-- <img th:src='@{${live.cover_img_url}}' -->
  211 + <!-- alt="封面图" width="134px" height="100px"> -->
  212 + <!-- </div> -->
  213 +
  214 + <!-- </a> -->
  215 + <div class="form-group" th:if="${live.activity_status != 1 }">
  216 + <div style="height: 22vmin">
  217 + <img th:src='@{${live.cover_img_url}}'
  218 + th:onclick="'detail('+${live.id}+')'"
  219 + alt="封面图" width="100%" height="100%">
  220 + </div>
  221 +
  222 + </div>
  223 + <div class="form-group" th:if="${live.activity_status== 1 }">
  224 + <div style="height: 22vmin">
  225 + <embed name="cnlive" width="100%" height="100%" id="cnlive"
  226 + src="http://data.cnlive.com/export/UuidPlayerMain.swf"
  227 + th:flashVars="@{'hasBorder=false&appid=82_irej0pbo53&type=live&model=2&videoURL='+${live.rtmp_url}}"
  228 + type="application/x-shockwave-flash" wmode="window"
  229 + quility="high" allowscriptaccess="always"
  230 + allowfullscreen="true">
  231 + </div>
  232 +
  233 + </div>
  234 + <div>
  235 + <p style="line-height: 0">
  236 + <span class="text-success"
  237 + th:text="${live.shenhe_state==2?'已审':'待审'}">待审</span>
  238 + <span class="text-primary pull-right"
  239 + th:text="${#dates.format(live.pre_start_time, 'yyyy-MM-dd HH:mm:ss')}">2019-06-26 14:56:33</span>
  240 + </p>
  241 + <p class="info-box-text">
  242 + <input type="checkbox" class="check" th:value="${live.id}"
  243 + name="btSelectItem">
  244 + <span th:text="${live.activity_name}">国新办举行新时代人民满意公务员代表中外记者见面会</span>
  245 + </p>
  246 + <p class="info-box-text">
  247 + <span style="float: left;">id:<span
  248 + th:text="${live.id}">10225</span></span>
  249 + <span style="float: right;"> <span style="margin-left: 40px;">&nbsp;&nbsp;
237 <span th:if="${live.activity_status==0}" style="color:green;">直播撤销</span> 250 <span th:if="${live.activity_status==0}" style="color:green;">直播撤销</span>
238 <span th:if="${live.activity_status==1}" style="color:blue;">正在直播</span> 251 <span th:if="${live.activity_status==1}" style="color:blue;">正在直播</span>
239 <span th:if="${live.activity_status==2}" style="color:black;">直播完成</span> 252 <span th:if="${live.activity_status==2}" style="color:black;">直播完成</span>
240 <span th:if="${live.activity_status==3}" style="color:brown;">等待直播</span> 253 <span th:if="${live.activity_status==3}" style="color:brown;">等待直播</span>
241 - <span th:if="${live.activity_status==4}" style="color:red;">直播下线</span> 254 + <span th:if="${live.activity_status==4}"
  255 + style="color:red;">直播下线</span>
242 </span><span></span> 256 </span><span></span>
243 </span> 257 </span>
244 - </p>  
245 - <p class="info-box-text"> 258 + </p>
  259 + <p class="info-box-text">
246 <span style="float: left;"> <span>SP简称:</span> 260 <span style="float: left;"> <span>SP简称:</span>
247 - </span> <span style="float: right;"> <span th:text="${live.spid_desc}">国新客户端</span> 261 + </span> <span style="float: right;"> <span
  262 + th:text="${live.spid_desc}">国新客户端</span>
248 </span> 263 </span>
249 - </p>  
250 -  
251 - </div>  
252 - <div class="width-10p pull-left padding-r-5"  
253 - th:if="${live.shenhe_state==0}">  
254 - <button class="btn btn-primary btn-xs btn-block" title="认领"  
255 - th:onclick="'applyReceive('+${live.id}+')'" data-field="action"  
256 - data-formatter="actionFormatter" data-events="actionEvents"  
257 - data-toggle="tooltip" data-placement="top" value="2"  
258 - th:id="'claim_'+${live.id}">  
259 - <i class="fa fa-hand-pointer-o"></i>  
260 - </button>  
261 - </div>  
262 -  
263 - <div class="width-10p pull-left padding-r-5">  
264 - <button class="btn btn-success btn-xs btn-block "  
265 - title="查看"  
266 - th:onclick="'detail('+${live.id}+')'"  
267 - data-toggle="tooltip" data-placement="top"  
268 - >  
269 - <i class="fa fa-eye"></i>  
270 - </button>  
271 - </div>  
272 - <div class="width-10p pull-left padding-r-5"  
273 - th:if="${live.activity_status!=4 and live.activity_status!=2 and live.shenhe_state==1 and session.sessionUser.userId==live.auditor}">  
274 - <button class="btn btn-danger btn-xs btn-block"  
275 - title="退领" th:onclick="'applyRetReceive('+${live.id}+')'"  
276 - data-toggle="tooltip" data-placement="top">  
277 - <i class="fa fa-mail-reply"></i>  
278 - </button>  
279 - </div>  
280 -  
281 -  
282 -  
283 - <div class="width-10p pull-right padding-r-5">  
284 - <button class="btn btn-danger btn-xs btn-block" title="下线直播"  
285 - th:onclick="'offline_live('+${live.id}+')'" data-toggle="tooltip"  
286 - data-placement="top"  
287 - data-target="#modal">  
288 - <i class="fa fa-arrow-down"></i>  
289 - </button>  
290 - </div>  
291 - <div class="width-10p pull-right padding-r-5">  
292 - <button class="btn btn-primary btn-xs btn-block" title="同步直播云"  
293 - th:onclick="'sync_live('+${live.id}+')'"  
294 - data-toggle="tooltip" data-placement="top">  
295 - <i class="fa fa-bullseye"></i>  
296 - </button>  
297 - </div>  
298 -  
299 -<!-- <div class="width-10p pull-right padding-r-5"> -->  
300 -<!-- <button class="btn btn-danger btn-xs btn-block" title="下线主播" -->  
301 -<!-- th:onclick="'offline_anchor('+${live.id}+')'" data-toggle="tooltip" -->  
302 -<!-- data-placement="top"> -->  
303 -<!-- <i class="glyphicon glyphicon-user"></i> -->  
304 -<!-- </button> -->  
305 -<!-- </div> -->  
306 - </div>  
307 -  
308 - </div>  
309 - </table>  
310 - </div>  
311 -  
312 -  
313 - <!--分页处理--> 264 + </p>
  265 +
  266 + </div>
  267 + <div class="width-10p pull-left padding-r-5"
  268 + th:if="${live.shenhe_state==0}">
  269 + <button class="btn btn-primary btn-xs btn-block" title="认领"
  270 + th:onclick="'applyReceive('+${live.id}+')'"
  271 + data-field="action"
  272 + data-formatter="actionFormatter" data-events="actionEvents"
  273 + data-toggle="tooltip" data-placement="top" value="2"
  274 + th:id="'claim_'+${live.id}">
  275 + <i class="fa fa-hand-pointer-o"></i>
  276 + </button>
  277 + </div>
  278 +
  279 + <div class="width-10p pull-left padding-r-5">
  280 + <button class="btn btn-success btn-xs btn-block "
  281 + title="查看"
  282 + th:onclick="'detail('+${live.id}+')'"
  283 + data-toggle="tooltip" data-placement="top"
  284 + >
  285 + <i class="fa fa-eye"></i>
  286 + </button>
  287 + </div>
  288 + <div class="width-10p pull-left padding-r-5"
  289 + th:if="${live.activity_status!=4 and live.activity_status!=2 and live.shenhe_state==1 and session.sessionUser.userId==live.auditor}">
  290 + <button class="btn btn-danger btn-xs btn-block"
  291 + title="退领" th:onclick="'applyRetReceive('+${live.id}+')'"
  292 + data-toggle="tooltip" data-placement="top">
  293 + <i class="fa fa-mail-reply"></i>
  294 + </button>
  295 + </div>
  296 +
  297 +
  298 + <div class="width-10p pull-right padding-r-5">
  299 + <button class="btn btn-danger btn-xs btn-block" title="下线直播"
  300 + th:onclick="'offline_live('+${live.id}+')'"
  301 + data-toggle="tooltip"
  302 + data-placement="top"
  303 + data-target="#modal">
  304 + <i class="fa fa-arrow-down"></i>
  305 + </button>
  306 + </div>
  307 + <div class="width-10p pull-right padding-r-5">
  308 + <button class="btn btn-primary btn-xs btn-block" title="同步直播云"
  309 + th:onclick="'sync_live('+${live.id}+')'"
  310 + data-toggle="tooltip" data-placement="top">
  311 + <i class="fa fa-bullseye"></i>
  312 + </button>
  313 + </div>
  314 +
  315 + <!-- <div class="width-10p pull-right padding-r-5"> -->
  316 + <!-- <button class="btn btn-danger btn-xs btn-block" title="下线主播" -->
  317 + <!-- th:onclick="'offline_anchor('+${live.id}+')'" data-toggle="tooltip" -->
  318 + <!-- data-placement="top"> -->
  319 + <!-- <i class="glyphicon glyphicon-user"></i> -->
  320 + <!-- </button> -->
  321 + <!-- </div> -->
  322 + </div>
  323 +
  324 + </div>
  325 + </table>
  326 + </div>
  327 +
  328 +
  329 + <!--分页处理-->
314 <div class="fixed-table-pagination" style="display: block;"> 330 <div class="fixed-table-pagination" style="display: block;">
315 <div class="pull-left pagination-detail"> 331 <div class="pull-left pagination-detail">
316 - <span class="pagination-info" th:text="'共 '+${livePage.total}+' 条记录,每页显示'">共 0 条记录</span>  
317 - <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()">  
318 - <option value="20" th:selected="${pageSize==20}">20</option>  
319 - <option value="40" th:selected="${pageSize==40}">40</option>  
320 - <option value="60" th:selected="${pageSize==60}">60</option>  
321 - <option value="80" th:selected="${pageSize==80}">80</option> 332 + <span class="pagination-info" th:text="'共 '+${livePage.total}+' 条记录,每页显示'">共 0 条记录</span>
  333 + <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()">
  334 + <option value="20" th:selected="${pageSize==20}">20</option>
  335 + <option value="40" th:selected="${pageSize==40}">40</option>
  336 + <option value="60" th:selected="${pageSize==60}">60</option>
  337 + <option value="80" th:selected="${pageSize==80}">80</option>
322 </select> 338 </select>
323 - <span class="pagination-info" >条记录</span> 339 + <span class="pagination-info">条记录</span>
324 </div> 340 </div>
325 <div class="pull-right pagination"> 341 <div class="pull-right pagination">
326 <ul class="pagination" th:if="${livePage.pages>1}"> 342 <ul class="pagination" th:if="${livePage.pages>1}">
@@ -359,62 +375,64 @@ @@ -359,62 +375,64 @@
359 </ul> 375 </ul>
360 </div> 376 </div>
361 </div> 377 </div>
362 - </div>  
363 - </div>  
364 - </div>  
365 - </div>  
366 - </div>  
367 - </section>  
368 - <!-- /.content -->  
369 -<!-- <div class="box-footer"> -->  
370 -<!-- <div class="pull-right"></div> -->  
371 -<!-- </div> -->  
372 - </div>  
373 - <!-- /.content-wrapper -->  
374 -  
375 - <!-- 预览对话框 -->  
376 - <div class="modal fade" id="preview" role="dialog" aria-hidden="true">  
377 - <div class="modal-dialog" style="width: 670px;">  
378 - <div class="modal-content">  
379 - <div class="modal-header">  
380 - <button type="button" class="close" data-dismiss="modal"  
381 - aria-hidden="true">&times;</button>  
382 - <h5 class="modal-title" id="myModalLabel">视频预览</h5>  
383 - </div>  
384 - <div class="modal-body">  
385 - <embed name="cnlive" width="640" height="450" id="cnlive" volume="0"  
386 - src="http://data.cnlive.com/export/UuidPlayerMain.swf"  
387 - flashVars="" type="application/x-shockwave-flash" wmode="window"  
388 - quility="high" allowscriptaccess="always" allowfullscreen="true">  
389 - </div>  
390 - </div>  
391 - <!-- /.modal-content -->  
392 - </div>  
393 - <!-- /.modal -->  
394 - </div>  
395 -  
396 - <!-- 确认直播下线,直播下线 -->  
397 - <div class="modal" id="action_note" role="dialog"  
398 - aria-labelledby="myModalLabel">  
399 - <div class="modal-dialog">  
400 - <div class="modal-content">  
401 - <div class="modal-header">  
402 - <h4 class="modal-title">温馨提示</h4>  
403 - </div>  
404 - <div class="modal-body" id="msg2"></div>  
405 -  
406 - <div class="modal-footer">  
407 - <button type="button" class="btn btn-default "  
408 - data-dismiss="modal" id="action_note_no">取消</button>  
409 - <button type="button" class="btn btn-primary" id="action_note_yes">确认</button>  
410 - <input type="hidden" name="action_note_type" id="action_note_type"  
411 - value="" /> <input type="hidden" name="action_note_id"  
412 - id="action_note_id" value="" />  
413 - </div>  
414 - </div>  
415 - </div>  
416 - </div>  
417 - <!-- 模态框(Modal) --> 378 + </div>
  379 + </div>
  380 + </div>
  381 + </div>
  382 + </div>
  383 + </section>
  384 + <!-- /.content -->
  385 + <!-- <div class="box-footer"> -->
  386 + <!-- <div class="pull-right"></div> -->
  387 + <!-- </div> -->
  388 + </div>
  389 + <!-- /.content-wrapper -->
  390 +
  391 + <!-- 预览对话框 -->
  392 + <div class="modal fade" id="preview" role="dialog" aria-hidden="true">
  393 + <div class="modal-dialog" style="width: 670px;">
  394 + <div class="modal-content">
  395 + <div class="modal-header">
  396 + <button type="button" class="close" data-dismiss="modal"
  397 + aria-hidden="true">&times;
  398 + </button>
  399 + <h5 class="modal-title" id="myModalLabel">视频预览</h5>
  400 + </div>
  401 + <div class="modal-body">
  402 + <embed name="cnlive" width="640" height="450" id="cnlive" volume="0"
  403 + src="http://data.cnlive.com/export/UuidPlayerMain.swf"
  404 + flashVars="" type="application/x-shockwave-flash" wmode="window"
  405 + quility="high" allowscriptaccess="always" allowfullscreen="true">
  406 + </div>
  407 + </div>
  408 + <!-- /.modal-content -->
  409 + </div>
  410 + <!-- /.modal -->
  411 + </div>
  412 +
  413 + <!-- 确认直播下线,直播下线 -->
  414 + <div class="modal" id="action_note" role="dialog"
  415 + aria-labelledby="myModalLabel">
  416 + <div class="modal-dialog">
  417 + <div class="modal-content">
  418 + <div class="modal-header">
  419 + <h4 class="modal-title">温馨提示</h4>
  420 + </div>
  421 + <div class="modal-body" id="msg2"></div>
  422 +
  423 + <div class="modal-footer">
  424 + <button type="button" class="btn btn-default "
  425 + data-dismiss="modal" id="action_note_no">取消
  426 + </button>
  427 + <button type="button" class="btn btn-primary" id="action_note_yes">确认</button>
  428 + <input type="hidden" name="action_note_type" id="action_note_type"
  429 + value=""/> <input type="hidden" name="action_note_id"
  430 + id="action_note_id" value=""/>
  431 + </div>
  432 + </div>
  433 + </div>
  434 + </div>
  435 + <!-- 模态框(Modal) -->
418 <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 436 <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
419 <div class="modal-dialog"> 437 <div class="modal-dialog">
420 <div class="modal-content" style="margin-top: 30%;"> 438 <div class="modal-content" style="margin-top: 30%;">
@@ -439,57 +457,57 @@ @@ -439,57 +457,57 @@
439 <!-- /.modal --> 457 <!-- /.modal -->
440 458
441 459
442 - <script th:inline="javascript">  
443 -  
444 - var activity_id ="";//直播id  
445 - var activity_name = "";//直播名称  
446 - var is_hot ="";//是否热点  
447 - var activity_status ="";//直播状态  
448 - var start_date ="";//开始时间  
449 - var end_date = "";//结束时间  
450 - var sp_desc = "";  
451 - var count = "";  
452 - var shenhe_state ="";//审核状态  
453 - var contentId ="";//审核状态  
454 -  
455 - function query(){  
456 - activity_id = $("#activity_id").val();  
457 - activity_name = $("#activity_name").val();  
458 - activity_status = $("#activity_status").val();  
459 - start_date = $("#start_date").val();  
460 - end_date = $("#end_date").val();  
461 - count = $("#pageSize").val();  
462 - var spId=[[${session.sessionUser.spid}]];  
463 - if(spId==0){  
464 - sp_desc = $("#sp_desc").val(); 460 + <script th:inline="javascript">
  461 +
  462 + var activity_id = "";//直播id
  463 + var activity_name = "";//直播名称
  464 + var is_hot = "";//是否热点
  465 + var activity_status = "";//直播状态
  466 + var start_date = "";//开始时间
  467 + var end_date = "";//结束时间
  468 + var sp_desc = "";
  469 + var count = "";
  470 + var shenhe_state = "";//审核状态
  471 + var contentId = "";//审核状态
  472 +
  473 + function query() {
  474 + activity_id = $("#activity_id").val();
  475 + activity_name = $("#activity_name").val();
  476 + activity_status = $("#activity_status").val();
  477 + start_date = $("#start_date").val();
  478 + end_date = $("#end_date").val();
  479 + count = $("#pageSize").val();
  480 + var spId = [[${session.sessionUser.spid}]];
  481 + if (spId == 0) {
  482 + sp_desc = $("#sp_desc").val();
465 contentId = $("#contentId").val(); 483 contentId = $("#contentId").val();
466 - }  
467 - window.location.href = "/live/page?activity_status="+activity_status+"&activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&activity_name=" + activity_name + "&sp_desc=" + sp_desc+"&pageSize="+count+"&shenhe_state="+shenhe_state+"&contentId="+contentId;  
468 - }  
469 -  
470 - //全部  
471 - function quanbu() {  
472 - query();  
473 - }  
474 -  
475 - //全部待领  
476 - $('#daishen').click(function () {  
477 - shenhe_state=0;  
478 - query();  
479 - });  
480 - //我的待审核  
481 - $('#Mydaishen').click(function () {  
482 - shenhe_state=1;  
483 - query();  
484 - });  
485 - //我的已审核  
486 - $('#yishen').click(function () {  
487 - shenhe_state=2;  
488 - query();  
489 - });  
490 -  
491 -  
492 - /*全选的操作*/ 484 + }
  485 + window.location.href = "/live/page?activity_status=" + activity_status + "&activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&activity_name=" + activity_name + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&shenhe_state=" + shenhe_state + "&contentId=" + contentId;
  486 + }
  487 +
  488 + //全部
  489 + function quanbu() {
  490 + query();
  491 + }
  492 +
  493 + //全部待领
  494 + $('#daishen').click(function () {
  495 + shenhe_state = 0;
  496 + query();
  497 + });
  498 + //我的待审核
  499 + $('#Mydaishen').click(function () {
  500 + shenhe_state = 1;
  501 + query();
  502 + });
  503 + //我的已审核
  504 + $('#yishen').click(function () {
  505 + shenhe_state = 2;
  506 + query();
  507 + });
  508 +
  509 +
  510 + /*全选的操作*/
493 $('#select_all').click(function () { 511 $('#select_all').click(function () {
494 if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) { 512 if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) {
495 $("#select_all").prop('checked', true); 513 $("#select_all").prop('checked', true);
@@ -578,236 +596,233 @@ @@ -578,236 +596,233 @@
578 } 596 }
579 }) 597 })
580 } 598 }
581 - 599 +
582 //导出excel 600 //导出excel
583 function daochu() { 601 function daochu() {
584 var param = location.search; 602 var param = location.search;
585 window.location.href = "/live/excel" + param; 603 window.location.href = "/live/excel" + param;
586 } 604 }
587 - 605 +
588 //详情页 606 //详情页
589 function detail(ids) { 607 function detail(ids) {
590 - location.href ="/live/details?id=" + ids; 608 + location.href = "/live/details?id=" + ids;
591 } 609 }
592 -  
593 - /*下线主播*/  
594 - function offline_anchor(id) {  
595 - $('#msg2').html('您确认下线该主播吗?');  
596 - $('#action_note').show();  
597 - $("#action_note_type").val('offline_anchor');  
598 - $("#action_note_id").val(id);  
599 - }  
600 -  
601 - /*下线直播*/  
602 - function offline_live(id) {  
603 -  
604 - $('#msg2').html('您确认下线该直播吗?');  
605 - $('#action_note').show();  
606 - $("#action_note_type").val('offline_live');  
607 - $("#action_note_id").val(id);  
608 - $('#modal_remove').attr('claim', 'claim');  
609 - }  
610 - /*同步直播云信息*/  
611 - function sync_live(id){  
612 - var r = confirm("您确定要同步直播云的最新数据吗?"); 610 +
  611 + /*下线主播*/
  612 + function offline_anchor(id) {
  613 + $('#msg2').html('您确认下线该主播吗?');
  614 + $('#action_note').show();
  615 + $("#action_note_type").val('offline_anchor');
  616 + $("#action_note_id").val(id);
  617 + }
  618 +
  619 + /*下线直播*/
  620 + function offline_live(id) {
  621 +
  622 + $('#msg2').html('您确认下线该直播吗?');
  623 + $('#action_note').show();
  624 + $("#action_note_type").val('offline_live');
  625 + $("#action_note_id").val(id);
  626 + $('#modal_remove').attr('claim', 'claim');
  627 + }
  628 +
  629 + /*同步直播云信息*/
  630 + function sync_live(id) {
  631 + var r = confirm("您确定要同步直播云的最新数据吗?");
613 if (r == true) { 632 if (r == true) {
614 - $.post("/live/syncLive?ids=" + id, function (data) { 633 + $.post("/live/syncLive?ids=" + id, function (data) {
615 if (data.errorCode == 0) { 634 if (data.errorCode == 0) {
616 alert(data.errorMessage); 635 alert(data.errorMessage);
617 location.href = location.href; 636 location.href = location.href;
618 } else { 637 } else {
619 alert(data.errorMessage); 638 alert(data.errorMessage);
620 } 639 }
621 - })  
622 - }  
623 - } 640 + })
  641 + }
  642 + }
624 643
625 - $("#action_note_no").click(function() {  
626 - $("#action_note").hide();  
627 - }); 644 + $("#action_note_no").click(function () {
  645 + $("#action_note").hide();
  646 + });
628 647
629 - $("#action_note_yes").click(function() {  
630 - $("#action_note").hide();  
631 - $('#msgModal').modal('show');  
632 - }) 648 + $("#action_note_yes").click(function () {
  649 + $("#action_note").hide();
  650 + $('#msgModal').modal('show');
  651 + })
633 652
634 //提交打回 653 //提交打回
635 function repulseSubmit() { 654 function repulseSubmit() {
636 - var action_note_type = $("#action_note_type").val();  
637 - var ids = $("#action_note_id").val();  
638 - var msg = $("#reviewMsg").val();  
639 - if (msg.trim() == '') { //消息为空 不行 655 + var action_note_type = $("#action_note_type").val();
  656 + var ids = $("#action_note_id").val();
  657 + var msg = $("#reviewMsg").val();
  658 + if (msg.trim() == '') { //消息为空 不行
640 alert('请输入审核意见!'); 659 alert('请输入审核意见!');
641 return false; 660 return false;
642 } 661 }
643 - if (action_note_type == 'offline_live') {  
644 - $.post("/live/repulse?ids=" + ids + "&msg=" + msg, function (data) {  
645 - if (data.errorCode == 0) {  
646 - alert(data.errorMessage);  
647 - location.href = location.href;  
648 - } else {  
649 - alert(data.errorMessage);  
650 - }  
651 - })  
652 - } else if (action_note_type == 'offline_anchor') {  
653 - $.post("/anchor/repulse?ids=" + ids + "&msg=" + msg, function (data) {  
654 - if (data.errorCode == 0) {  
655 - alert(data.errorMessage);  
656 - location.href = location.href;  
657 - } else {  
658 - alert(data.errorMessage);  
659 - }  
660 - })  
661 - } else if (action_note_type = 'reject') {  
662 -  
663 - } 662 + if (action_note_type == 'offline_live') {
  663 + $.post("/live/repulse?ids=" + ids + "&msg=" + msg + "&status=" + 6, function (data) {
  664 + if (data.errorCode == 0) {
  665 + alert(data.errorMessage);
  666 + location.href = location.href;
  667 + } else {
  668 + alert(data.errorMessage);
  669 + }
  670 + })
  671 + } else if (action_note_type == 'offline_anchor') {
  672 + $.post("/anchor/repulse?ids=" + ids + "&msg=" + msg, function (data) {
  673 + if (data.errorCode == 0) {
  674 + alert(data.errorMessage);
  675 + location.href = location.href;
  676 + } else {
  677 + alert(data.errorMessage);
  678 + }
  679 + })
  680 + } else if (action_note_type = 'reject') {
  681 +
  682 + }
664 } 683 }
665 684
666 685
667 - /*时间插件*/  
668 - $('.date').datetimepicker({  
669 - format : 'YYYY-MM-DD',  
670 - locale : "zh-CN",  
671 - toolbarPlacement : 'bottom',  
672 - showClear : true,  
673 - });  
674 -  
675 -  
676 - $('#a_down').hide();  
677 -  
678 - /*查询样式*/  
679 - function openOrClose(id_name_str) {  
680 - var id_name = '#' + id_name_str;  
681 - if ($(id_name).css('display') == 'block') {  
682 - $(id_name).slideUp(350);  
683 - $('#a_up').show();  
684 - $('#a_down').hide();  
685 - } else {  
686 - $(id_name).slideDown(350);  
687 - $('#a_up').hide();  
688 - $('#a_down').show();  
689 - }  
690 - }  
691 -  
692 -  
693 - $(function () {  
694 - //按钮颜色设置  
695 - var shenhe_state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null;  
696 - var stateIsNull = $.trim(shenhe_state) == "";  
697 - if (stateIsNull ) {  
698 - $("#quanbu").addClass("btn-info");  
699 - } else if (shenhe_state == '0' ) {  
700 - $("#daishen").addClass("btn-warning");  
701 - } else if (shenhe_state == '1' ) {  
702 - $("#Mydaishen").addClass("btn-success");  
703 - } else if ( shenhe_state == '2') {  
704 - $("#yishen").addClass("btn-danger");  
705 - }  
706 -  
707 - })  
708 -  
709 - //翻页函数  
710 - function fanye(page) {  
711 - var param = location.search;  
712 - if (param.indexOf("page=") != -1) {  
713 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
714 - var split = se.split("&");  
715 - var h = "";  
716 - for (var i = 0; i < split.length; i++) {  
717 - var s = split[i];  
718 - if (s.indexOf("page=") < 0) h = h + "&" + split[i];  
719 - }  
720 - h = h.substring(1, h.length);  
721 - window.location.href = "/live/page?" + h + "&page=" + page;  
722 - } else {  
723 - param = param.substring(1, param.length);  
724 - window.location.href = "/live/page?" + param + "&page=" + page;  
725 - }  
726 - }  
727 -  
728 - //选择每页数量触发函数  
729 - function selectPageSize(){  
730 - var pageSize=$("#pageSize").val();  
731 - var param = location.search;  
732 - if (param.indexOf("pageSize=") != -1) {  
733 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
734 - var split = se.split("&");  
735 - var h = "";  
736 - for (var i = 0; i < split.length; i++) {  
737 - var s = split[i];  
738 - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i];  
739 - }  
740 - h = h.substring(1, h.length);  
741 - window.location.href = "/live/page?" + h + "&pageSize=" + pageSize;  
742 - } else {  
743 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
744 - var split = se.split("&");  
745 - var h = "";  
746 - for (var i = 0; i < split.length; i++) {  
747 - var s = split[i];  
748 - if (s.indexOf("page=") < 0) h = h + "&" + split[i];  
749 - }  
750 - h = h.substring(1, h.length);  
751 - window.location.href = "/live/page?" + h + "&pageSize=" + pageSize;  
752 - }  
753 - }  
754 -  
755 -  
756 -  
757 -  
758 -  
759 - //弹窗播放操作 ---预览,审核,查看,退领  
760 - function preview(url) {  
761 - $('#cnlive').attr('flashVars',  
762 - "hasBorder=false&appid=82_irej0pbo53&type=live&model=2&videoURL="  
763 - + url);  
764 - $('#preview').modal('show');  
765 - $('.close').click(function() {  
766 - $('.preview').attr('display', 'none');  
767 - })  
768 - }  
769 -  
770 - </script>  
771 - <script>  
772 - $(function() {  
773 - $("[data-toggle='tooltip']").tooltip();  
774 - });  
775 - </script>  
776 -  
777 -  
778 -  
779 - <footer th:replace="../templates/common/foot::foot"></footer>  
780 -  
781 -  
782 - <!-- Control Sidebar -->  
783 - <aside class="control-sidebar control-sidebar-dark">  
784 - <!-- Create the tabs -->  
785 - <ul class="nav nav-tabs nav-justified control-sidebar-tabs">  
786 - <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i  
787 - class="fa fa-home"></i></a></li>  
788 - <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i  
789 - class="fa fa-gears"></i></a></li>  
790 - </ul>  
791 - <!-- Tab panes -->  
792 - <div class="tab-content">  
793 - <!-- Home tab content -->  
794 - <div class="tab-pane" id="control-sidebar-home-tab"></div>  
795 - <!-- /.tab-pane -->  
796 - </div>  
797 - </aside>  
798 - <!-- /.control-sidebar -->  
799 - <!-- Add the sidebar's background. This div must be placed  
800 - immediately after the control sidebar -->  
801 - <div class="control-sidebar-bg"></div>  
802 -  
803 - </div>  
804 - <!-- ./wrapper --> 686 + /*时间插件*/
  687 + $('.date').datetimepicker({
  688 + format: 'YYYY-MM-DD',
  689 + locale: "zh-CN",
  690 + toolbarPlacement: 'bottom',
  691 + showClear: true,
  692 + });
  693 +
  694 +
  695 + $('#a_down').hide();
  696 +
  697 + /*查询样式*/
  698 + function openOrClose(id_name_str) {
  699 + var id_name = '#' + id_name_str;
  700 + if ($(id_name).css('display') == 'block') {
  701 + $(id_name).slideUp(350);
  702 + $('#a_up').show();
  703 + $('#a_down').hide();
  704 + } else {
  705 + $(id_name).slideDown(350);
  706 + $('#a_up').hide();
  707 + $('#a_down').show();
  708 + }
  709 + }
  710 +
  711 +
  712 + $(function () {
  713 + //按钮颜色设置
  714 + var shenhe_state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null;
  715 + var stateIsNull = $.trim(shenhe_state) == "";
  716 + if (stateIsNull) {
  717 + $("#quanbu").addClass("btn-info");
  718 + } else if (shenhe_state == '0') {
  719 + $("#daishen").addClass("btn-warning");
  720 + } else if (shenhe_state == '1') {
  721 + $("#Mydaishen").addClass("btn-success");
  722 + } else if (shenhe_state == '2') {
  723 + $("#yishen").addClass("btn-danger");
  724 + }
  725 +
  726 + })
  727 +
  728 + //翻页函数
  729 + function fanye(page) {
  730 + var param = location.search;
  731 + if (param.indexOf("page=") != -1) {
  732 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  733 + var split = se.split("&");
  734 + var h = "";
  735 + for (var i = 0; i < split.length; i++) {
  736 + var s = split[i];
  737 + if (s.indexOf("page=") < 0) h = h + "&" + split[i];
  738 + }
  739 + h = h.substring(1, h.length);
  740 + window.location.href = "/live/page?" + h + "&page=" + page;
  741 + } else {
  742 + param = param.substring(1, param.length);
  743 + window.location.href = "/live/page?" + param + "&page=" + page;
  744 + }
  745 + }
  746 +
  747 + //选择每页数量触发函数
  748 + function selectPageSize() {
  749 + var pageSize = $("#pageSize").val();
  750 + var param = location.search;
  751 + if (param.indexOf("pageSize=") != -1) {
  752 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  753 + var split = se.split("&");
  754 + var h = "";
  755 + for (var i = 0; i < split.length; i++) {
  756 + var s = split[i];
  757 + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i];
  758 + }
  759 + h = h.substring(1, h.length);
  760 + window.location.href = "/live/page?" + h + "&pageSize=" + pageSize;
  761 + } else {
  762 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  763 + var split = se.split("&");
  764 + var h = "";
  765 + for (var i = 0; i < split.length; i++) {
  766 + var s = split[i];
  767 + if (s.indexOf("page=") < 0) h = h + "&" + split[i];
  768 + }
  769 + h = h.substring(1, h.length);
  770 + window.location.href = "/live/page?" + h + "&pageSize=" + pageSize;
  771 + }
  772 + }
  773 +
  774 +
  775 + //弹窗播放操作 ---预览,审核,查看,退领
  776 + function preview(url) {
  777 + $('#cnlive').attr('flashVars',
  778 + "hasBorder=false&appid=82_irej0pbo53&type=live&model=2&videoURL="
  779 + + url);
  780 + $('#preview').modal('show');
  781 + $('.close').click(function () {
  782 + $('.preview').attr('display', 'none');
  783 + })
  784 + }
  785 +
  786 + </script>
  787 + <script>
  788 + $(function () {
  789 + $("[data-toggle='tooltip']").tooltip();
  790 + });
  791 + </script>
  792 +
  793 +
  794 + <footer th:replace="../templates/common/foot::foot"></footer>
  795 +
  796 +
  797 + <!-- Control Sidebar -->
  798 + <aside class="control-sidebar control-sidebar-dark">
  799 + <!-- Create the tabs -->
  800 + <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
  801 + <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i
  802 + class="fa fa-home"></i></a></li>
  803 + <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i
  804 + class="fa fa-gears"></i></a></li>
  805 + </ul>
  806 + <!-- Tab panes -->
  807 + <div class="tab-content">
  808 + <!-- Home tab content -->
  809 + <div class="tab-pane" id="control-sidebar-home-tab"></div>
  810 + <!-- /.tab-pane -->
  811 + </div>
  812 + </aside>
  813 + <!-- /.control-sidebar -->
  814 + <!-- Add the sidebar's background. This div must be placed
  815 + immediately after the control sidebar -->
  816 + <div class="control-sidebar-bg"></div>
  817 +
  818 +</div>
  819 +<!-- ./wrapper -->
805 </body> 820 </body>
806 821
807 822
808 <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip --> 823 <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
809 <script type="text/javascript"> 824 <script type="text/javascript">
810 - $('div.alert').not('.alert-danger').delay(3000).slideUp(300); 825 + $('div.alert').not('.alert-danger').delay(3000).slideUp(300);
811 </script> 826 </script>
812 827
813 <!-- AdminLTE App --> 828 <!-- AdminLTE App -->
src/main/resources/templates/page/liveDetail.html
@@ -52,36 +52,37 @@ @@ -52,36 +52,37 @@
52 <h5 class="status" th:if="${live.activity_status==4}">直播下线</h5> 52 <h5 class="status" th:if="${live.activity_status==4}">直播下线</h5>
53 </div> 53 </div>
54 </div> 54 </div>
55 - <div class="form-group" > 55 + <div class="form-group">
56 <label for="claimed_at" class="control-label col-sm-2">预计开始时间:</label> 56 <label for="claimed_at" class="control-label col-sm-2">预计开始时间:</label>
57 <div class="col-sm-10"> 57 <div class="col-sm-10">
58 - <h5 th:text="${#dates.format(live.pre_start_time, 'yyyy-MM-dd HH:mm:ss')}"> 58 + <h5 th:text="${#dates.format(live.pre_start_time, 'yyyy-MM-dd HH:mm:ss')}">
59 2018-11-29 10:04:35</h5> 59 2018-11-29 10:04:35</h5>
60 </div> 60 </div>
61 </div> 61 </div>
62 - <div class="form-group" > 62 + <div class="form-group">
63 <label for="claimed_at" class="control-label col-sm-2">预计结束时间:</label> 63 <label for="claimed_at" class="control-label col-sm-2">预计结束时间:</label>
64 <div class="col-sm-10"> 64 <div class="col-sm-10">
65 <h5 th:text="${#dates.format(live.pre_end_time, 'yyyy-MM-dd HH:mm:ss')}"> 65 <h5 th:text="${#dates.format(live.pre_end_time, 'yyyy-MM-dd HH:mm:ss')}">
66 2018-11-29 10:04:35</h5> 66 2018-11-29 10:04:35</h5>
67 </div> 67 </div>
68 </div> 68 </div>
69 - <div class="form-group" > 69 + <div class="form-group">
70 <label for="claimed_at" class="control-label col-sm-2">直播开始时间:</label> 70 <label for="claimed_at" class="control-label col-sm-2">直播开始时间:</label>
71 <div class="col-sm-10"> 71 <div class="col-sm-10">
72 - <h5 th:text="${#dates.format(live.activity_start_time, 'yyyy-MM-dd HH:mm:ss')}"> 72 + <h5 th:text="${#dates.format(live.activity_start_time, 'yyyy-MM-dd HH:mm:ss')}">
73 2018-11-29 10:04:35</h5> 73 2018-11-29 10:04:35</h5>
74 </div> 74 </div>
75 </div> 75 </div>
76 - <div class="form-group" > 76 + <div class="form-group">
77 <label for="claimed_at" class="control-label col-sm-2">直播结束时间:</label> 77 <label for="claimed_at" class="control-label col-sm-2">直播结束时间:</label>
78 <div class="col-sm-10"> 78 <div class="col-sm-10">
79 <h5 th:text="${#dates.format(live.activity_end_time, 'yyyy-MM-dd HH:mm:ss')}"> 79 <h5 th:text="${#dates.format(live.activity_end_time, 'yyyy-MM-dd HH:mm:ss')}">
80 2018-11-29 10:04:35</h5> 80 2018-11-29 10:04:35</h5>
81 </div> 81 </div>
82 </div> 82 </div>
83 -  
84 - <div class="form-group" th:if="${live.activity_status== 4 or live.activity_status== 2}"> 83 +
  84 + <div class="form-group"
  85 + th:if="${live.activity_status== 4 or live.activity_status== 2}">
85 <div class="col-sm-10"> 86 <div class="col-sm-10">
86 <div class="modal-body" id="videoBox" style="height:400px"> 87 <div class="modal-body" id="videoBox" style="height:400px">
87 <script type="text/javascript" 88 <script type="text/javascript"
@@ -105,36 +106,37 @@ @@ -105,36 +106,37 @@
105 </div> 106 </div>
106 </div> 107 </div>
107 108
108 - <div class="form-group" th:if="${live.activity_status!= 4 and live.activity_status!= 2}">  
109 - <div class="col-sm-10">  
110 - <div class="modal-body" id="videoBox" style="height:400px">  
111 - <script type="text/javascript"  
112 - src="//resweb.cnliveimg.com/sites/common/cnlive_video.min.js"></script>  
113 - <script th:inline="javascript">  
114 - var videoUrl = [[${live.m3u8_url}]];  
115 - var cover = [[${live.cover_img_url}]];  
116 - cnliveVideo.init({  
117 - "eleId": "videoBox",  
118 - "width": 450,//指定放入指定ID元素内  
119 - "height": 400,  
120 - "model": 3,  
121 - "autoplay": 1,  
122 - "currRate": 3,  
123 - "cover": cover,  
124 - "videoUrl_3": videoUrl  
125 - });  
126 - </script>  
127 -  
128 - </div> 109 + <div class="form-group"
  110 + th:if="${live.activity_status!= 4 and live.activity_status!= 2}">
  111 + <div class="col-sm-10">
  112 + <div class="modal-body" id="videoBox" style="height:400px">
  113 + <script type="text/javascript"
  114 + src="//resweb.cnliveimg.com/sites/common/cnlive_video.min.js"></script>
  115 + <script th:inline="javascript">
  116 + var videoUrl = [[${live.m3u8_url}]];
  117 + var cover = [[${live.cover_img_url}]];
  118 + cnliveVideo.init({
  119 + "eleId": "videoBox",
  120 + "width": 450,//指定放入指定ID元素内
  121 + "height": 400,
  122 + "model": 3,
  123 + "autoplay": 1,
  124 + "currRate": 3,
  125 + "cover": cover,
  126 + "videoUrl_3": videoUrl
  127 + });
  128 + </script>
  129 +
129 </div> 130 </div>
130 - </div> 131 + </div>
  132 + </div>
  133 +
131 134
  135 + </div>
132 136
133 - </div>  
134 -  
135 <!-- 右侧列表展示 --> 137 <!-- 右侧列表展示 -->
136 <div class="col-sm-6"> 138 <div class="col-sm-6">
137 - <div class="form-group"> 139 + <div class="form-group">
138 <label for="live_title" class="control-label col-sm-2">直播流:</label> 140 <label for="live_title" class="control-label col-sm-2">直播流:</label>
139 <div class="col-sm-10"> 141 <div class="col-sm-10">
140 <h5 style="font-weight: bold;" 142 <h5 style="font-weight: bold;"
@@ -205,7 +207,7 @@ @@ -205,7 +207,7 @@
205 <h5 th:text="${live.updater}">769_jetj7bq525</h5> 207 <h5 th:text="${live.updater}">769_jetj7bq525</h5>
206 </div> 208 </div>
207 </div> 209 </div>
208 - 210 +
209 <div class="form-group"> 211 <div class="form-group">
210 <label for="msg" class="control-label col-sm-2">审核信息:</label> 212 <label for="msg" class="control-label col-sm-2">审核信息:</label>
211 <div class="col-sm-8"> 213 <div class="col-sm-8">
@@ -214,14 +216,14 @@ @@ -214,14 +216,14 @@
214 </div> 216 </div>
215 </div> 217 </div>
216 218
217 - <div class="form-group" > 219 + <div class="form-group">
218 <label for="claimed_at" class="control-label col-sm-2">创建时间:</label> 220 <label for="claimed_at" class="control-label col-sm-2">创建时间:</label>
219 <div class="col-sm-10"> 221 <div class="col-sm-10">
220 <h5 th:text="${#dates.format(live.created_at, 'yyyy-MM-dd HH:mm:ss')}"> 222 <h5 th:text="${#dates.format(live.created_at, 'yyyy-MM-dd HH:mm:ss')}">
221 2018-11-29 10:04:35</h5> 223 2018-11-29 10:04:35</h5>
222 </div> 224 </div>
223 </div> 225 </div>
224 - <div class="form-group" > 226 + <div class="form-group">
225 <label for="claimed_at" class="control-label col-sm-2">最后更新时间:</label> 227 <label for="claimed_at" class="control-label col-sm-2">最后更新时间:</label>
226 <div class="col-sm-10"> 228 <div class="col-sm-10">
227 <h5 th:text="${#dates.format(live.updated_at, 'yyyy-MM-dd HH:mm:ss')}"> 229 <h5 th:text="${#dates.format(live.updated_at, 'yyyy-MM-dd HH:mm:ss')}">
@@ -240,15 +242,15 @@ @@ -240,15 +242,15 @@
240 242
241 243
242 <div class="box-footer"> 244 <div class="box-footer">
243 - <div class="col-sm-5">  
244 - <button type="button" class="btn btn-danger pull-right" onclick="live(2);">拒 绝  
245 - </button>  
246 - </div> 245 + <div class="col-sm-5">
  246 + <button type="button" class="btn btn-danger pull-right" onclick="live(4);">拒 绝
  247 + </button>
  248 + </div>
247 249
248 - <div class="col-sm-1" style="margin-right:26px;">  
249 - <button type="button" class="btn btn-primary pull-right" onclick="live(1);">通 过  
250 - </button>  
251 - </div> 250 + <div class="col-sm-1" style="margin-right:26px;">
  251 + <button type="button" class="btn btn-primary pull-right" onclick="live(3);">通 过
  252 + </button>
  253 + </div>
252 254
253 <div class="col-sm-6"> 255 <div class="col-sm-6">
254 <button type="button" class="btn btn-info pull-right" 256 <button type="button" class="btn btn-info pull-right"
@@ -256,12 +258,37 @@ @@ -256,12 +258,37 @@
256 </button> 258 </button>
257 </div> 259 </div>
258 </div> 260 </div>
  261 +
  262 + <!-- 模态框(Modal) -->
  263 + <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  264 + <div class="modal-dialog">
  265 + <div class="modal-content" style="margin-top: 30%;">
  266 + <div class="modal-header">
  267 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  268 + <h4 class="modal-title" id="myModalLabel">审核意见</h4>
  269 + </div>
  270 + <div class="modal-body">
  271 + <div class="form-group" style="margin-bottom: 0;">
  272 + <textarea id="reviewMsg" style="width: 100%;height: 80px;"></textarea>
  273 + </div>
  274 + <div class="form-group">
  275 + </div>
  276 + </div>
  277 + <div class="modal-footer">
  278 + <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  279 + <button type="button" class="btn btn-primary" onclick="javascript:repulseSubmit();">提交</button>
  280 + </div>
  281 + </div><!-- /.modal-content -->
  282 + </div><!-- /.modal-dialog -->
  283 + </div>
  284 +
259 <script th:inline="javascript"> 285 <script th:inline="javascript">
260 var liveId = [[${live.id}]]; 286 var liveId = [[${live.id}]];
  287 +
261 //审核操作,status=1为通过 288 //审核操作,status=1为通过
262 function live(status) { 289 function live(status) {
263 - if (status == 1) {  
264 - $.post("/live/pass?ids=" + liveId, function (data) { 290 + if (status == 3) {
  291 + $.post("/live/repulse?ids=" + liveId + "&status=" + status, function (data) {
265 if (data.errorCode == 0) { 292 if (data.errorCode == 0) {
266 //location.href = history.back(); 293 //location.href = history.back();
267 self.location = document.referrer; 294 self.location = document.referrer;
@@ -270,7 +297,7 @@ @@ -270,7 +297,7 @@
270 } 297 }
271 }) 298 })
272 } else { 299 } else {
273 - $.post("/live/refuse?ids=" + liveId, function (data) { 300 + $.post("/live/repulse?ids=" + liveId + "&status=" + status, function (data) {
274 if (data.errorCode == 0) { 301 if (data.errorCode == 0) {
275 //location.href = history.back(); 302 //location.href = history.back();
276 self.location = document.referrer; 303 self.location = document.referrer;
@@ -281,6 +308,23 @@ @@ -281,6 +308,23 @@
281 } 308 }
282 } 309 }
283 310
  311 + //提交拒绝
  312 + function repulseSubmit() {
  313 + var msg = $("#reviewMsg").val();
  314 + if ( msg == '') {
  315 + alert('请输入审核意见!');
  316 + return false;
  317 + }
  318 + $.post("/live/repulse?ids=" + liveId + "&status=" + 4, function (data) {
  319 + if (data.errorCode == 0) {
  320 + alert(data.errorMessage);
  321 + self.location = document.referrer;
  322 + } else {
  323 + alert(data.errorMessage);
  324 + }
  325 + })
  326 + }
  327 +
284 </script> 328 </script>
285 329
286 </div> 330 </div>