明树Git Lab

Commit b6248355 authored by zfp1's avatar zfp1

update

parent 0eba9273
Pipeline #104024 passed with stage
in 3 seconds
...@@ -505,9 +505,7 @@ async function getProjectInfo(req, res, next) { ...@@ -505,9 +505,7 @@ async function getProjectInfo(req, res, next) {
// raw: true // raw: true
}); });
project = project.toJSON(); project = project.toJSON();
//处理 projectXmtzzes 树结构
let projectXmtzzes = project.projectXmtzzes || [];
project.projectXmtzzes = utils.buildTree(projectXmtzzes, 'kid');
//处理文件 还原成项目各个字段拥有的文件 //处理文件 还原成项目各个字段拥有的文件
let files = project.files || []; let files = project.files || [];
files = files.map(o => { o.proFieldKey = o.jt_project_file && o.jt_project_file.proFieldKey; delete o.jt_project_file; return o; }); files = files.map(o => { o.proFieldKey = o.jt_project_file && o.jt_project_file.proFieldKey; delete o.jt_project_file; return o; });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment