|
|
@@ -42,8 +42,9 @@ class BaseController extends Controller {
|
|
|
menuList.financial.display = ctx.subProject.page_show.openFinancial || false;
|
|
|
menuList.budget.display = ctx.subProject.page_show.openBudget || false;
|
|
|
menuList.payment.display = ctx.subProject.page_show.openPayment || false;
|
|
|
- menuList.quality.display = ctx.subProject.page_show.quality || false;
|
|
|
- menuList.inspection.display = ctx.subProject.page_show.qualityInspection || false;
|
|
|
+ menuList.quality.display = ctx.subProject.page_show.quality || ctx.subProject.page_show.qualityInspection || false;
|
|
|
+ menuList.quality.children.find(item => item.msg === 'quality').display = ctx.subProject.page_show.quality || false;
|
|
|
+ menuList.quality.children.find(item => item.msg === 'inspection').display = ctx.subProject.page_show.qualityInspection || false;
|
|
|
menuList.safe.display = ctx.subProject.page_show.safePayment || ctx.subProject.page_show.safeInspection || false;
|
|
|
menuList.safe.children.find(item => item.msg === 'payment').display = ctx.subProject.page_show.safePayment || false;
|
|
|
menuList.safe.children.find(item => item.msg === 'inspection').display = ctx.subProject.page_show.safeInspection || false;
|
|
|
@@ -60,6 +61,14 @@ class BaseController extends Controller {
|
|
|
child.url = `/sp/${ctx.subProject.id}/contract/tender`;
|
|
|
}
|
|
|
}
|
|
|
+ } else if (index === 'quality') {
|
|
|
+ for (const child of im.children) {
|
|
|
+ if (child.msg === 'quality') {
|
|
|
+ child.url = `/sp/${ctx.subProject.id}/quality`;
|
|
|
+ } else if (child.msg === 'inspection') {
|
|
|
+ child.url = `/sp/${ctx.subProject.id}/quality/inspection`;
|
|
|
+ }
|
|
|
+ }
|
|
|
} else if (index === 'safe') {
|
|
|
for (const child of im.children) {
|
|
|
if (child.msg === 'payment') {
|
|
|
@@ -70,8 +79,6 @@ class BaseController extends Controller {
|
|
|
}
|
|
|
} else if (index === 'financial') {
|
|
|
im.url = `/sp/${ctx.subProject.id}/${im.controller}/${ctx.subProject.financialToUrl}`;
|
|
|
- } else if (index === 'inspection') {
|
|
|
- im.url = `/sp/${ctx.subProject.id}/quality/inspection`;
|
|
|
} else {
|
|
|
im.url = `/sp/${ctx.subProject.id}/${im.controller}`;
|
|
|
}
|