|
|
@@ -36,8 +36,9 @@ class BaseController extends Controller {
|
|
|
menuList.info.display = ctx.subProject.page_show.openInfo || false;
|
|
|
menuList.datacollect.display = ctx.subProject.showDataCollect || false;
|
|
|
menuList.file.display = ctx.subProject.page_show.openFile || false;
|
|
|
- menuList.contract.display = ctx.subProject.page_show.openContract || ctx.subProject.page_show.openTenderContract || false;
|
|
|
- menuList.contract.children.find(item => item.msg === 'subproj').display = ctx.subProject.page_show.openContract || false;
|
|
|
+ const contractPermission = ctx.subProject.permission.contract_permission;
|
|
|
+ menuList.contract.display = (ctx.subProject.page_show.openContract && contractPermission.length > 0) || ctx.subProject.page_show.openTenderContract || false;
|
|
|
+ menuList.contract.children.find(item => item.msg === 'subproj').display = (ctx.subProject.page_show.openContract && contractPermission.length > 0) || false;
|
|
|
menuList.contract.children.find(item => item.msg === 'tender').display = ctx.subProject.page_show.openTenderContract || false;
|
|
|
menuList.financial.display = ctx.subProject.page_show.openFinancial || false;
|
|
|
menuList.budget.display = ctx.subProject.page_show.openBudget || false;
|