|
|
@@ -23,7 +23,31 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
return httpInterceptor;
|
|
|
}]);
|
|
|
app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
|
|
|
- $stateProvider.state('sale', {
|
|
|
+ $stateProvider.state('index', {
|
|
|
+ url: "/index",
|
|
|
+ views: {
|
|
|
+ "left-view": {
|
|
|
+ templateUrl: "static/tpl/index/common/leftAll.html",
|
|
|
+ controller: 'LeftCtrl'
|
|
|
+ },
|
|
|
+ "right-view": {
|
|
|
+ templateUrl: "static/tpl/index/home/right.html",
|
|
|
+ controller: 'RightCtrl'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).state('home', {
|
|
|
+ url: "/",
|
|
|
+ views: {
|
|
|
+ "left-view": {
|
|
|
+ templateUrl: "static/tpl/index/common/leftAll.html",
|
|
|
+ controller: 'LeftCtrl'
|
|
|
+ },
|
|
|
+ "right-view": {
|
|
|
+ templateUrl: "static/tpl/index/home/right.html",
|
|
|
+ controller: 'RightCtrl'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).state('sale', {
|
|
|
url: "/sale",
|
|
|
views: {
|
|
|
"left-view": {
|
|
|
@@ -775,7 +799,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
templateUrl: "static/tpl/index/sale/vendorPerformanceAssess_detail.html",
|
|
|
controller: 'VendorPerformanceAssessDetailCtrl'
|
|
|
});
|
|
|
- $urlRouterProvider.otherwise('sale/pubinquiry');
|
|
|
+ $urlRouterProvider.otherwise('/index');
|
|
|
}]);
|
|
|
|
|
|
|