master
wangning 7 years ago
parent 8698d78681
commit e5a6813c91

@ -203,7 +203,7 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
})
}
}]);
app.controller('clientClearingConfigCtrl', ['$scope', '$http','commonDialog', function ($scope, $http,commonDialog) {
app.controller('clientClearingConfigCtrl', ['$scope', '$http','$state','commonDialog', function ($scope, $http,$state,commonDialog) {
$scope.bankCtrl = {rate_name:'Wechat'};
$scope.init = {manual:false};
$scope.getBankAccount = function () {
@ -240,7 +240,10 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
},function (resp) {
commonDialog.alert({title: 'Error!', content: resp.data.message, type: 'error'})
})
},function () {
$state.reload();
});
};
$scope.getRates();
}]);

Loading…
Cancel
Save