|
|
@@ -207,11 +207,12 @@
|
|
207
|
207
|
</div>
|
|
208
|
208
|
<div class="anniu" style="margin: 20px 0;">
|
|
209
|
209
|
<button class="btns search"><i class="fa fa-search"></i>查询</button>
|
|
210
|
|
- <!--<button class="btns "><i class="fa fa-sign-in"></i>导出</button>-->
|
|
|
210
|
+ <button class="btns unassign"><i class="fa fa-sign-in"></i>取消分配</button>
|
|
211
|
211
|
</div>
|
|
212
|
212
|
<table id="table1" data-row-style="rowStyle" data-classes="table table-no-bordered" data-query-params="queryParams" data-height="600">
|
|
213
|
213
|
<thead>
|
|
214
|
214
|
<tr>
|
|
|
215
|
+ <th data-field="state" data-checkbox="true" data-align="center"></th>
|
|
215
|
216
|
<th data-field="phone" data-align="center" data-formatter="Code">序号</th>
|
|
216
|
217
|
<th data-field="phone" data-align="left">号码</th>
|
|
217
|
218
|
<th data-field="isallot" data-align="left">是否分配</th>
|
|
|
@@ -303,6 +304,38 @@
|
|
303
|
304
|
function Code(val, row, index) {
|
|
304
|
305
|
return index + 1;
|
|
305
|
306
|
}
|
|
|
307
|
+
|
|
|
308
|
+ $('.unassign').click(function(){
|
|
|
309
|
+ var ids = $.map(table.bootstrapTable('getSelections'), function(row) {
|
|
|
310
|
+ return row.id;
|
|
|
311
|
+ });
|
|
|
312
|
+// did = ids.toString();
|
|
|
313
|
+ if(ids.length ==0) {
|
|
|
314
|
+ layer.confirm('请选择一行进行修改!', {
|
|
|
315
|
+ btn: ['确定']
|
|
|
316
|
+ });
|
|
|
317
|
+ return;
|
|
|
318
|
+ } else {
|
|
|
319
|
+ $.ajax({
|
|
|
320
|
+ type: "post",
|
|
|
321
|
+ url: huayi.config.callcenter_url + "CallPlan/CancelPhone",
|
|
|
322
|
+ async: true,
|
|
|
323
|
+ dataType: 'json',
|
|
|
324
|
+ data: {
|
|
|
325
|
+ token: $.cookie("token"),
|
|
|
326
|
+ ids: ids
|
|
|
327
|
+ },
|
|
|
328
|
+ success: function (result) {
|
|
|
329
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
330
|
+ layer.msg(result.message);
|
|
|
331
|
+ table.bootstrapTable('refresh');
|
|
|
332
|
+ }
|
|
|
333
|
+
|
|
|
334
|
+ }
|
|
|
335
|
+ });
|
|
|
336
|
+
|
|
|
337
|
+ }
|
|
|
338
|
+ })
|
|
306
|
339
|
</script>
|
|
307
|
340
|
</body>
|
|
308
|
341
|
|