Browse Source

优化新增配送规则交互

hulh 8 years ago
parent
commit
c3707627d5

+ 8 - 2
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_deliveryRule_ctrl.js

@@ -424,6 +424,7 @@ define([ 'app/app' ], function(app) {
                         DistributionRule.saveRule({isAdd:isAdd, isActive:$scope.isActive}, $scope.modifyRule , function (data) {
                         DistributionRule.saveRule({isAdd:isAdd, isActive:$scope.isActive}, $scope.modifyRule , function (data) {
                             if (data.success){
                             if (data.success){
                                 $scope.editFrame = false;
                                 $scope.editFrame = false;
+                                $scope.chooseBox = false;
                                 $scope.tab = 'deliverRule';
                                 $scope.tab = 'deliverRule';
                                 if (isAdd){
                                 if (isAdd){
                                     toaster.pop('info', "保存成功");
                                     toaster.pop('info', "保存成功");
@@ -489,6 +490,7 @@ define([ 'app/app' ], function(app) {
 
 
         $scope.cancelEdit = function () {
         $scope.cancelEdit = function () {
             $scope.editFrame = false;
             $scope.editFrame = false;
+            $scope.chooseBox = false;
             $scope.tab = 'deliverRule';
             $scope.tab = 'deliverRule';
         };
         };
 
 
@@ -584,7 +586,7 @@ define([ 'app/app' ], function(app) {
                                 items: null,
                                 items: null,
                                 selectedNum : 0,
                                 selectedNum : 0,
                                 folded: true
                                 folded: true
-                            }
+                            };
                             $scope.hmtChild.items = convert(v, $scope.hmtChild);
                             $scope.hmtChild.items = convert(v, $scope.hmtChild);
                             var hmtArr = [];
                             var hmtArr = [];
                             hmtArr.push($scope.hmtChild);
                             hmtArr.push($scope.hmtChild);
@@ -601,7 +603,7 @@ define([ 'app/app' ], function(app) {
             $scope.chooseBox = true;
             $scope.chooseBox = true;
             $scope.tree = $scope.tree ? $scope.tree : new TreeData($scope.cityData);
             $scope.tree = $scope.tree ? $scope.tree : new TreeData($scope.cityData);
             $scope.tree.newInitData($scope.mapArray);
             $scope.tree.newInitData($scope.mapArray);
-        }
+        };
 
 
         /**
         /**
          * 切换生效状态
          * 切换生效状态
@@ -649,6 +651,10 @@ define([ 'app/app' ], function(app) {
             $scope.deleteFrame = false;
             $scope.deleteFrame = false;
         };
         };
 
 
+        // document.addEventListener('click', this.checkShowFilter){
+        //
+        // }
+
     }]);
     }]);
 
 
     // 地区选择
     // 地区选择