|
|
@@ -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);
|
|
|
});
|