Explorar o código

事件分类新增事件分类管理员

seimin %!s(int64=3) %!d(string=hai) anos
pai
achega
f4af01d947

+ 1 - 0
assets/js/controllers/system/notificationCtrl.js

@@ -11,6 +11,7 @@ app.controller('notificationCtr', ["$rootScope", "$scope", "$state", "$timeout",
11 11
     $scope.listData = [
12 12
         { "name": "报修流程" },
13 13
         { "name": "事件流程" }
14
+        // { "name": "上下班管理" }
14 15
     ];
15 16
     //转换通知规则
16 17
     $scope.computedRule = function (data, id) {

+ 28 - 0
assets/js/controllers/system/processdesign/incidentplan/incidentSetUpCtrl.js

@@ -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
 

+ 68 - 0
assets/views/system/notification.html

@@ -248,6 +248,74 @@
248 248
             </tr>
249 249
           </tbody>
250 250
         </table>
251
+        <!-- 上下班管理 -->
252
+        <table hidden class="jry_table" ng-if="leftListIdx==1" cellspacing="0" cellpadding="20"
253
+          style="font-weight:normal !important;margin-bottom: 15px;table-layout:fixed">
254
+          <thread>
255
+            <tr>
256
+              <th style="width:6%">
257
+                序号
258
+              </th>
259
+              <th style="width:10%">
260
+                通知流程
261
+              </th>
262
+              <th style="width:10%">
263
+                流程节点
264
+              </th>
265
+              <th style="width:10%">
266
+                状态
267
+              </th>
268
+              <th style="width:12%">
269
+                被通知人
270
+              </th>
271
+              <th style="width:18%">
272
+                通知规则
273
+              </th>
274
+              <th style="width:18%">
275
+                通知模式
276
+              </th>
277
+              <th style="width:10%">
278
+                是否开启
279
+              </th>
280
+              <th style="width:6%">
281
+                操作
282
+              </th>
283
+            </tr>
284
+          </thread>
285
+          <tbody class="tbody-hover">
286
+            <tr ng-repeat="rowData in sjList" ng-class="$index%2==1?'bgGray':''">
287
+              <td style="width:6%">
288
+                {{$index+1}}
289
+              </td>
290
+              <td style="width:10%">
291
+                {{rowData.processName}}
292
+              </td>
293
+              <td style="width:10%">
294
+                {{rowData.processNode}}
295
+              </td>
296
+              <td style="width:10%">
297
+                {{rowData.processStatus}}
298
+              </td>
299
+              <td style="width:12%">
300
+                {{rowData.notifiedPerson}}
301
+              </td>
302
+              <td style="width:18%">
303
+                {{computedRule(rowData.noticeRule,rowData.id)}}
304
+              </td>
305
+              <td style="width:18%">
306
+                {{rowData.messageStationFlag ==1?'站内消息':''}}
307
+                {{rowData.shortMessageFlag ==1?',短信':''}}
308
+                {{rowData.wechatMessageFlag ==1?',微信':''}}
309
+              </td>
310
+              <td style="width:10%">
311
+                {{rowData.flag ==1?'是':'否'}}
312
+              </td>
313
+              <td style="width:6%" class="bianji">
314
+                <span ng-click="editClick(rowData)">设置</span>
315
+              </td>
316
+            </tr>
317
+          </tbody>
318
+        </table>
251 319
       </div>
252 320
     </div>
253 321
   </div>

+ 25 - 0
assets/views/system/processdesign/incidentplan/incidentSetUp.html

@@ -552,6 +552,18 @@
552 552
                                     </ui-select>
553 553
                                 </div>
554 554
                                 <div class="tab-mainDiv-body-lineDiv-50">
555
+                                    <div class="tab-mainDiv-body-lable">分类管理员:</div>
556
+                                    <ui-select class="tab-mainDiv-body-content" ng-model="subdata.managerUser"
557
+                                            theme="bootstrap">
558
+                                        <ui-select-match placeholder="">
559
+                                            {{$select.selected.name}}
560
+                                        </ui-select-match>
561
+                                        <ui-select-choices repeat="item in userList1 | filter: $select.search">
562
+                                            <div ng-bind-html="item.name | highlight: $select.search"></div>
563
+                                        </ui-select-choices>
564
+                                    </ui-select>
565
+                                </div>
566
+                                <div class="tab-mainDiv-body-lineDiv-50">
555 567
                                     <div class="tab-mainDiv-body-lable">运维组/运维人员:</div>
556 568
                                     <div class="userGroupType">
557 569
                                         <label>
@@ -586,6 +598,7 @@
586 598
                                         </ui-select>
587 599
                                     </div>
588 600
                                 </div>
601
+                                
589 602
                                 <!-- <div class="tab-mainDiv-body-lineDiv-50">
590 603
                                     <div class="tab-mainDiv-body-lable">关联组:</div>
591 604
                                     <ui-select class="tab-mainDiv-body-content" ng-model="subdata.group" theme="bootstrap">
@@ -700,6 +713,18 @@
700 713
                                         </ui-select>
701 714
                                     </div>
702 715
                                     <div class="tab-mainDiv-body-lineDiv-50">
716
+                                        <div class="tab-mainDiv-body-lable">分类管理员:</div>
717
+                                        <ui-select class="tab-mainDiv-body-content" ng-model="adddata.managerUser"
718
+                                                theme="bootstrap">
719
+                                            <ui-select-match placeholder="">
720
+                                                {{$select.selected.name}}
721
+                                            </ui-select-match>
722
+                                            <ui-select-choices repeat="item in userList1 | filter: $select.search">
723
+                                                <div ng-bind-html="item.name | highlight: $select.search"></div>
724
+                                            </ui-select-choices>
725
+                                        </ui-select>
726
+                                    </div>
727
+                                    <div class="tab-mainDiv-body-lineDiv-50">
703 728
                                         <div class="tab-mainDiv-body-lable">运维组/运维人员:</div>
704 729
                                         <div class="userGroupType">
705 730
                                             <label>