明树Git Lab

Commit 8029d326 authored by zfp1's avatar zfp1

update

parent 71fee394
Pipeline #104450 passed with stage
in 3 seconds
...@@ -125,70 +125,70 @@ async function getProjectInfo({ id }) { ...@@ -125,70 +125,70 @@ async function getProjectInfo({ id }) {
where: { id: id }, where: { id: id },
// raw: true, // raw: true,
include: [ include: [
{ // {
model: DB.ProjectBjtj, // model: DB.ProjectBjtj,
as: 'projectBjtjs', // as: 'projectBjtjs',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectCwpjzb, // model: DB.ProjectCwpjzb,
as: 'projectCwpjzbs', // as: 'projectCwpjzbs',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectFxgl, // model: DB.ProjectFxgl,
as: 'projectFxgls', // as: 'projectFxgls',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectGdxx, // model: DB.ProjectGdxx,
as: 'projectGdxxs', // as: 'projectGdxxs',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectJczt, // model: DB.ProjectJczt,
as: 'projectJczts', // as: 'projectJczts',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectJsgm, // model: DB.ProjectJsgm,
as: 'projectJsgms', // as: 'projectJsgms',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectLcbjd, // model: DB.ProjectLcbjd,
as: 'projectLcbjds', // as: 'projectLcbjds',
}, // },
{ // {
model: DB.ProjectSpyj, // model: DB.ProjectSpyj,
as: 'projectSpyjs', // as: 'projectSpyjs',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectTzzjll, // model: DB.ProjectTzzjll,
as: 'projectTzzjlls', // as: 'projectTzzjlls',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectTzzt, // model: DB.ProjectTzzt,
as: 'projectTzzts', // as: 'projectTzzts',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ // {
model: DB.ProjectXmtzze, // model: DB.ProjectXmtzze,
as: 'projectXmtzzes', // as: 'projectXmtzzes',
// where: { del: 0 }, // // where: { del: 0 },
// attributes: [], // // attributes: [],
}, // },
{ {
model: DB.File, model: DB.File,
as: 'files', as: 'files',
...@@ -203,6 +203,18 @@ async function getProjectInfo({ id }) { ...@@ -203,6 +203,18 @@ async function getProjectInfo({ id }) {
return {}; return {};
} }
project = project.toJSON(); project = project.toJSON();
project.projectBjtjs = await DB.ProjectBjtj.findAll({where:{projectId: id}, raw: true});
project.projectCwpjzbs = await DB.ProjectCwpjzb.findAll({where:{projectId: id}, raw: true});
project.projectFxgls = await DB.ProjectFxgl.findAll({where:{projectId: id}, raw: true});
project.projectGdxxs = await DB.ProjectGdxx.findAll({where:{projectId: id}, raw: true});
project.projectJczts = await DB.ProjectJczt.findAll({where:{projectId: id}, raw: true});
project.projectJsgms = await DB.ProjectJsgm.findAll({where:{projectId: id}, raw: true});
project.projectLcbjds = await DB.ProjectLcbjd.findAll({where:{projectId: id}, raw: true});
project.projectSpyjs = await DB.ProjectSpyj.findAll({where:{projectId: id}, raw: true});
project.projectTzzjlls = await DB.ProjectTzzjll.findAll({where:{projectId: id}, raw: true});
project.projectTzzts = await DB.ProjectTzzt.findAll({where:{projectId: id}, raw: true});
project.projectXmtzzes = await DB.ProjectXmtzze.findAll({where:{projectId: id}, raw: true});
// let files = await DB.ProjectXmtzze.findAll({projectId: id});
project.projectXmtzzes = utils.buildTree2(project.projectXmtzzes, 'xh', 'parentXh'); project.projectXmtzzes = utils.buildTree2(project.projectXmtzzes, 'xh', 'parentXh');
//处理文件 还原成项目各个字段拥有的文件 //处理文件 还原成项目各个字段拥有的文件
......
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