Browse Source

新的合作伙伴页,同意或拒绝会刷新页面。

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@9482 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
dongbw 8 years ago
parent
commit
9304f1f7d7
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/main/webapp/resources/js/index/app.js

+ 7 - 7
src/main/webapp/resources/js/index/app.js

@@ -12114,7 +12114,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 	/**
 	 * 建立合作关系申请 (我的合作伙伴)
 	 */
-	app.controller('AddPartnerRequestCtrl', ['$scope', 'AddPartnerMyRequest', 'toaster', 'BaseService', 'ngTableParams', 'AddPartner', '$timeout', '$rootScope', 'VendorInfo', function($scope, AddPartnerMyRequest, toaster, BaseService, ngTableParams, AddPartner, $timeout, $rootScope, VendorInfo) {
+	app.controller('AddPartnerRequestCtrl', ['$scope', 'AddPartnerMyRequest', 'toaster', 'BaseService', 'ngTableParams', 'AddPartner', '$timeout', '$rootScope', 'VendorInfo', '$window', function($scope, AddPartnerMyRequest, toaster, BaseService, ngTableParams, AddPartner, $timeout, $rootScope, VendorInfo, $window) {
 		BaseService.scrollBackToTop();
 		$scope.status = "partner";
 		$scope.active = 'done';
@@ -12233,7 +12233,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		$scope.agree = function(id) {
 			AddPartner.agreeRequest({id: id}, {}, function(data) {
 				toaster.pop('success', '提示', '操作成功');
-				$scope.tableParams.reload();
+                $window.location.reload();
 			}, function(response) {
 				toaster.pop('error', '提示', response.data);
 			});
@@ -12243,7 +12243,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		$scope.refuse = function(id, reason) {
 			AddPartner.refuseRequest({id: id, reason: reason}, {}, function(data) {
 				toaster.pop('success', '提示', '操作成功');
-				$scope.tableParams.reload();
+                $window.location.reload();
 			}, function(response) {
 				toaster.pop('error', '提示', response.data);
 			});
@@ -12306,7 +12306,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
     /**
      * 建立合作关系申请 (新的合作伙伴)
      */
-    app.controller('NewPartnerCtrl', ['$scope', 'AddPartnerMyRequest', 'toaster', 'BaseService', 'ngTableParams', 'AddPartner', '$timeout', '$rootScope', 'VendorInfo', function($scope, AddPartnerMyRequest, toaster, BaseService, ngTableParams, AddPartner, $timeout, $rootScope, VendorInfo) {
+    app.controller('NewPartnerCtrl', ['$scope', 'AddPartnerMyRequest', 'toaster', 'BaseService', 'ngTableParams', 'AddPartner', '$timeout', '$rootScope', 'VendorInfo', '$window', function($scope, AddPartnerMyRequest, toaster, BaseService, ngTableParams, AddPartner, $timeout, $rootScope, VendorInfo, $window) {
         BaseService.scrollBackToTop();
         $scope.status = "partner";
         $scope.active = 'all'; // 所有申请记录
@@ -12501,7 +12501,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 	/**
 	 * 建立合作关系处理申请
 	 */
-	app.controller('AddPartnerMessageCtrl', ['$scope', 'AddPartnerMyMessage', 'toaster', 'BaseService', 'ngTableParams', 'AddPartner', 'AddPartnerMyRequest', function($scope, AddPartnerMyMessage, toaster, BaseService, ngTableParams, AddPartner, AddPartnerMyRequest) {
+	app.controller('AddPartnerMessageCtrl', ['$scope', 'AddPartnerMyMessage', 'toaster', 'BaseService', 'ngTableParams', 'AddPartner', 'AddPartnerMyRequest', '$window', function($scope, AddPartnerMyMessage, toaster, BaseService, ngTableParams, AddPartner, AddPartnerMyRequest, $window) {
 		BaseService.scrollBackToTop();
 		$scope.active = 'todo';
 		var getMessagetStatus = function(active) {
@@ -12564,7 +12564,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		$scope.agree = function(id) {
 			AddPartner.agreeRequest({id: id}, {}, function(data) {
 				toaster.pop('success', '提示', '操作成功');
-                $scope.tableParams.reload();
+                $window.location.reload();
 			}, function(response) {
 				toaster.pop('error', '提示', response.data);
 			});
@@ -12574,7 +12574,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		$scope.refuse = function(id, reason) {
 			AddPartner.refuseRequest({id: id, reason: reason}, {}, function(data) {
 				toaster.pop('success', '提示', '操作成功');
-                $scope.tableParams.reload();
+                $window.location.reload();
 			}, function(response) {
 				toaster.pop('error', '提示', response.data);
 			});