yangkai 6 years ago
parent d0ea610146
commit aa43765010

@ -369,7 +369,7 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
content: 'Creation of new organization succeeded', content: 'Creation of new organization succeeded',
type: 'success' 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) { },function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
}) })

@ -1,9 +1,9 @@
<section class="content-header"> <section class="content-header">
<h1>New Organization</h1> <h1>New Organization</h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><i class="fa fa-users"></i> Basic Config</li> <li><i class="fa fa-users"></i> Framework</li>
<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>
<li class="active">New Organization</li> <li class="active">New Organization</li>
</ol> </ol>
@ -304,7 +304,7 @@
<div class="btn-group margin-bottom margin-top"> <div class="btn-group margin-bottom margin-top">
<button class="btn btn-success" type="button" ng-click="saveOrg(org_form)">Save <button class="btn btn-success" type="button" ng-click="saveOrg(org_form)">Save
</button> </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> </div>
<!--<button class="btn btn-success col-sm-offset-2" ng-click="update()"><i class="fa fa-save"></i> Update</button>--> <!--<button class="btn btn-success col-sm-offset-2" ng-click="update()"><i class="fa fa-save"></i> Update</button>-->
</form> </form>

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

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

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

Loading…
Cancel
Save