|
|
@@ -35,16 +35,28 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
"right-view" : {
|
|
|
templateUrl : "static/tpl/index/sale/right.html"
|
|
|
}
|
|
|
+ },
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = null;
|
|
|
}
|
|
|
}).state('sale.index', {
|
|
|
url : "",
|
|
|
- templateUrl : "static/tpl/index/sale/index.html"
|
|
|
+ templateUrl : "static/tpl/index/sale/index.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = null;
|
|
|
+ }
|
|
|
}).state('sale.home', {
|
|
|
url : "/",
|
|
|
- templateUrl : "static/tpl/index/sale/index.html"
|
|
|
+ templateUrl : "static/tpl/index/sale/index.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = null;
|
|
|
+ }
|
|
|
}).state('sale.todo', {
|
|
|
url : "/todo",
|
|
|
- templateUrl : "static/tpl/index/sale/todo.html"
|
|
|
+ templateUrl : "static/tpl/index/sale/todo.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = null;
|
|
|
+ }
|
|
|
}).state('sale.todo.inquiry', {
|
|
|
url : "/inquiry",
|
|
|
templateUrl : "static/tpl/index/sale/inquiry.html",
|
|
|
@@ -71,28 +83,34 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
}
|
|
|
}).state('sale.inquiry', {
|
|
|
url : "/inquiry",
|
|
|
- templateUrl : "static/tpl/index/sale/inquiry.html"
|
|
|
- }).state('sale.inquiry.todo', {
|
|
|
- url : "/todo",
|
|
|
- templateUrl : "static/tpl/index/sale/inquiry.html"
|
|
|
+ templateUrl : "static/tpl/index/sale/inquiry.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = 'inquiry';
|
|
|
+ }
|
|
|
+ }).state('sale.quotation', {
|
|
|
+ url : "/quotation",
|
|
|
+ templateUrl : "static/tpl/index/sale/quotation.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = 'quotation';
|
|
|
+ }
|
|
|
}).state('sale.order', {
|
|
|
url : "/order",
|
|
|
- templateUrl : "static/tpl/index/sale/order.html"
|
|
|
- }).state('sale.order.todo', {
|
|
|
- url : "/todo",
|
|
|
- templateUrl : "static/tpl/index/sale/order.html"
|
|
|
+ templateUrl : "static/tpl/index/sale/order.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = 'order';
|
|
|
+ }
|
|
|
}).state('sale.change', {
|
|
|
url : "/change",
|
|
|
- templateUrl : "static/tpl/index/sale/change.html"
|
|
|
- }).state('sale.change.todo', {
|
|
|
- url : "/todo",
|
|
|
- templateUrl : "static/tpl/index/sale/change.html"
|
|
|
+ templateUrl : "static/tpl/index/sale/change.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = 'change';
|
|
|
+ }
|
|
|
}).state('sale.notice', {
|
|
|
url : "/notice",
|
|
|
- templateUrl : "static/tpl/index/sale/notice.html"
|
|
|
- }).state('sale.notice.todo', {
|
|
|
- url : "/todo",
|
|
|
- templateUrl : "static/tpl/index/sale/notice.html"
|
|
|
+ templateUrl : "static/tpl/index/sale/notice.html",
|
|
|
+ controller: function($rootScope) {
|
|
|
+ $rootScope.active = 'notice';
|
|
|
+ }
|
|
|
}).state('user', {
|
|
|
url : "/user",
|
|
|
views : {
|