managerMenu.js test

master
luoyang 6 years ago
parent 54f62e4c86
commit 7b5ed75947

@ -41,11 +41,11 @@
<link rel="stylesheet" href="static/lib/dist/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="static/css/common.css">
<style type="text/css">
body{
.backgroud{
background-image: url("/static/images/manage_bg.png");
}
.total_logo {
margin-top: 7%;
padding-top: 7%;
text-align: center;
}
.box-items {
@ -123,13 +123,13 @@ margin-bottom: 10%;"/>
</div>
<div ng-if="currentUser!=null" ng-cloak
ng-class="currentUser.org?(currentUser.org.banner_class||'fxplus'):'royalpay'" ui-view>
<div class="backgroud">
<div class="total_logo">
<a><img src="/static/images/manage_total_logo.png"> </a>
</div>
<div style="margin: 0 auto;display: flex;padding-top: 40px;width: 1050px;flex-wrap:wrap">
<div style="margin: 0 auto;display: flex;padding-top: 40px;padding-bottom:4.75%;width: 60%;flex-wrap:wrap">
<div class="box-items" ng-if="'10'|withRole">
<a ui-sref="listMenu({role:'Compliance'})" ui-sref-opts="{reload:true}">
<div class="boxs">
@ -220,6 +220,7 @@ margin-bottom: 10%;"/>
</a>
</div>
</div>
</div>
</div>
</body>

@ -4,13 +4,16 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
app.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('listMenu', {
url: '/menu?role',
templateUrl: '/manage_menu.html',
templateUrl: '/static/config/managers/templates/managers.html',
controller: 'listMenuCtrl'
})
});
}]);
app.controller('listMenuCtrl', ['$scope', '$http', '$filter','$uibModal', 'commonDialog','stateParams', function ($scope, $http,$filter, $uibModal, commonDialog,$stateParams) {
console.log("dadadadada + " + $stateParams.role);
app.controller('listMenuCtrl', ['$scope', '$http', '$filter','$uibModal', 'commonDialog','$stateParams', function ($scope, $http,$filter, $uibModal, commonDialog,$stateParams) {
function init() {
console.log("dadadadada + " + $stateParams.role);
}
init();
}]);
return app;

Loading…
Cancel
Save