|
@@ -283,40 +283,42 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
|
283
|
283
|
$state.go(url,data);
|
284
|
284
|
}
|
285
|
285
|
$scope.serviceFormTo = function(rowData,type){
|
|
286
|
+ var starttimesModel = moment($scope.starttimesModel).format('YYYY-MM-DD');
|
|
287
|
+ var endtimesModel = moment($scope.endtimesModel).format('YYYY-MM-DD');
|
286
|
288
|
console.log(rowData.userId);
|
287
|
|
- console.log($scope.starttimesModel);
|
288
|
|
- console.log($scope.endtimesModel);
|
|
289
|
+ console.log(starttimesModel);
|
|
290
|
+ console.log(endtimesModel);
|
289
|
291
|
switch(type){
|
290
|
292
|
case 'total':
|
291
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId});
|
|
293
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId});
|
292
|
294
|
break;
|
293
|
295
|
case 'p_total':
|
294
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, isDirectProcess:1});
|
|
296
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, isDirectProcess:1});
|
295
|
297
|
break;
|
296
|
298
|
case 'unp_total':
|
297
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, isDirectProcess:0});
|
|
299
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, isDirectProcess:0});
|
298
|
300
|
break;
|
299
|
301
|
|
300
|
302
|
case 'handle_phone':
|
301
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'phone'});
|
|
303
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'phone'});
|
302
|
304
|
break;
|
303
|
305
|
case 'handle_wxweb':
|
304
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'im'});
|
|
306
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'im'});
|
305
|
307
|
break;
|
306
|
308
|
case 'handle_msg':
|
307
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'record'});
|
|
309
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'record'});
|
308
|
310
|
break;
|
309
|
311
|
case 'handle_desk':
|
310
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'desk'});
|
|
312
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'desk'});
|
311
|
313
|
break;
|
312
|
314
|
case 'handle_other':
|
313
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'other'});
|
|
315
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'other'});
|
314
|
316
|
break;
|
315
|
317
|
case 'handle_discover':
|
316
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'discover'});
|
|
318
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'discover'});
|
317
|
319
|
break;
|
318
|
320
|
case 'handle_leader':
|
319
|
|
- $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'leader'});
|
|
321
|
+ $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'leader'});
|
320
|
322
|
break;
|
321
|
323
|
}
|
322
|
324
|
}
|