seimin 2 年之前
父節點
當前提交
3e14ee1b06

+ 1 - 0
assets/js/config.constant.js

@@ -89,6 +89,7 @@ app.constant('JS_REQUIRES', {
89 89
         'jry_customformCtrl': 'assets/js/controllers/customform/jry/customformCtrl.js', //告警建单页--jry
90 90
         'jry_sysformCtrl': 'assets/js/controllers/system/jry_systemFormCtrl.js', //告警详情页
91 91
         'incidentSetUpCtrl':'assets/js/controllers/system/processdesign/incidentplan/incidentSetUpCtrl.js', //事件设置
92
+        'inspectionScopeCtrl':'assets/js/controllers/inspect/inspectionScopeCtrl.js', //巡检范围设置
92 93
         'informationCtrl':'assets/js/controllers/system/informationCtrl.js',//服务指南
93 94
         'processNodeCtrl':'assets/js/controllers/system/processNodeCtrl.js',//流程节点
94 95
         'informationCateCtrl':'assets/js/controllers/system/informationCateCtrl.js',//服务指南分类

+ 13 - 0
assets/js/config.router.js

@@ -1363,6 +1363,8 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
1363 1363
                 }
1364 1364
             })
1365 1365
 
1366
+            
1367
+
1366 1368
             //巡检管理>巡检报告
1367 1369
             .state('app.inspection.inspectReport', {
1368 1370
                 url: '/inspectReport',
@@ -1397,6 +1399,17 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
1397 1399
                     label: 'ui-form'
1398 1400
                 }
1399 1401
             })
1402
+
1403
+            //巡检管理>巡检范围设置
1404
+            .state('app.inspectionScope', {
1405
+                url: '/inspectionScope',
1406
+                templateUrl: "assets/views/inspect/inspectionScope.html",
1407
+                resolve: loadSequence('ui.select', 'multi.select.tree', 'angularBootstrapNavTree', 'spin', 'ladda', 'angular-ladda', 'inspectionScopeCtrl'),
1408
+                title: 'Nav Manager',
1409
+                ncyBreadcrumb: {
1410
+                    label: 'User Manager'
1411
+                }
1412
+            })
1400 1413
             //巡检管理>巡检计划查看
1401 1414
             .state('app.inspection.form', {
1402 1415
                 url: '/form/{formKey}/{service}/{model}',

+ 9 - 8
assets/js/controllers/inspect/inspectForm.js

@@ -389,7 +389,7 @@ sysFormly.controller('SystemformCtrl', ['$rootScope', '$scope', '$parse', '$filt
389 389
             // if($stateParams.formKey=="system_edit"){
390 390
             // console.log("roleid="+$scope.roleid);
391 391
             console.log(vm);
392
-            if (vm.form.$valid && vm.model.inspection.typeIds) {
392
+            if (vm.form.$valid) {
393 393
                 if (data.inspection.planStrategy && data.inspection.planStrategy.id == 1) {
394 394
                     if (Date.parse(data.inspection.planStartTime) > (new Date().setMinutes(new Date().getMinutes() + 1))) {
395 395
                         vm.options.updateInitialValue();
@@ -660,13 +660,14 @@ sysFormly.controller('SystemformCtrl', ['$rootScope', '$scope', '$parse', '$filt
660 660
                                     if (response) {
661 661
                                         var resData = Restangular.stripRestangular(response);
662 662
                                         if (resData && resData.status == 200) {
663
-                                            SweetAlert.swal({
664
-                                                title: "提交成功!",
665
-                                                type: "success",
666
-                                                confirmButtonColor: "#007AFF"
667
-                                            }, function() {
668
-                                                $state.go($scope.formData.cancelUrl);
669
-                                            });
663
+                                            // SweetAlert.swal({
664
+                                            //     title: "提交成功!",
665
+                                            //     type: "success",
666
+                                            //     confirmButtonColor: "#007AFF"
667
+                                            // }, function() {
668
+                                            //     $state.go($scope.formData.cancelUrl);
669
+                                            // });
670
+                                            $state.go('app.inspectionScope');//跳转巡检范围设置
670 671
                                         } else {
671 672
                                             SweetAlert.swal({
672 673
                                                 title: "系统错误",

+ 6 - 6
assets/js/controllers/inspect/inspectPlanCtrl.js

@@ -121,12 +121,12 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
121 121
             enableFiltering: false,
122 122
             cellTemplate: '<div class="ui-grid-cell-contents">{{row.entity.planEndTime.length>16?grid.appScope.transferTime(row.entity.planEndTime):row.entity.planEndTime}}</div>'
123 123
         },
124
-        {
125
-            name: 'dictionary.name',
126
-            displayName: '巡检类型',
127
-            width: '109',
128
-            enableFiltering: false
129
-        },
124
+        // {
125
+        //     name: 'dictionary.name',
126
+        //     displayName: '巡检类型',
127
+        //     width: '109',
128
+        //     enableFiltering: false
129
+        // },
130 130
         {
131 131
             name: 'executeUser.name',
132 132
             displayName: '执行人/组',

文件差異過大導致無法顯示
+ 1508 - 0
assets/js/controllers/inspect/inspectionScopeCtrl.js


+ 2 - 1
assets/views/form.html

@@ -34,7 +34,8 @@
34 34
         <formly-form model="vm.model" fields="vm.fields" options="vm.options" form="vm.form" ng-if="vm.fields.length">
35 35
             <div></div>
36 36
             <div class="col-xs-12 margin-top-30 margin-bottom-30 text-center">
37
-                <button type="submit" ladda="ldloading.sm" class="btn btn-addbutton  addbutton" translate="form.button.SUBMIT">Submit</button>
37
+                <button ng-if="vm.model.submit == '下一步'" type="submit" ladda="ldloading.sm" class="btn btn-addbutton addbutton">下一步</button>
38
+                <button ng-if="vm.model.submit != '下一步'" type="submit" ladda="ldloading.sm" class="btn btn-addbutton  addbutton" translate="form.button.SUBMIT">Submit</button>
38 39
                 <button type="close" class="btn btn-removebutton removebutton" ng-click="closeModel()" translate="form.button.CLOSE">CLOSE </button>
39 40
                 <!-- <button type="button" ladda="ldloading.sm" class="margin-left-5 btn btn-default ladda-button" ng-click="vm.options.resetModel()" translate="form.button.RESET">Reset</button> -->
40 41
             </div>

+ 684 - 0
assets/views/inspect/inspectionScope.html

@@ -0,0 +1,684 @@
1
+<style>
2
+   .bigBoxBg{
3
+       background-color: rgb(249,249,249);
4
+       padding: 8px 0
5
+   }
6
+   .leftBox{
7
+       border: 1px rgb(234,234,234) solid;
8
+       background-color: white;
9
+       padding: 11px;
10
+       margin-top: 7px;
11
+       /* height: 565px; */
12
+   }
13
+   .leftBox i{
14
+       font-size: 14px;
15
+       color: #007AFF;
16
+   }
17
+   .leftBox .list{
18
+       height: 30px;
19
+       line-height: 30px;
20
+       padding: 0 4px
21
+   }
22
+   .leftBox .listCliI{
23
+       color:rgb(0,83,149)
24
+   }
25
+   .leftBox .listCli{
26
+       background-color: rgb(230,238,244);
27
+   }
28
+   .leftBox .list span{
29
+       font-size: 14px;
30
+       display: inline-block;
31
+       margin-left: 4px
32
+   }
33
+   .rightBox{
34
+        border: 1px rgb(234,234,234) solid;
35
+       background-color: white;
36
+       padding: 11px;
37
+       margin-top: 7px;
38
+       /* height: 565px; */
39
+   }
40
+   .btn_box{
41
+       margin-top: 8px;
42
+       width: 100%;
43
+       display: flex;
44
+       justify-content:center
45
+   }
46
+   .btnAdd{
47
+       width: 60px!important;
48
+       height: 34px!important;
49
+       background-color: rgb(0,83,149)!important;
50
+       border:1px rgb(0,83,149) solid;
51
+       color: white;
52
+       font-size: 14px;
53
+       margin-top: 8px
54
+   }
55
+   .btnReturn{
56
+       width: 100px!important;
57
+       height: 34px!important;
58
+       background-color: white!important;
59
+       border:1px #666666 solid;
60
+       color: #666666;
61
+       font-size: 14px;
62
+       margin-top: 8px;
63
+       margin-left: 8px
64
+   }
65
+   .emergencyIptSize{
66
+        width: 100%;
67
+        margin-top: 8px
68
+    }
69
+    .guanbiIco{
70
+        display: inline-block;
71
+        color: #999999;
72
+        margin-top: 10px;
73
+        margin-left: 9px;
74
+        font-size: 16px!important;
75
+        cursor: pointer;
76
+    }
77
+    .contentName{
78
+        text-align: center
79
+    }
80
+    .fonsize{
81
+        display: flex;
82
+        justify-content: space-between;
83
+        align-items: center;
84
+        font-size: 14px;
85
+        margin-top: 8px;
86
+    }
87
+   /* 事件分类开始 */
88
+   /* 公共css,需要复用 */
89
+    
90
+   .iconfont {
91
+        font-size: 14px;
92
+    }
93
+    
94
+    .nav-pills>li>a {
95
+        border-radius: 0px;
96
+        color: #333;
97
+    }
98
+    
99
+    .nav-pills>li.active>a,
100
+    .nav-pills>li.active>a:hover,
101
+    .nav-pills>li.active>a:focus {
102
+        background-color: #006bbf;
103
+        color: white !important;
104
+    }
105
+    
106
+    .panel-tabs,
107
+    .tabbable {
108
+        /* padding: 14px; */
109
+        background-color: white;
110
+    }
111
+    
112
+    .tab-content>.tab-pane,
113
+    .pill-content>.pill-pane {
114
+        padding: 14px;
115
+        border-bottom: 1px solid #eeeeee;
116
+        border-left: 1px solid #eeeeee;
117
+        border-right: 1px solid #eeeeee;
118
+        border-radius: 0px 0px 8px 8px;
119
+    }
120
+    
121
+    .nav-tabs>li.active a,
122
+    .nav-tabs>li.active a:hover,
123
+    .nav-tabs>li.active a:focus {
124
+        background-color: #006bc0;
125
+        color: white;
126
+    }
127
+    
128
+    .nav-tabs {
129
+        border-top: 1px solid #eeeeee;
130
+        border-bottom: 1px solid #eeeeee;
131
+        border-left: 1px solid #eeeeee;
132
+        border-right: 1px solid #eeeeee;
133
+        border-radius: 8px 8px 0 0;
134
+        height: 47px;
135
+    }
136
+    
137
+    .nav-tabs>li {
138
+        border-right: 1px solid #eeeeee;
139
+    }
140
+    
141
+    .nav-tabs>li:last-child {
142
+        border-right: none;
143
+    }
144
+    /* 独立css */
145
+    
146
+    .mainDiv {
147
+        /* background: red; */
148
+        /* padding: 14px; */
149
+        /* height: 50px; */
150
+        overflow: hidden;
151
+        /* zoom: 1; */
152
+    }
153
+    
154
+    .mainDivLeft {
155
+        border-radius: 8px;
156
+        border: 1px solid #eeeeee;
157
+        width: 288px;
158
+        float: left;
159
+    }
160
+    
161
+    .mainDivRight {
162
+        margin-left: 302px;
163
+        border-radius: 8px;
164
+        border: 1px solid #eeeeee;
165
+    }
166
+    
167
+    .mainDiv-head {
168
+        height: 47px;
169
+        line-height: 47px;
170
+        background: #f5f5f5;
171
+        font-size: 16px;
172
+        color: #606367;
173
+        border-radius: 8px 8px 0 0;
174
+        padding-left: 10px;
175
+        padding-right: 4px;
176
+    }
177
+    
178
+    .mainDivLeft-span {
179
+        border: 1px solid;
180
+        /* padding: 15px 0px 15px 0px; */
181
+        padding-left: 15px;
182
+        padding-right: 15px;
183
+        padding-top: 4px;
184
+        padding-bottom: 4px;
185
+        height: 28px;
186
+        line-height: 28px;
187
+        border-radius: 4px;
188
+        margin-right: 10px;
189
+        font-size: 14px;
190
+    }
191
+    
192
+    .mainDiv-head-right {
193
+        display: inline-block;
194
+        float: right;
195
+    }
196
+    
197
+    .edit-left {
198
+        display: inline-block;
199
+        /* float: left; */
200
+        margin-left: 10px;
201
+    }
202
+    
203
+    .span-1 {
204
+        border-color: #006bc0;
205
+        color: #006bc0;
206
+    }
207
+    
208
+    .span-2 {
209
+        border: none;
210
+        color: white;
211
+        background-color: #006bc0;
212
+    }
213
+    
214
+    .span-3 {
215
+        border: none;
216
+        color: white;
217
+        background-color: #fc4c58;
218
+    }
219
+    
220
+    .mainDiv-body {
221
+        border-radius: 8px;
222
+        border: 1px solid #eeeeee;
223
+        margin: 14px;
224
+        padding-top: 14px;
225
+        /* height: 402px; */
226
+        overflow: auto;
227
+    }
228
+    
229
+    .mainDiv-body-1 {
230
+        height: 50px;
231
+        line-height: 50px;
232
+        font-size: 16px;
233
+        color: #606367;
234
+        padding: 0px 14px;
235
+        border-bottom: 1px solid #eeeeee;
236
+    }
237
+    
238
+    .mainDiv-body-2 {
239
+        height: 70px;
240
+        line-height: 70px;
241
+        font-size: 14px;
242
+        color: #606367;
243
+        padding: 0px 30px;
244
+        border-bottom: 1px solid #eeeeee;
245
+    }
246
+    
247
+    .mainDiv-body-2:last-child {
248
+        border-bottom: none;
249
+    }
250
+    
251
+    .fixHeight {
252
+        /* height: 450px; */
253
+        overflow: auto;
254
+    }
255
+    
256
+    .mainDiv-body-3 {
257
+        height: 50px;
258
+        line-height: 50px;
259
+        font-size: 14px;
260
+        color: #606367;
261
+        padding: 0px 30px;
262
+        border-bottom: 1px solid #eeeeee;
263
+    }
264
+    
265
+    .mainDiv-body-3:last-child {
266
+        border-bottom: none;
267
+    }
268
+    .btn{
269
+        margin-left: 5px
270
+    }
271
+    .mainDiv-body-img {
272
+        height: 90px;
273
+        border-radius: 4px;
274
+        margin: 14px;
275
+        margin-bottom: 0px;
276
+        overflow: hidden;
277
+    }
278
+    
279
+    .mainDiv-body-noList {
280
+        height: 110px;
281
+        margin: 50px 0;
282
+        text-align: center;
283
+    }
284
+    
285
+    .form-control {
286
+        display: inline-block;
287
+    }
288
+    
289
+    .mainDivLeft-span-1 {
290
+        border: 1px solid;
291
+        padding-left: 15px;
292
+        padding-right: 15px;
293
+        /* padding-top: 4px; */
294
+        /* padding-bottom: 4px; */
295
+        height: 28px;
296
+        line-height: 28px;
297
+        border-radius: 4px;
298
+        margin-right: 10px;
299
+        font-size: 14px;
300
+        display: inline-block;
301
+    }
302
+    
303
+    .mainDivLeft-span-2 {
304
+        border: 1px solid;
305
+        padding-left: 15px;
306
+        padding-right: 15px;
307
+        /* padding-top: 4px; */
308
+        /* padding-bottom: 4px; */
309
+        height: 28px;
310
+        line-height: 28px;
311
+        border-radius: 4px;
312
+        margin-right: 10px;
313
+        font-size: 14px;
314
+        display: inline-block;
315
+    }
316
+    
317
+    .mainDivLeft-span-edit-1 {
318
+        border: 1px solid;
319
+        padding-left: 8px;
320
+        padding-right: 8px;
321
+        /* padding-top: 4px; */
322
+        /* padding-bottom: 4px; */
323
+        height: 22px;
324
+        line-height: 22px;
325
+        border-radius: 2px;
326
+        margin-right: 10px;
327
+        font-size: 12px;
328
+        display: inline-block;
329
+    }
330
+    
331
+    .mainDivLeft-span-edit-2 {
332
+        border: 1px solid;
333
+        padding-left: 8px;
334
+        padding-right: 8px;
335
+        /* padding-top: 4px; */
336
+        /* padding-bottom: 4px; */
337
+        height: 22px;
338
+        line-height: 22px;
339
+        border-radius: 2px;
340
+        margin-right: 10px;
341
+        font-size: 12px;
342
+        display: inline-block;
343
+    }
344
+    /* tab内容css */
345
+    
346
+    .tab-mainDiv {
347
+        border: 1px solid #eeeeee;
348
+        border-radius: 8px;
349
+        /* min-height: 360px; */
350
+    }
351
+    
352
+    .tab-mainDiv-head {
353
+        text-align: center;
354
+        border-bottom: 1px solid #eeeeee;
355
+        height: 34px;
356
+        line-height: 34px;
357
+        font-size: 14px;
358
+        color: #93989e;
359
+    }
360
+    
361
+    .tab-mainDiv-body {
362
+        padding: 14px;
363
+        min-height: 280px;
364
+        max-height: 320px;
365
+        overflow: auto;
366
+        /* padding-top: 14px; */
367
+        /* padding-bottom: 14px; */
368
+    }
369
+    
370
+    .tab-mainDiv-body-lineDiv-50 {
371
+        /* display: inline-block; */
372
+        font-size: 14px;
373
+        color: #93989e;
374
+        margin-right: 14px;
375
+        width: 47%;
376
+        padding-left: 14px;
377
+    }
378
+    
379
+    .tab-mainDiv-body-lineDiv-100 {
380
+        /* display: inline-block; */
381
+        font-size: 14px;
382
+        color: #93989e;
383
+        margin-right: 14px;
384
+        width: 96%;
385
+        padding-left: 14px;
386
+    }
387
+    
388
+    .tab-mainDiv-body-lable {
389
+        padding-bottom: 10px;
390
+        /* width: 370px; */
391
+    }
392
+    
393
+    .tab-mainDiv-body-content {
394
+        padding-bottom: 10px;
395
+        /* width: 370px; */
396
+    }
397
+    
398
+    .tab-mainDiv-body-content>textarea {
399
+        min-height: 68px;
400
+        width: 100%;
401
+    }
402
+    
403
+    .tab-mainDiv-foot {
404
+        /* margin: 14px auto; */
405
+        border-top: 1px solid #eeeeee;
406
+        text-align: center;
407
+        padding: 7px;
408
+    }
409
+    
410
+    .tab-mainDiv-body-button-1 {
411
+        display: inline-block;
412
+        width: 80px;
413
+        height: 34px;
414
+        line-height: 34px;
415
+        font-size: 14px;
416
+        color: white;
417
+        text-align: center;
418
+        background-color: #006bc0;
419
+        border-radius: 4px;
420
+        margin-right: 14px;
421
+    }
422
+    
423
+    .tab-mainDiv-body-button-2 {
424
+        display: inline-block;
425
+        width: 80px;
426
+        height: 34px;
427
+        line-height: 34px;
428
+        font-size: 14px;
429
+        color: #93989e;
430
+        text-align: center;
431
+        background-color: #f5f5f5;
432
+        border-radius: 4px;
433
+        box-sizing: border-box;
434
+        border: 1px solid #eeeeee;
435
+    }
436
+    
437
+    .tree-control .tree-view {
438
+        width: inherit;
439
+        z-index: 9999;
440
+    }
441
+    .userGroupType label:nth-child(2){
442
+        margin-left: 26px;
443
+        margin-bottom: 20px;
444
+    }
445
+    .userGroupType label input{
446
+        margin-right: 5px;
447
+    }
448
+    .group,.user{
449
+        margin-bottom: 140px;
450
+    }
451
+    /* 事件分类结束 */
452
+    .inspection_btns{
453
+        height: 60px;
454
+        display: flex;
455
+        justify-content: center;
456
+        align-items: center;
457
+    }
458
+    .inspection_name{
459
+        display: flex;
460
+        justify-content: space-between;
461
+        align-items: center;
462
+    }
463
+</style>
464
+
465
+<section id="page-title">
466
+    <div class="row">
467
+        <div class="col-sm-8">
468
+            <h1 class="mainTitle">巡检范围设置
469
+                <i tooltip='巡检范围设置' tooltip-placement="right" class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"></i>
470
+            </h1>
471
+        </div>
472
+    </div>
473
+</section>
474
+<div ng-controller="inspectionScope">
475
+    <div class="col-xs-12 bigBoxBg">
476
+        <div class="col-xs-3">
477
+            <!-- <div class="fonsize">
478
+                <span>巡检范围设置</span>
479
+                <div class="mainDiv-head-right">
480
+                    <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">新增</div>
481
+                    <div class="btn btn_remove" ng-class="isMousedown?'btn_removeMousedown':''" ng-mousedown="changeRemoveClass()" ng-click="remove1(output)" ng-show="shanchu">删除</div>
482
+                </div>
483
+            </div> -->
484
+            <div class="mainDiv-head">
485
+                <!-- <span>巡检范围设置</span> -->
486
+                <div class="mainDiv-head-right">
487
+                    <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">新增</div>
488
+                    <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">修改</div>
489
+                    <div class="btn btn_remove" ng-class="isMousedown?'btn_removeMousedown':''" ng-mousedown="changeRemoveClass()" ng-click="remove1(output)" ng-show="shanchu">删除</div>
490
+                </div>
491
+            </div>
492
+            <div class="leftBox">
493
+                <!-- <div class="list" ng-repeat="v in listData" ng-click="leftListCli($index,v)" ng-class="{'listCli':$index==leftListIdx}">
494
+                    <i class="iconfont icon-liebiao1" ng-class="{'listCliI':$index==leftListIdx}"></i>
495
+                    <span>{{v.name}}</span>
496
+                </div> -->
497
+                <abn-tree tree-data="my_1data" tree-control="my_tree" on-select="my_tree_1handler(branch)" expand-level="2" icon-leaf="iconfont icon-fenlei" icon-expand="ti-plus" icon-collapse="ti-minus"></abn-tree>
498
+            </div>
499
+        </div>
500
+        <div class="col-xs-6">
501
+            <div class="inspection_name">
502
+                <div>策略名称<span class="red">*</span>:<input style="width: 220px;" class="form-control" placeholder="策略名称..." /></div>
503
+                <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">设置所有范围</div>
504
+            </div>
505
+            <div class="rightBox">
506
+                <!-- 巡检范围开始 -->
507
+                <div ng-if="leftListName=='巡检范围'">
508
+                    <div class="mainDiv">
509
+                        <!-- 谁固定谁在前 -->
510
+                        <div class="mainDivLeft">
511
+                            <div class="mainDiv-head">
512
+                                <span>已选中的巡检范围</span>
513
+                                <div class="mainDiv-head-right">
514
+                                    <!-- <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">新增</div> -->
515
+                                    <div class="btn btn_remove" ng-class="isMousedown?'btn_removeMousedown':''" ng-mousedown="changeRemoveClass()" ng-click="remove1(output)" ng-show="shanchu">删除</div>
516
+                                </div>
517
+                            </div>
518
+                            <div class="mainDiv-body fixHeight">
519
+                                <div class="box-tree">
520
+                                    <span ng-if="doing_async">...加载中...</span>
521
+                                    <abn-tree tree-data="my_1data" tree-control="my_tree" on-select="my_tree_1handler(branch)" expand-level="2" icon-leaf="iconfont icon-fenlei" icon-expand="ti-plus" icon-collapse="ti-minus"></abn-tree>
522
+                                </div>
523
+                            </div>
524
+                        </div>
525
+                
526
+                        <div class="mainDivRight" ng-if="changecate">
527
+                            <div class="mainDiv-head">
528
+                                <span>服务目录修改</span>
529
+                            </div>
530
+                            <div class="mainDiv-body">
531
+                                <div class="tab-mainDiv-body-lineDiv-50">
532
+                                    <div class="tab-mainDiv-body-lable">
533
+                                        服务目录名称:
534
+                                    </div>
535
+                                    <div class="tab-mainDiv-body-content">
536
+                                        <input class="form-control" ng-model="sub1data.type" placeholder="服务目录名称..." />
537
+                                    </div>
538
+                                </div>
539
+                                <div class="tab-mainDiv-body-lineDiv-50" ng-if="thisParent">
540
+                                    <div class="tab-mainDiv-body-lable">
541
+                                        父类:
542
+                                    </div>
543
+                                    <div class="tab-mainDiv-body-content">
544
+                                        <multi-select-tree ng-model="sub1data.parent" data-input-model="tree_1data" data-output-model="sub1data.parent" theme="bootstrap" multi-select="false" data-default-label="{{thisParent.type}}" data-callback="onFilterCallback(item)" data-select-only-leafs="false" data-trans-label="label"
545
+                                            data-switch-view="false"></multi-select-tree>
546
+                                    </div>
547
+                                </div>
548
+                                <div class="tab-mainDiv-body-lineDiv-50">
549
+                                    <div class="tab-mainDiv-body-lable">线下巡检默认组:</div>
550
+                                    <ui-select class="tab-mainDiv-body-content" ng-model="group_user.offlineGroup"
551
+                                        theme="bootstrap">
552
+                                        <ui-select-match placeholder="">
553
+                                            {{$select.selected.groupName}}
554
+                                        </ui-select-match>
555
+                                        <ui-select-choices repeat="item in groupList | filter: $select.search">
556
+                                            <div ng-bind-html="item.groupName | highlight: $select.search"></div>
557
+                                        </ui-select-choices>
558
+                                    </ui-select>
559
+                                </div>
560
+                                <div class="tab-mainDiv-body-lineDiv-50">
561
+                                    <div class="tab-mainDiv-body-lable">线上巡检默认人:</div>
562
+                                    <ui-select class="tab-mainDiv-body-content" ng-model="group_user.onlineUser"
563
+                                        theme="bootstrap">
564
+                                        <ui-select-match placeholder="">
565
+                                            {{$select.selected.name}}
566
+                                        </ui-select-match>
567
+                                        <ui-select-choices repeat="item in userList | filter: $select.search">
568
+                                            <div ng-bind-html="item.name | highlight: $select.search"></div>
569
+                                        </ui-select-choices>
570
+                                    </ui-select>
571
+                                </div>
572
+                            </div>
573
+                            <div class="tab-mainDiv-foot">
574
+                                <div class="btn btn_search" ng-click="submit1change(sub1data)" ng-show="bianji">
575
+                                    确认
576
+                                </div>
577
+                            </div>
578
+                        </div>
579
+                
580
+                        <div class="mainDivRight" ng-if="add1cate">
581
+                            <div class="mainDiv-head">
582
+                                <span>服务目录新增</span>
583
+                            </div>
584
+                            <div class="mainDiv-body">
585
+                                <div class="tab-mainDiv-body-lineDiv-50">
586
+                                    <div class="tab-mainDiv-body-lable">
587
+                                        服务目录名称:
588
+                                    </div>
589
+                                    <div class="tab-mainDiv-body-content">
590
+                                        <input class="form-control" ng-model="add1data.type" placeholder="服务目录名称..." />
591
+                                    </div>
592
+                                </div>
593
+                                <div class="tab-mainDiv-body-lineDiv-50">
594
+                                    <div class="tab-mainDiv-body-lable">
595
+                                        是否有父类:
596
+                                    </div>
597
+                                    <div class="tab-mainDiv-body-content">
598
+                                        <switch ng-model="addparent" class="green"></switch>
599
+                                    </div>
600
+                                </div>
601
+                                <div class="tab-mainDiv-body-lineDiv-50" ng-if="addparent">
602
+                                    <div class="tab-mainDiv-body-lable">
603
+                                        父类:
604
+                                    </div>
605
+                                    <div class="tab-mainDiv-body-content">
606
+                                        <multi-select-tree ng-model="add1data.parent" data-input-model="tree_1data" data-output-model="add1data.parent" theme="bootstrap" multi-select="false" data-default-label="服务目录" data-callback="onFilterCallback(item)" data-select-only-leafs="false" data-trans-label="label"
607
+                                            data-switch-view="false"></multi-select-tree>
608
+                                    </div>
609
+                                </div>
610
+                                <div class="tab-mainDiv-body-lineDiv-50">
611
+                                    <div class="tab-mainDiv-body-lable">线下巡检默认组:</div>
612
+                                    <ui-select class="tab-mainDiv-body-content" ng-model="group_user_Add.group"
613
+                                        theme="bootstrap">
614
+                                        <ui-select-match placeholder="">
615
+                                            {{$select.selected.groupName}}
616
+                                        </ui-select-match>
617
+                                        <ui-select-choices repeat="item in groupList | filter: $select.search">
618
+                                            <div ng-bind-html="item.groupName | highlight: $select.search"></div>
619
+                                        </ui-select-choices>
620
+                                    </ui-select>
621
+                                </div>
622
+                                <div class="tab-mainDiv-body-lineDiv-50">
623
+                                    <div class="tab-mainDiv-body-lable">线上巡检默认人:</div>
624
+                                    <ui-select class="tab-mainDiv-body-content" ng-model="group_user_Add.user"
625
+                                        theme="bootstrap">
626
+                                        <ui-select-match placeholder="">
627
+                                            {{$select.selected.name}}
628
+                                        </ui-select-match>
629
+                                        <ui-select-choices repeat="item in userList | filter: $select.search">
630
+                                            <div ng-bind-html="item.name | highlight: $select.search"></div>
631
+                                        </ui-select-choices>
632
+                                    </ui-select>
633
+                                </div>
634
+                            </div>
635
+                            <div class="tab-mainDiv-foot">
636
+                                <div class="btn btn_search" ng-click="submit1add(add1data)">
637
+                                    确认
638
+                                </div>
639
+                                <div class="btn btn_clean" ng-click="closethis(addcategory)">
640
+                                    取消
641
+                                </div>
642
+                            </div>
643
+                        </div>
644
+                
645
+                        <div class="mainDivRight" ng-if="add1cate==''&&changecate==''">
646
+                            <!-- <div class="mainDivRight"> -->
647
+                            <div class="mainDiv-head">
648
+                                <span>操作提示</span>
649
+                            </div>
650
+                            <div class="mainDiv-body">
651
+                                <div class="mainDiv-body-noList">
652
+                                    <img src="./assets/images/place/icon_quesheng.png" alt="">
653
+                                    <p class="handlefont">请选择服务目录</p>
654
+                                </div>
655
+                            </div>
656
+                        </div>
657
+                    </div>   
658
+                </div>
659
+                <!-- 巡检范围结束 -->
660
+            </div>
661
+            <div class="inspection_btns col-xs-12">
662
+                <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">执行巡检计划</div>
663
+                <div class="btn btn_remove" ng-class="isMousedown?'btn_removeMousedown':''" ng-mousedown="changeRemoveClass()" ng-click="remove1(output)" ng-show="shanchu">关闭</div>
664
+            </div>
665
+        </div>
666
+        <div class="col-xs-3">
667
+            <div class="mainDiv-head">
668
+                <span>巡检范围策略模板</span>
669
+                <!-- <div class="mainDiv-head-right">
670
+                    <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">新增</div>
671
+                    <div class="btn btn_search" ng-click="addType1(output)" ng-show="xinzeng">修改</div>
672
+                    <div class="btn btn_remove" ng-class="isMousedown?'btn_removeMousedown':''" ng-mousedown="changeRemoveClass()" ng-click="remove1(output)" ng-show="shanchu">删除</div>
673
+                </div> -->
674
+            </div>
675
+            <div class="leftBox">
676
+                <div class="list" ng-repeat="v in listData" ng-click="leftListCli($index,v)" ng-class="{'listCli':$index==leftListIdx}">
677
+                    <i class="iconfont icon-liebiao1" ng-class="{'listCliI':$index==leftListIdx}"></i>
678
+                    <span>{{v.name}}</span>
679
+                </div>
680
+            </div>
681
+        </div>
682
+        
683
+    </div>
684
+</div>

+ 57 - 0
assets/views/system/tpl/incpectionchange.html

@@ -0,0 +1,57 @@
1
+<div class="modal-header">
2
+    <div class="modal-title fontcolor-two fontsizes-14">{{title}}<button type="button" class="close pull-right" ng-click="cancel()">×</button></div>
3
+</div>
4
+<div class="modal-body margin-top-15 margin-left-15 margin-bottom-15 margin-right-15 addrequster">
5
+    <form role="form" class="row">
6
+        <div class="margin-left-30 margin-right-30 margin-top-20">
7
+            <div class="margin-bottom-15 anline">
8
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">巡检范围名称<span class="red">*</span>:</div>
9
+                <div class="pull-right openaddinput">
10
+                    <input class="form-control" ng-model="add1data.type" placeholder="巡检范围名称" />
11
+                </div>
12
+            </div>
13
+            <div class="margin-bottom-15 anline">
14
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">是否有父类:</div>
15
+                <div class="pull-right openaddinput">
16
+                    <switch ng-model="addparent" class="green"></switch>
17
+                </div>
18
+            </div>
19
+            <div class="margin-bottom-15 anline" ng-if="addparent">
20
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">父类:</div>
21
+                <div class="pull-right openaddinput">
22
+                    <multi-select-tree ng-model="add1data.parent" data-input-model="tree_1data" data-output-model="add1data.parent" theme="bootstrap" multi-select="false" data-default-label="{{thisParent.type}}" data-callback="onFilterCallback(item)" data-select-only-leafs="false" data-trans-label="label" data-switch-view="false"></multi-select-tree>
23
+                </div>
24
+            </div>
25
+            <div class="margin-bottom-15 anline">
26
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">线下巡检默认组:</div>
27
+                <div class="pull-right openaddinput">
28
+                    <ui-select class="tab-mainDiv-body-content" ng-model="group_user_Add.offlineGroup" theme="bootstrap">
29
+                        <ui-select-match placeholder="">
30
+                            {{$select.selected.groupName}}
31
+                        </ui-select-match>
32
+                        <ui-select-choices repeat="item in groupList | filter: $select.search">
33
+                            <div ng-bind-html="item.groupName | highlight: $select.search"></div>
34
+                        </ui-select-choices>
35
+                    </ui-select>
36
+                </div>
37
+            </div>
38
+            <div class="margin-bottom-15 anline">
39
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">线上巡检默认人:</div>
40
+                <div class="pull-right openaddinput">
41
+                    <ui-select class="tab-mainDiv-body-content" ng-model="group_user_Add.onlineUser" theme="bootstrap">
42
+                        <ui-select-match placeholder="">
43
+                            {{$select.selected.name}}
44
+                        </ui-select-match>
45
+                        <ui-select-choices repeat="item in userList | filter: $select.search">
46
+                            <div ng-bind-html="item.name | highlight: $select.search"></div>
47
+                        </ui-select-choices>
48
+                    </ui-select>
49
+                </div>
50
+            </div>
51
+        </div>
52
+    </form>
53
+</div>
54
+<div class="modal-footer">
55
+    <a ng-click="savercode(deptdata)" data-dismiss="modal" class="btn btn-primary">保存</a>
56
+    <button class="btn btn-primary btn-o" ng-click="cancel()" translate="modal.button.CANCEL">取消</button>
57
+</div>