소스 검색

禁止选中子项目文件夹

ellisran 4 달 전
부모
커밋
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; });
 
                 // 获取项目列表
-                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 = {
                     projectData,
                     tenderList,