Browse Source

配送商删除和配送规则选择错误

yangc 7 years ago
parent
commit
51798f0021

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

@@ -669,6 +669,8 @@ define([ 'app/app' ], function(app) {
                 if (data){
                     $scope.ruleTableParams.reload();
                 }
+            }, function (error) {
+                toaster.pop('error', error);
             })
         };
 

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

@@ -55,8 +55,8 @@ define([ 'app/app' ], function(app) {
             Distributor.deleteOne({id:id},{},function () {
                 $scope.showDeleteDialog = false;
                 $scope.initData();
-            }, function () {
-
+            }, function (error) {
+                toaster.pop('error', error);
             });
         };
         $scope.addDistributor = function () {