فهرست منبع

禁止选中子项目文件夹

ellisran 3 ماه پیش
والد
کامیت
5bb9d46ad3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/controller/sub_proj_setting_controller.js

+ 1 - 1
app/controller/sub_proj_setting_controller.js

@@ -558,7 +558,7 @@ module.exports = app => {
                 }).filter(x => { return x.groupList.length > 0; });
                 }).filter(x => { return x.groupList.length > 0; });
 
 
                 // 获取项目列表
                 // 获取项目列表
-                const subProjects = await ctx.service.subProject.getAllDataByCondition({ where: { project_id: projectId, is_delete: 0 } });
+                const subProjects = await ctx.service.subProject.getAllDataByCondition({ where: { project_id: projectId, is_folder: 0, is_delete: 0 } });
                 const renderData = {
                 const renderData = {
                     projectData,
                     projectData,
                     tenderList,
                     tenderList,