|
@@ -117,6 +117,9 @@ app.controller('incidentSetUp', ["$rootScope", "$scope", "$state", "$timeout", "
|
117
|
117
|
|
118
|
118
|
convertchildToTree(branch);
|
119
|
119
|
console.log(branch)
|
|
120
|
+ if(branch.managerUser){
|
|
121
|
+ $scope.subdata.managerUser = branch.managerUser
|
|
122
|
+ }
|
120
|
123
|
if(branch.userOrGroupType){
|
121
|
124
|
$scope.userOrGroupType['type']=branch.userOrGroupType;
|
122
|
125
|
$scope.userGroupChecked['groupCheck']=branch.group||{};
|
|
@@ -330,6 +333,9 @@ app.controller('incidentSetUp', ["$rootScope", "$scope", "$state", "$timeout", "
|
330
|
333
|
if(angular.isDefined(data[i].userOrGroupType)){
|
331
|
334
|
object.userOrGroupType=data[i].userOrGroupType;
|
332
|
335
|
}
|
|
336
|
+ if(angular.isDefined(data[i].managerUser)){
|
|
337
|
+ object.managerUser=data[i].managerUser||{};
|
|
338
|
+ }
|
333
|
339
|
object.label = data[i].category;
|
334
|
340
|
// object.actions = data[i][3]; //权限部分
|
335
|
341
|
// object.group = "1";
|
|
@@ -411,6 +417,9 @@ app.controller('incidentSetUp', ["$rootScope", "$scope", "$state", "$timeout", "
|
411
|
417
|
if($scope.subdata.priority){
|
412
|
418
|
formdata.priority=$scope.subdata.priority
|
413
|
419
|
}
|
|
420
|
+ if($scope.subdata.managerUser){
|
|
421
|
+ formdata.managerUser=$scope.subdata.managerUser
|
|
422
|
+ }
|
414
|
423
|
|
415
|
424
|
var filedata = { "incidentcategory": formdata }
|
416
|
425
|
console.log(filedata);
|
|
@@ -440,6 +449,7 @@ app.controller('incidentSetUp', ["$rootScope", "$scope", "$state", "$timeout", "
|
440
|
449
|
$scope.userGroupCheckedAdd={};//选中人/组数据
|
441
|
450
|
$scope.userOrGroupTypeAdd={};//运维组/运维人员
|
442
|
451
|
$scope.submitadd = function(formdata) {
|
|
452
|
+ console.log(formdata)
|
443
|
453
|
// var paret = {};
|
444
|
454
|
// var filedata = {};
|
445
|
455
|
// filedata = angular.copy(formdata);
|
|
@@ -1182,6 +1192,24 @@ app.controller('incidentSetUp', ["$rootScope", "$scope", "$state", "$timeout", "
|
1182
|
1192
|
})
|
1183
|
1193
|
}
|
1184
|
1194
|
$scope.getUserList()
|
|
1195
|
+ // 获取事件分类人员
|
|
1196
|
+ $scope.getUserList1=function(){
|
|
1197
|
+ var postData={
|
|
1198
|
+ idx: 0,
|
|
1199
|
+ sum: 1000,
|
|
1200
|
+ user: {
|
|
1201
|
+ name:'',
|
|
1202
|
+ selectType: "pinyin_qs",
|
|
1203
|
+ roledata:{
|
|
1204
|
+ rolecode:'incident-category-manager'
|
|
1205
|
+ }
|
|
1206
|
+ }
|
|
1207
|
+ }
|
|
1208
|
+ api_user_data.fetchDataList('user',postData).then(res=>{
|
|
1209
|
+ $scope.userList1=res.list;
|
|
1210
|
+ })
|
|
1211
|
+ }
|
|
1212
|
+ $scope.getUserList1()
|
1185
|
1213
|
|
1186
|
1214
|
|
1187
|
1215
|
|