fix sub_manage switch切换

luoyang 5 years ago
parent 3692aca1cf
commit f9896bd95b

@ -2395,7 +2395,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
$scope.init = {
child_each_refund: false,
sub_manage: false
}
};
$scope.newSubClient = function () {
$uibModal.open({
@ -2431,10 +2431,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
if (!$scope.paymentInfo) {
return;
}
if (!$scope.init.sub_manage) {
$scope.init.sub_manage = true;
return;
}
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/sub_manage', {allow: $scope.partner.sub_manage}).then(function () {
//$scope.loadPartnerPaymentInfo();
}, function (resp) {

Loading…
Cancel
Save