|
@@ -298,6 +298,7 @@ module.exports = app => {
|
|
|
return { id: item.id, name: item.name, groupList };
|
|
|
}).filter(x => { return x.groupList.length > 0; });
|
|
|
const relaBlock = ctx.service.subProjPermission.getRelaPermissionBlock(ctx.query.ptype);
|
|
|
+ const subProjects = await this.ctx.service.subProject.getAllDataByCondition({ where: { project_id: this.ctx.session.sessionProject.id, is_folder: 0, is_delete: 0 }});
|
|
|
const renderData = {
|
|
|
ptype: ctx.query.ptype,
|
|
|
ptypeStr: relaBlock ? relaBlock.name : '',
|
|
@@ -311,6 +312,7 @@ module.exports = app => {
|
|
|
permissionBlock: ctx.service.subProjPermission.PermissionBlock,
|
|
|
permissionConst: permissionConst[ctx.query.ptype],
|
|
|
accountList,
|
|
|
+ subProjects,
|
|
|
};
|
|
|
await this.layout('sp_setting/permission.ejs', renderData, 'sp_setting/user_modal.ejs');
|
|
|
} catch (error) {
|