Commit dab7e7e6 authored by neo's avatar neo

[dev] fix html and js hide other menu

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