|
|
@@ -148,26 +148,30 @@ function removeR(phones,dates) {
|
|
148
|
148
|
icon: 7,
|
|
149
|
149
|
btn: ['是', '否'] //按钮
|
|
150
|
150
|
}, function() {
|
|
151
|
|
- $.ajax({
|
|
152
|
|
- type: "get",
|
|
153
|
|
- url: huayi.config.callcenter_url + "testusertypeapi/api/Test/addfxqytabs",
|
|
154
|
|
- dataType: 'json',
|
|
155
|
|
- async: true,
|
|
156
|
|
- beforeSend: function () {
|
|
157
|
|
- //注意,layer.msg默认3秒自动关闭,如果数据加载耗时比较长,需要设置time
|
|
158
|
|
- layer.msg('正在更新数据,请稍候……',{ icon: 16, shade: 0.01,shadeClose:false,time:6000000 });
|
|
159
|
|
- },
|
|
160
|
|
- data: {
|
|
161
|
|
- ids: phones.join(','),
|
|
162
|
|
- nowdatetime:dates[dates.length-1]
|
|
163
|
|
- },
|
|
164
|
|
- success: function(data) {
|
|
165
|
|
- if (data.state.toLowerCase() == 'success') {
|
|
166
|
|
- layer.msg("随访 成功!");
|
|
167
|
|
- initTable();
|
|
|
151
|
+ for(var i=0;i<phones.length;i++){
|
|
|
152
|
+ var phones[i]=_index
|
|
|
153
|
+ $.ajax({
|
|
|
154
|
+ type: "get",
|
|
|
155
|
+ url: huayi.config.callcenter_url + "testusertypeapi/api/Test/addfxqytabs",
|
|
|
156
|
+ dataType: 'json',
|
|
|
157
|
+ async: true,
|
|
|
158
|
+ beforeSend: function () {
|
|
|
159
|
+ //注意,layer.msg默认3秒自动关闭,如果数据加载耗时比较长,需要设置time
|
|
|
160
|
+ layer.msg('正在更新数据,请稍候……',{ icon: 16, shade: 0.01,shadeClose:false,time:6000000 });
|
|
|
161
|
+ },
|
|
|
162
|
+ data: {
|
|
|
163
|
+ ids: phones[i],
|
|
|
164
|
+ nowdatetime:dates[_index]
|
|
|
165
|
+ },
|
|
|
166
|
+ success: function(data) {
|
|
|
167
|
+ if (data.state.toLowerCase() == 'success') {
|
|
|
168
|
+ layer.msg("随访 成功!");
|
|
|
169
|
+ initTable();
|
|
|
170
|
+ }
|
|
168
|
171
|
}
|
|
169
|
|
- }
|
|
170
|
|
- });
|
|
|
172
|
+ });
|
|
|
173
|
+ }
|
|
|
174
|
+
|
|
171
|
175
|
});
|
|
172
|
176
|
|
|
173
|
177
|
}
|