yangkai 6 years ago
parent d0ea610146
commit aa43765010

@ -369,7 +369,7 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
content: 'Creation of new organization succeeded',
type: 'success'
});
$state.go('^.detail',{orgId:resp.data.org_id},{reload:true});
$state.go('organizations.detail',{orgId:resp.data.org_id},{reload:true});
},function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
})

@ -1,9 +1,9 @@
<section class="content-header">
<h1>New Organization</h1>
<ol class="breadcrumb">
<li><i class="fa fa-users"></i> Basic Config</li>
<li><i class="fa fa-users"></i> Framework</li>
<li>
<a ui-sref="^" ui-sref-opts="{reload:true}">Organizations</a>
<a ui-sref="organizations" ui-sref-opts="{reload:true}">Organizations</a>
</li>
<li class="active">New Organization</li>
</ol>
@ -304,7 +304,7 @@
<div class="btn-group margin-bottom margin-top">
<button class="btn btn-success" type="button" ng-click="saveOrg(org_form)">Save
</button>
<a class="btn btn-danger" role="button" ui-sref="^" ui-sref-opts="{reload:true}">Back</a>
<a class="btn btn-danger" role="button" ui-sref="organizations" ui-sref-opts="{reload:true}">Back</a>
</div>
<!--<button class="btn btn-success col-sm-offset-2" ng-click="update()"><i class="fa fa-save"></i> Update</button>-->
</form>

@ -11,7 +11,7 @@
<section class="content-header">
<h1 ng-bind="org.name"></h1>
<ol class="breadcrumb">
<li><i class="fa fa-users"></i> Basic Config</li>
<li><i class="fa fa-users"></i> Framework</li>
<li>
<a ui-sref="^" ui-sref-opts="{reload:true}">Organizations</a>
</li>

@ -521,8 +521,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
$http.post('/sys/partners', $scope.partner).then(function (resp) {
commonDialog.alert({title: 'Success', content: 'Register new partner successfully', type: 'success'});
$scope.updateMerchantLocation();
$scope.loadPartners();
$state.go('^.detail', {clientMoniker: resp.data.client_moniker})
// $scope.loadPartners();
$state.go('partners.detail', {clientMoniker: resp.data.client_moniker})
}, function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
});

@ -43,9 +43,9 @@
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-sitemap"></i> Payment
<i class="fa fa-sitemap"></i> Partner Manage
</li>
<li><a ui-sref="^">Partner Manage</a></li>
<li><a ui-sref="^">Partner Directories</a></li>
<li class="active">Partner Detail</li>
</ol>
</section>

Loading…
Cancel
Save