Commit 841c9a3e authored by neo's avatar neo

[dev] add menu for list appoval and delete module-parts js in app

foulder
parent 13023bd2
......@@ -228,6 +228,22 @@ var frameworkModule = angular.module('app.framework', ['app.webservices', 'app.c
sticky: true
});
$stateProvider.state({
name: 'listApproval',
url: '/overview/listApproval',
views: {
'@': {
controller: ['$scope', '$stateParams', 'appTranslation',
function ($scope, $stateParams, appTranslation) {
appTranslation.load([appTranslation.vat,appTranslation.appPart]);
}],
template: '<app-overview servicetypeid="2"></app-overview>',
}
},
deepStateRedirect: true,
sticky: true
});
$stateProvider.state({
name: 'overviewAssetsManage',
url: '/overview/assetsManage',
......
(function () {
'use strict';
angular.module('app.config', [])
// region of current application
.constant('region', 'zh-CN')
//.constant('region', 'en-US')
// version of current application
.constant('version', '1.0.0.0')
// Exceptionless Server URL
.constant('exceptionlessServerURL', '')
.run([
'region', function (region) {
$.when(
$.getJSON("/Scripts/cldr/main/zh/numbers.json"),
$.getJSON("/Scripts/cldr/main/zh/ca-gregorian.json"),
$.getJSON("/Scripts/cldr/supplemental/likelySubtags.json")
).then(function () {
return [].slice.apply(arguments, [0]).map(function (result) {
return result[0];
});
}).then(Globalize.load).then(function () {
Globalize.locale("zh-CN");
// Globalize.locale("en-US");
DevExpress.localization.locale(region);
//DevExpress.localization.locale(navigator.language || navigator.browserLanguage);
});
}
]);
}());
\ No newline at end of file
This diff is collapsed.
......@@ -20,6 +20,11 @@
<span class="nav-icon-color">{{'MenuVAT' | translate}}</span>
</a>
</div>
<div class="nav-element-left">
<a ui-sref="listApproval">
<span class="nav-icon-color">{{'报表审批' | translate}}</span>
</a>
</div>
<!--<div class="nav-element-left">-->
<!--<a ui-sref="summaryDashboard" hover-show="second">-->
<!--<span class="nav-icon-color">{{'MenuTaxAnalysisPlatform' | translate}}</span>-->
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.

var noPermissionPageModule = angular.module('app.noPermissionPage', [])
.run(['$log', function ($log) {
$log.debug('app.noPermissionPage.run()...');
}])
.config(['$controllerProvider', '$compileProvider', '$filterProvider', '$provide', 'scriptDependencyProvider', '$stateProvider', '$urlRouterProvider',
function ($controllerProvider, $compileProvider, $filterProvider, $provide, scriptDependencyProvider, $stateProvider, $urlRouterProvider) {
'use strict';
// this is required to add controller/directive/filter/service after angular bootstrap
bindModule(noPermissionPageModule, $controllerProvider, $compileProvider, $filterProvider, $provide);
$stateProvider.state({
name: 'noPermissionPage',
url: '/noPermissionPage',
views: {
'@': {
controller: ['$scope', '$stateParams', 'appTranslation',
function ($scope, $stateParams, appTranslation) {
appTranslation.load([appTranslation.noPermissionPage]);
}],
template: '<no-permission-page></no-permission-page>'
}
},
resolve: scriptDependencyProvider.createDependenciesMap(scriptDependencyProvider.noPermissionPage),
deepStateRedirect: true,
sticky: true
});
}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment