Commit dab7e7e6 authored by neo's avatar neo

[dev] fix html and js hide other menu

parent 819f6c38
...@@ -9,22 +9,22 @@ ...@@ -9,22 +9,22 @@
<span id="overview" class="nav-icon-color">{{'MenuOverview' | translate}}</span> <span id="overview" class="nav-icon-color">{{'MenuOverview' | translate}}</span>
</a> </a>
</div> </div>
<div class="nav-element-left"> <!--<div class="nav-element-left">-->
<!-- ng-if="hasQuerySummaryDashboardCode" --> <!--&lt;!&ndash; ng-if="hasQuerySummaryDashboardCode" &ndash;&gt;-->
<a href="app/df/knowlegeBasedSystem/code/pages/taxInforListNew.html" target="_blank"> <!--<a href="app/df/knowlegeBasedSystem/code/pages/taxInforListNew.html" target="_blank">-->
<span class="nav-icon-color">{{'MenuTaxPolicyManagement' | translate}}</span> <!--<span class="nav-icon-color">{{'MenuTaxPolicyManagement' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="nav-element-left"> <div class="nav-element-left">
<a ui-sref="overviewVat" hover-show="first"> <a ui-sref="overviewVat" hover-show="first">
<span class="nav-icon-color">{{'MenuTaxOperationManagement' | translate}}</span> <span class="nav-icon-color">{{'MenuTaxOperationManagement' | translate}}</span>
</a> </a>
</div> </div>
<div class="nav-element-left"> <!--<div class="nav-element-left">-->
<a ui-sref="summaryDashboard" hover-show="second"> <!--<a ui-sref="summaryDashboard" hover-show="second">-->
<span class="nav-icon-color">{{'MenuTaxAnalysisPlatform' | translate}}</span> <!--<span class="nav-icon-color">{{'MenuTaxAnalysisPlatform' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="nav-element-right"> <div class="nav-element-right">
...@@ -76,25 +76,25 @@ ...@@ -76,25 +76,25 @@
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="nav-sub-container first"> <div class="nav-sub-container first">
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="invoiceManagement.main" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" ui-sref="invoiceManagement.main" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'MenuInvoiceManagement' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuInvoiceManagement' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'MenuInvoiceManagement' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuInvoiceManagement' | translate}}</span>-->
</a> <!--</a>-->
<!---->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="outputInvoiceManage.imported" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" ui-sref="outputInvoiceManage.imported" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'OutMenuInvoiceManagement' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'OutMenuInvoiceManagement' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'OutMenuInvoiceManagement' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'OutMenuInvoiceManagement' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <div class="element-left">
<a ui-sref-active="active" ui-sref="overviewVat" ng-if="specialUser!=='simon'"> <a ui-sref-active="active" ui-sref="overviewVat" ng-if="specialUser!=='simon'">
<span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span> <span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span>
...@@ -103,52 +103,52 @@ ...@@ -103,52 +103,52 @@
<span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span> <span class="nav-sub-icon-color">{{'MenuVAT' | translate}}</span>
</a> </a>
</div> </div>
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="overviewAssetsManage"> <!--<a ui-sref-active="active" ui-sref="overviewAssetsManage">-->
<span class="nav-sub-icon-color">{{'MenuAMVAT' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuAMVAT' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<!-- ng-if="hasQuerySummaryDashboardCode" --> <!--&lt;!&ndash; ng-if="hasQuerySummaryDashboardCode" &ndash;&gt;-->
<a ui-sref-active="active" ui-sref="overviewCit" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" ui-sref="overviewCit" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'MenuCIT' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuCIT' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'MenuCIT' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuCIT' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="IncomeTax" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" ui-sref="IncomeTax" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'MenuDeferredTax' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuDeferredTax' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'MenuDeferredTax' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuDeferredTax' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" ui-sref="CashFlow" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" ui-sref="CashFlow" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'MenuCashFlow' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuCashFlow' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'MenuCashFlow' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuCashFlow' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" href="app/df/rd/%E4%B8%BB%E9%A1%B5_-_%E5%8A%A0%E8%AE%A1%E6%89%A3%E9%99%A4.html" target="_blank" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" href="app/df/rd/%E4%B8%BB%E9%A1%B5_-_%E5%8A%A0%E8%AE%A1%E6%89%A3%E9%99%A4.html" target="_blank" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'MenuRND' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuRND' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'MenuRND' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'MenuRND' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
<div class="element-left"> <!--<div class="element-left">-->
<a ui-sref-active="active" href="{{::tpUrl}}" target="_blank" ng-if="specialUser!=='simon'"> <!--<a ui-sref-active="active" href="{{::tpUrl}}" target="_blank" ng-if="specialUser!=='simon'">-->
<span class="nav-sub-icon-color">{{'TpRpt' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'TpRpt' | translate}}</span>-->
</a> <!--</a>-->
<a ng-if="specialUser==='simon'"> <!--<a ng-if="specialUser==='simon'">-->
<span class="nav-sub-icon-color">{{'TpRpt' | translate}}</span> <!--<span class="nav-sub-icon-color">{{'TpRpt' | translate}}</span>-->
</a> <!--</a>-->
</div> <!--</div>-->
</div> </div>
<div class="nav-sub-container second"> <div class="nav-sub-container second">
......
...@@ -112,15 +112,15 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer ...@@ -112,15 +112,15 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer
$scope.setPermissionMenu = function () { $scope.setPermissionMenu = function () {
$scope.menus = []; $scope.menus = [];
var menuList = [ var menuList = [
constant.vatPermission.dataImport.balanceSheet.queryCode, // constant.vatPermission.dataImport.balanceSheet.queryCode,
constant.vatPermission.dataImport.journalEntry.queryCode, // constant.vatPermission.dataImport.journalEntry.queryCode,
constant.vatPermission.dataImport.erpImport.queryCode, // constant.vatPermission.dataImport.erpImport.queryCode,
constant.vatPermission.dataImport.outputInvoice.queryCode, // constant.vatPermission.dataImport.outputInvoice.queryCode,
constant.vatPermission.dataImport.inputInvoice.queryCode, // constant.vatPermission.dataImport.inputInvoice.queryCode,
constant.vatPermission.dataImport.customInvoice.queryCode, // constant.vatPermission.dataImport.customInvoice.queryCode,
constant.vatPermission.dataImport.voucherMapping.queryCode, // constant.vatPermission.dataImport.voucherMapping.queryCode,
constant.vatPermission.dataImport.invoiceMapping.queryCode, // constant.vatPermission.dataImport.invoiceMapping.queryCode,
constant.vatPermission.dataImport.auditAdjust.queryCode, // constant.vatPermission.dataImport.auditAdjust.queryCode,
constant.vatPermission.dataPreview.balanceSheet.queryCode, constant.vatPermission.dataPreview.balanceSheet.queryCode,
constant.vatPermission.dataPreview.accountVoucher.queryCode, constant.vatPermission.dataPreview.accountVoucher.queryCode,
...@@ -143,96 +143,96 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer ...@@ -143,96 +143,96 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer
$scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) { $scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) {
if (data) { if (data) {
if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) { // if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.balanceSheet', state: 'importData.balanceSheet', num: 1, // name: 'importData.balanceSheet', state: 'importData.balanceSheet', num: 1,
permission: constant.vatPermission.dataImport.balanceSheet.queryCode, url: '#/vat/importData/balanceSheet' // permission: constant.vatPermission.dataImport.balanceSheet.queryCode, url: '#/vat/importData/balanceSheet'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) { // else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.journalEntry', state: 'importData.journalEntry', num: 1, // name: 'importData.journalEntry', state: 'importData.journalEntry', num: 1,
permission: constant.vatPermission.dataImport.journalEntry.queryCode, url: '#/vat/importData/journalEntry' // permission: constant.vatPermission.dataImport.journalEntry.queryCode, url: '#/vat/importData/journalEntry'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) { // else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.erpData', state: 'importData.erpData', num: 1, // name: 'importData.erpData', state: 'importData.erpData', num: 1,
permission: constant.vatPermission.dataImport.erpImport.queryCode, url: '#/vat/importData/erpData' // permission: constant.vatPermission.dataImport.erpImport.queryCode, url: '#/vat/importData/erpData'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) { // else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.outputInvoice', state: 'importData.outputInvoice', num: 1, // name: 'importData.outputInvoice', state: 'importData.outputInvoice', num: 1,
permission: constant.vatPermission.dataImport.outputInvoice.queryCode, url: '#/vat/importData/outputInvoice' // permission: constant.vatPermission.dataImport.outputInvoice.queryCode, url: '#/vat/importData/outputInvoice'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) { // else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.inputInvoice', state: 'importData.inputInvoice', num: 1, // name: 'importData.inputInvoice', state: 'importData.inputInvoice', num: 1,
permission: constant.vatPermission.dataImport.inputInvoice.queryCode, url: '#/vat/importData/inputInvoice' // permission: constant.vatPermission.dataImport.inputInvoice.queryCode, url: '#/vat/importData/inputInvoice'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) { // else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.customInvoice', state: 'importData.customInvoice', num: 1, // name: 'importData.customInvoice', state: 'importData.customInvoice', num: 1,
permission: constant.vatPermission.dataImport.customInvoice.queryCode, url: '#/vat/importData/customInvoice' // permission: constant.vatPermission.dataImport.customInvoice.queryCode, url: '#/vat/importData/customInvoice'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) { // else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.voucherMapping', state: 'importData.voucherMapping', num: 1, // name: 'importData.voucherMapping', state: 'importData.voucherMapping', num: 1,
permission: constant.vatPermission.dataImport.voucherMapping.queryCode, url: '#/vat/importData/voucherMapping' // permission: constant.vatPermission.dataImport.voucherMapping.queryCode, url: '#/vat/importData/voucherMapping'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) { // else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.invoiceMapping', state: 'importData.invoiceMapping', num: 1, // name: 'importData.invoiceMapping', state: 'importData.invoiceMapping', num: 1,
permission: constant.vatPermission.dataImport.invoiceMapping.queryCode, url: '#/vat/importData/invoiceMapping' // permission: constant.vatPermission.dataImport.invoiceMapping.queryCode, url: '#/vat/importData/invoiceMapping'
}); // });
} // }
else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) { // else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData' // permission: constant.vatPermission.dataImport.dataImportCode, url: '#/vat/importData'
}); // });
subMenus.push({ // subMenus.push({
name: 'importData.auditAdjust', state: 'importData.auditAdjust', num: 1, // name: 'importData.auditAdjust', state: 'importData.auditAdjust', num: 1,
permission: constant.vatPermission.dataImport.auditAdjust.queryCode, url: '#/vat/importData/auditAdjust' // permission: constant.vatPermission.dataImport.auditAdjust.queryCode, url: '#/vat/importData/auditAdjust'
}); // });
} // }
//else { //else {
// $scope.menus.push({ // $scope.menus.push({
// name: 'importData', state: 'importData', num: 1, // name: 'importData', state: 'importData', num: 1,
...@@ -358,7 +358,7 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer ...@@ -358,7 +358,7 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer
} }
if (data[constant.vatPermission.dataAnalysis.modelAnalysisCode]) { if (data[constant.vatPermission.dataAnalysis.modelAnalysisCode]) {
$scope.menus.push({ $scope.menus.push({
name: 'analyzeLayout', state: 'analyzeLayout', num: 5, name: 'analyzeLayout', state: 'analyzeLayout', num: 5,
permission: constant.vatPermission.dataAnalysis.dataAnalysisCode, url: '#/vat/analyzeLayout' permission: constant.vatPermission.dataAnalysis.dataAnalysisCode, url: '#/vat/analyzeLayout'
}); });
......
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