|
|
@@ -2022,6 +2022,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}]);
|
|
|
|
|
|
app.controller('AddUserInfoCtrl', ['$scope', '$modalInstance', 'customer', 'AccountUser', 'toaster', function($scope, $modalInstance, customer, AccountUser, toaster){
|
|
|
+ $scope.isChanged = false;
|
|
|
$scope.checkboxes = {
|
|
|
checked : false
|
|
|
};
|
|
|
@@ -2035,6 +2036,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
angular.forEach($scope.userinfos, function(item) {
|
|
|
item.distribute = $scope.checkboxes.checked;
|
|
|
});
|
|
|
+ $scope.isChanged = true;
|
|
|
};
|
|
|
// 点击其中一个明细的复选框
|
|
|
$scope.checkOne = function(vendor){
|
|
|
@@ -2046,6 +2048,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
$scope.checkboxes.checked = result;
|
|
|
+ $scope.isChanged = true;
|
|
|
};
|
|
|
$scope.close = function(save) {
|
|
|
var chooseResult = [];
|
|
|
@@ -12285,7 +12288,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.agree = function(id) {
|
|
|
AddPartner.agreeRequest({id: id}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '操作成功');
|
|
|
- $window.location.reload();
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ // $window.location.reload();
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|
|
|
@@ -12295,7 +12299,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.refuse = function(id, reason) {
|
|
|
AddPartner.refuseRequest({id: id, reason: reason}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '操作成功');
|
|
|
- $window.location.reload();
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ // $window.location.reload();
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|
|
|
@@ -12477,7 +12482,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.agree = function(id) {
|
|
|
AddPartner.agreeRequest({id: id}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '操作成功');
|
|
|
- $window.location.reload();
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ // $window.location.reload();
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|
|
|
@@ -12491,7 +12497,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.refuse = function(id, reason) {
|
|
|
AddPartner.refuseRequest({id: id, reason: reason}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '操作成功');
|
|
|
- $window.location.reload();
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ // $window.location.reload();
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|
|
|
@@ -12616,7 +12623,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.agree = function(id) {
|
|
|
AddPartner.agreeRequest({id: id}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '操作成功');
|
|
|
- $window.location.reload();
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ // $window.location.reload();
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|
|
|
@@ -12626,7 +12634,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.refuse = function(id, reason) {
|
|
|
AddPartner.refuseRequest({id: id, reason: reason}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '操作成功');
|
|
|
- $window.location.reload();
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ // $window.location.reload();
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|