yangc 7 lat temu
rodzic
commit
0d0af7fde7

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

@@ -56,7 +56,7 @@ define([ 'app/app' ], function(app) {
                 $scope.showDeleteDialog = false;
                 $scope.initData();
             }, function (error) {
-                toaster.pop('error', error);
+                toaster.pop('error', error.data);
             });
         };
         $scope.addDistributor = function () {
@@ -335,7 +335,7 @@ define([ 'app/app' ], function(app) {
                 }
                 $modalInstance.close(data);
             },function (error) {
-                toaster.pop('error', '成功', '保存配送商失败 ' + error);
+                toaster.pop('error', '成功', '保存配送商失败 ' + error.data);
             });
         };
 

+ 4 - 4
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_takeSelf_ctrl.js

@@ -36,8 +36,8 @@ define([ 'app/app' ], function(app) {
                 if (data){
                     $scope.takeSelfTableParams.reload();
                 }
-            },function () {
-                toaster.pop('error', '更新自提点地址失败');
+            },function (err) {
+                toaster.pop('error', '更新自提点地址失败', err.data);
             })
         };
 
@@ -55,8 +55,8 @@ define([ 'app/app' ], function(app) {
                 $scope.deleteFrame = false;
                 toaster.pop('info', '删除自提点地址成功');
                 $scope.loadTakeSelfAddress();
-            }, function () {
-                toaster.pop('error', '删除自提点地址失败');
+            }, function (err) {
+                toaster.pop('error', '删除自提点地址失败', err.data);
             });
         };