Browse Source

feat: getData接口增加constructionName

vian 4 years ago
parent
commit
3a4826bea4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      modules/pm/controllers/pm_controller.js

+ 2 - 0
modules/pm/controllers/pm_controller.js

@@ -260,6 +260,8 @@ module.exports = {
             //获取单位工程完整目录结构
             let fullPath = await pm_facade.getFullPath(projectID);
             projInfo.fullPath = fullPath;
+            // 建设项目名称
+            projInfo.constructionName = fullPath[fullPath.length - 3];
             // 获取分享的tip
             projInfo.shareTip = await pm_facade.getShareTip(projectID, 2);
             // 获取分享状态