|
@@ -522,6 +522,10 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
|
522
|
522
|
value: $scope.groupSelected[1]//选中
|
523
|
523
|
};
|
524
|
524
|
$scope.own.duty && $scope.tap == 'CLRZ' && $scope.mdxquery();
|
|
525
|
+
|
|
526
|
+ $scope.companySelected = [];
|
|
527
|
+ $scope.companySelectedOne.value = {id:-1,name:''};
|
|
528
|
+ $scope.own.duty && $scope.tap == 'SFGS' && $scope.mdxquery();
|
525
|
529
|
}
|
526
|
530
|
// 获取院区
|
527
|
531
|
$scope.branchs = [];
|
|
@@ -981,12 +985,16 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
|
981
|
985
|
api_user_data.fetchDataList('company', {
|
982
|
986
|
idx: 0,
|
983
|
987
|
sum: 1000,
|
984
|
|
- company: {}
|
|
988
|
+ company: {
|
|
989
|
+ "duty": $scope.own.duty || undefined,
|
|
990
|
+ }
|
985
|
991
|
}).then(res => {
|
986
|
992
|
if (res.status == 200) {
|
987
|
993
|
$scope.companySelected = res.list;//下拉框数据
|
988
|
994
|
// 请求列表
|
989
|
995
|
var postData = {
|
|
996
|
+ "dutyId": $scope.own.duty ? $scope.own.duty.id : undefined,
|
|
997
|
+ "branchId": $scope.own.duty ? undefined: ($scope.own.branch ? $scope.own.branch.id : undefined),
|
990
|
998
|
"startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
|
991
|
999
|
"endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
|
992
|
1000
|
"sortData": name,
|
|
@@ -1147,6 +1155,8 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
|
1147
|
1155
|
postData.key = 'mdv2_incident_repot_handle';
|
1148
|
1156
|
break;
|
1149
|
1157
|
case 'SFGS'://三方公司
|
|
1158
|
+ postData.dutyId = $scope.own.duty ? $scope.own.duty.id : undefined;
|
|
1159
|
+ postData.branchId = $scope.own.duty ? undefined : ($scope.own.branch ? $scope.own.branch.id : undefined);
|
1150
|
1160
|
postData.key = 'mdv2_incident_repot_company';
|
1151
|
1161
|
postData.titles = [($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName)?'人员名称':'公司名称', '人员总数', '事件数量', '平均响应时长', '平均解决时长'];
|
1152
|
1162
|
if($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName){
|