fix sub_manage switch切换

master
luoyang 5 years ago
parent 5e88f2cc36
commit 2d718aa92c

@ -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