|
|
@@ -3,7 +3,7 @@
|
|
3
|
3
|
|
|
4
|
4
|
<head>
|
|
5
|
5
|
<meta charset="UTF-8">
|
|
6
|
|
- <title>黑名单管理</title>
|
|
|
6
|
+ <title>欢迎词语音管理</title>
|
|
7
|
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
8
|
<script src="../Script/Common/huayi.load.js"></script>
|
|
9
|
9
|
<script src="../Script/Common/huayi.config.js"></script>
|
|
|
@@ -22,7 +22,7 @@
|
|
22
|
22
|
.th-box {
|
|
23
|
23
|
background-color: #ffffff;
|
|
24
|
24
|
}
|
|
25
|
|
- #settime,#settime{
|
|
|
25
|
+ #settime,#settimes{
|
|
26
|
26
|
width: 228px;
|
|
27
|
27
|
}
|
|
28
|
28
|
|
|
|
@@ -87,14 +87,13 @@
|
|
87
|
87
|
<thead>
|
|
88
|
88
|
<tr>
|
|
89
|
89
|
<th data-field="state" data-checkbox="true"></th>
|
|
90
|
|
- <th data-field="item">项目名称</th>
|
|
91
|
|
- <th data-field="path" data-formatter="setCode" data-align="center">录音</th>
|
|
92
|
|
- <th data-field="bytime">生效时间</th>
|
|
93
|
|
- <th data-field="eytime">失效时间</th>
|
|
94
|
|
- <th data-field="btime">开始时间</th>
|
|
95
|
|
- <th data-field="etime">结束时间</th>
|
|
96
|
|
- <th data-field="state" data-formatter="formatterState">状态</th>
|
|
97
|
|
- <th data-field="remark" data-formatter="formatterRemark">备注</th>
|
|
|
90
|
+ <th data-field="F_Item">项目名称</th>
|
|
|
91
|
+ <th data-field="F_WavPath" data-formatter="setCode" data-align="center">录音</th>
|
|
|
92
|
+ <th data-field="F_StartDate">生效时间</th>
|
|
|
93
|
+ <th data-field="F_EndDate">失效时间</th>
|
|
|
94
|
+ <th data-field="F_CreateTime">创建时间</th>
|
|
|
95
|
+ <th data-field="F_IsState" data-formatter="formatterState">状态</th>
|
|
|
96
|
+ <th data-field="F_Remark" data-formatter="formatterRemark">备注</th>
|
|
98
|
97
|
</tr>
|
|
99
|
98
|
</thead>
|
|
100
|
99
|
<tbody id="tbody"></tbody>
|
|
|
@@ -118,6 +117,37 @@
|
|
118
|
117
|
</div>
|
|
119
|
118
|
</div>
|
|
120
|
119
|
<script>
|
|
|
120
|
+ var htmls=' <div class="ly_text">'+
|
|
|
121
|
+ '<object id="WindowsMediaPlayer" style="width: 95%; height: 100px;margin:15px 2%;" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" '+
|
|
|
122
|
+ ' viewastext>'+
|
|
|
123
|
+ ' <param name="URL" value="">'+
|
|
|
124
|
+ '<param name="rate" value="1">'+
|
|
|
125
|
+ '<param name="balance" value="0">'+
|
|
|
126
|
+ '<param name="currentPosition" value="0">'+
|
|
|
127
|
+ '<param name="defaultFrame" value="">'+
|
|
|
128
|
+ '<param name="playCount" value="1">'+
|
|
|
129
|
+ '<param name="autoStart" value="-1">'+
|
|
|
130
|
+ '<param name="currentMarker" value="0">'+
|
|
|
131
|
+ '<param name="invokeURLs" value="0">'+
|
|
|
132
|
+ '<param name="baseURL" value="">'+
|
|
|
133
|
+ '<param name="volume" value="50">'+
|
|
|
134
|
+ '<param name="mute" value="0">'+
|
|
|
135
|
+ '<param name="uiMode" value="mini">'+
|
|
|
136
|
+ '<param name="stretchToFit" value="0">'+
|
|
|
137
|
+ '<param name="windowlessVideo" value="-1">'+
|
|
|
138
|
+ '<param name="enabled" value="-1">'+
|
|
|
139
|
+ '<param name="enableContextMenu" value="0">'+
|
|
|
140
|
+ '<param name="fullScreen" value="0">'+
|
|
|
141
|
+ ' <param name="SAMIStyle" value="">'+
|
|
|
142
|
+ '<param name="SAMILang" value="">'+
|
|
|
143
|
+ '<param name="SAMIFilename" value="">'+
|
|
|
144
|
+ ' <param name="captioningID" value="">'+
|
|
|
145
|
+ '<param name="enableErrorDialogs" value="-1">'+
|
|
|
146
|
+ '<param name="_cx" value="4233">'+
|
|
|
147
|
+ '<param name="_cy" value="4392">'+
|
|
|
148
|
+ '</object>'+
|
|
|
149
|
+ '<div style="width: 95%; margin:0 auto; text-align:center;" class="xzly"></div>'+
|
|
|
150
|
+ '</div>';
|
|
121
|
151
|
$(document).ready(function() {
|
|
122
|
152
|
laydate.render({
|
|
123
|
153
|
elem: '#settime',
|
|
|
@@ -188,7 +218,7 @@
|
|
188
|
218
|
function btn_deletes(){
|
|
189
|
219
|
var ids = $.map($('#list').bootstrapTable('getSelections'),
|
|
190
|
220
|
function(row) {
|
|
191
|
|
- return row.id;
|
|
|
221
|
+ return row.F_ID;
|
|
192
|
222
|
});
|
|
193
|
223
|
/*判断长度*/
|
|
194
|
224
|
if(ids.length <= 0) {
|
|
|
@@ -207,7 +237,7 @@
|
|
207
|
237
|
/*执行删除*/
|
|
208
|
238
|
var ids = $.map($('#list').bootstrapTable('getSelections'),
|
|
209
|
239
|
function(row) {
|
|
210
|
|
- return row.id;
|
|
|
240
|
+ return row.F_ID;
|
|
211
|
241
|
});
|
|
212
|
242
|
/*发送请求*/
|
|
213
|
243
|
$.post(huayi.config.callcenter_url + "IVRWelcome/DelIVRWords", {
|
|
|
@@ -235,7 +265,7 @@
|
|
235
|
265
|
function btn_edit(){
|
|
236
|
266
|
var ids = $.map($('#list').bootstrapTable('getSelections'),
|
|
237
|
267
|
function(row) {
|
|
238
|
|
- return row.id;
|
|
|
268
|
+ return row.F_ID;
|
|
239
|
269
|
});
|
|
240
|
270
|
if(ids.length != 1) {
|
|
241
|
271
|
layer.confirm('请选择一行进行修改?', {
|
|
|
@@ -275,10 +305,10 @@
|
|
275
|
305
|
}
|
|
276
|
306
|
}
|
|
277
|
307
|
//音频
|
|
278
|
|
- function setCode(val) {
|
|
|
308
|
+ function setCode(val,row) {
|
|
279
|
309
|
if(val) {
|
|
280
|
310
|
return '<div class="imgs">' +
|
|
281
|
|
- '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
|
|
|
311
|
+ '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" Files="'+ row.F_WavFileName +'" />' +
|
|
282
|
312
|
'</div>';
|
|
283
|
313
|
} else {
|
|
284
|
314
|
return '';
|
|
|
@@ -286,28 +316,25 @@
|
|
286
|
316
|
}
|
|
287
|
317
|
//录音
|
|
288
|
318
|
function ck(val) {
|
|
289
|
|
-// if(!!window.ActiveXObject || "ActiveXObject" in window){
|
|
290
|
|
-// layer.open({
|
|
291
|
|
-// type: 1,
|
|
292
|
|
-// content: htmls,
|
|
293
|
|
-// title: '录音播放',
|
|
294
|
|
-// area: ['55%', '65%'], //宽高
|
|
295
|
|
-// });
|
|
296
|
|
-// WindowsMediaPlayer.URL=$(val).attr('item');
|
|
297
|
|
-// $('<a href="' + $(val).attr('item') + '" class="sc_btn LY "download="' + $(val).attr('item') + '">下载录音</a>').appendTo(".xzly");
|
|
298
|
|
-//
|
|
299
|
|
-// }else{
|
|
|
319
|
+ if(!!window.ActiveXObject || "ActiveXObject" in window){
|
|
|
320
|
+ layer.open({
|
|
|
321
|
+ type: 1,
|
|
|
322
|
+ content: htmls,
|
|
|
323
|
+ title: '录音播放',
|
|
|
324
|
+ area: ['55%', '65%'], //宽高
|
|
|
325
|
+ });
|
|
|
326
|
+ WindowsMediaPlayer.URL=$(val).attr('item');
|
|
|
327
|
+ $('<a href="' + $(val).attr('item') + '" class="sc_btn LY "download="' + $(val).attr('item') + '">下载录音</a>').appendTo(".xzly");
|
|
|
328
|
+
|
|
|
329
|
+ }else{
|
|
300
|
330
|
var path = $(val).attr("item");
|
|
301
|
331
|
$(".t-shade").addClass("cx");
|
|
302
|
332
|
$(".Ly_box").empty();
|
|
303
|
333
|
$(".LY_box").empty();
|
|
304
|
334
|
$('<audio style="width:100%;"class=" " src="' + path + '" loop="loop" type="audio/v3" controls="controls"></audio>').appendTo(".Ly_box");
|
|
305
|
|
- $('<a href="' + path + '" class="sc_btn LY "download="' + path + '">下载录音</a>').appendTo(".LY_box");
|
|
306
|
|
-// }
|
|
|
335
|
+ $('<a href="' + $(val).attr('item') + '" class="sc_btn LY "download="' + $(val).attr('item') + '">下载录音</a>').appendTo(".LY_box");
|
|
|
336
|
+ }
|
|
307
|
337
|
}
|
|
308
|
|
-
|
|
309
|
338
|
</script>
|
|
310
|
|
-
|
|
311
|
339
|
</body>
|
|
312
|
|
-
|
|
313
|
|
-</html>
|
|
|
340
|
+</html>
|