|
@@ -85,7 +85,7 @@ app.controller("inspectionScope", [
|
85
|
85
|
}
|
86
|
86
|
})
|
87
|
87
|
}
|
88
|
|
-
|
|
88
|
+
|
89
|
89
|
}
|
90
|
90
|
});
|
91
|
91
|
};
|
|
@@ -598,6 +598,51 @@ app.controller("inspectionScope", [
|
598
|
598
|
console.log($scope.notice);
|
599
|
599
|
console.log($scope.copyInspection.tree);
|
600
|
600
|
console.log($scope.stateModel);
|
|
601
|
+ // let trees = $scope.copyInspection.tree;
|
|
602
|
+ // for (let i = 0; i < trees.length; i++) {
|
|
603
|
+ // let element = trees[i];
|
|
604
|
+ // if(!element.group){
|
|
605
|
+ // SweetAlert.swal({
|
|
606
|
+ // title: "校验错误",
|
|
607
|
+ // text: `【${element.name}】未选择线下巡检默认组`,
|
|
608
|
+ // type: "error",
|
|
609
|
+ // confirmButtonColor: "#DD6B55"
|
|
610
|
+ // });
|
|
611
|
+ // return;
|
|
612
|
+ // }
|
|
613
|
+ // if(!element.user){
|
|
614
|
+ // SweetAlert.swal({
|
|
615
|
+ // title: "校验错误",
|
|
616
|
+ // text: `【${element.name}】未选择线上巡检默认人`,
|
|
617
|
+ // type: "error",
|
|
618
|
+ // confirmButtonColor: "#DD6B55"
|
|
619
|
+ // });
|
|
620
|
+ // return;
|
|
621
|
+ // }
|
|
622
|
+
|
|
623
|
+ // let children = trees[i].children || [];
|
|
624
|
+ // for (let i = 0; i < children.length; i++) {
|
|
625
|
+ // let element = children[i];
|
|
626
|
+ // if(!element.group){
|
|
627
|
+ // SweetAlert.swal({
|
|
628
|
+ // title: "校验错误",
|
|
629
|
+ // text: `【${element.parent.type}】-【${element.name}】未选择线下巡检默认组`,
|
|
630
|
+ // type: "error",
|
|
631
|
+ // confirmButtonColor: "#DD6B55"
|
|
632
|
+ // });
|
|
633
|
+ // return;
|
|
634
|
+ // }
|
|
635
|
+ // if(!element.user){
|
|
636
|
+ // SweetAlert.swal({
|
|
637
|
+ // title: "校验错误",
|
|
638
|
+ // text: `【${element.parent.type}】-【${element.name}】未选择线上巡检默认人`,
|
|
639
|
+ // type: "error",
|
|
640
|
+ // confirmButtonColor: "#DD6B55"
|
|
641
|
+ // });
|
|
642
|
+ // return;
|
|
643
|
+ // }
|
|
644
|
+ // }
|
|
645
|
+ // }
|
601
|
646
|
if ($scope.stateModel.model === 0) {
|
602
|
647
|
// 不设置为模块的时候需要弹窗提示
|
603
|
648
|
var modalInstance = $modal.open({
|
|
@@ -1151,7 +1196,7 @@ app.directive("zTree", function () {
|
1151
|
1196
|
zTreeOnCheckCommon([], [])
|
1152
|
1197
|
}
|
1153
|
1198
|
}
|
1154
|
|
-
|
|
1199
|
+
|
1155
|
1200
|
$scope.setFn.call($scope, {
|
1156
|
1201
|
params: $scope.clickDirective
|
1157
|
1202
|
})
|