Explorar o código

巡检范围不让修改父级

seimin hai 1 ano
pai
achega
251f5f6b7e

+ 1 - 0
assets/js/controllers/inspect/inspectionScopeCtrl.js

@@ -222,6 +222,7 @@ app.controller("inspectionScope", [
222 222
       var modalInstance = $modal.open({
223 223
         templateUrl: "assets/views/system/tpl/inspectionchange.html",
224 224
         controller: function ($scope, scope, $modalInstance) {
225
+          $scope.type = type;
225 226
           $scope.add1data = {};
226 227
           $scope.thisParent = {}; //当前点击节点的父节点
227 228
           $scope.filterTree = function (data, id) {

+ 1 - 1
assets/views/system/tpl/inspectionchange.html

@@ -10,7 +10,7 @@
10 10
                     <input class="form-control" ng-model="add1data.type" placeholder="巡检范围名称" />
11 11
                 </div>
12 12
             </div>
13
-            <div class="margin-bottom-15 anline">
13
+            <div class="margin-bottom-15 anline" ng-show="type !== 'edit'"><!-- 后端陈某不让修改 -->
14 14
                 <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">是否有父类:</div>
15 15
                 <div class="pull-right openaddinput">
16 16
                     <switch ng-model="addparent" class="green"></switch>