Explorar o código

施工日志相关

MaiXinRong hai 2 meses
pai
achega
3ee9f1c0c5

+ 0 - 1
app/base/base_controller.js

@@ -35,7 +35,6 @@ class BaseController extends Controller {
             }
             menuList.datacollect.display = ctx.subProject.showDataCollect || false;
             menuList.file.display = ctx.subProject.page_show.openFile || false;
-            // menuList.construction.display = ctx.session && ctx.session.sessionProject ? ctx.session.sessionProject.page_show.openConstruction : false;
             menuList.contract.display = ctx.subProject.page_show.openContract || false;
             menuList.financial.display = ctx.subProject.page_show.openFinancial || false;
             menuList.budget.display = ctx.subProject.openBudget || false;

+ 1 - 0
app/const/sp_page_show.js

@@ -30,6 +30,7 @@ const tenderPageControl = [
     { title: '投资进度', name: 'xxjd', value: pageStatus.show, type: 'checkbox' },
     { title: '材料调差', name: 'openMaterial', value: pageStatus.show, type: 'checkbox' },
     { title: '过程结算', name: 'openSettle', value: pageStatus.show, type: 'checkbox' },
+    { title: '施工日志', name: 'openTenderContract', value: pageStatus.show, type: 'checkbox' },
     { title: '合同管理', name: 'openTenderContract', value: pageStatus.show, type: 'checkbox' },
 ];
 // 报表相关开关

+ 1 - 1
app/middleware/construction_check.js

@@ -22,7 +22,7 @@ module.exports = options => {
      */
     return function* constructionCheck(next) {
         try {
-            if (!this.session.sessionProject.page_show.openConstruction) {
+            if (!this.subProject.page_show.openConstruction) {
                 throw '该功能已关闭或无法查看';
             }
             const id = parseInt(this.params.tid);