From 7e87375c25db153b289637b753dae0fb326b47dc Mon Sep 17 00:00:00 2001 From: wenlele Date: Thu, 18 May 2023 16:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/means/index.js | 6 ++++-- web/client/src/sections/means/containers/devOpsStandard.jsx | 2 +- .../src/sections/means/containers/faultInformation.jsx | 2 +- web/client/src/sections/means/containers/projectMeans.jsx | 2 +- web/client/src/sections/means/containers/repairFQA.jsx | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/api/app/lib/controllers/means/index.js b/api/app/lib/controllers/means/index.js index 4447e4c..1698b08 100644 --- a/api/app/lib/controllers/means/index.js +++ b/api/app/lib/controllers/means/index.js @@ -5,13 +5,15 @@ async function addEditFile (ctx, next) { try { const models = ctx.fs.dc.models; const data = ctx.request.body; - const { higherFileId, fileName } = data + const { higherFileId, fileName, projectId, type } = data let onefind = await models.ProjectFolder.findOne({ where: { higherFileId: higherFileId || null, - fileName + fileName, + projectId, + type } }) if (onefind) { diff --git a/web/client/src/sections/means/containers/devOpsStandard.jsx b/web/client/src/sections/means/containers/devOpsStandard.jsx index d707fe4..352f642 100644 --- a/web/client/src/sections/means/containers/devOpsStandard.jsx +++ b/web/client/src/sections/means/containers/devOpsStandard.jsx @@ -404,7 +404,7 @@ const Rest = (props) => { bordered={false} empty={
- 暂无告警数据 + 暂无文件
} onRow={(record, index) => { diff --git a/web/client/src/sections/means/containers/faultInformation.jsx b/web/client/src/sections/means/containers/faultInformation.jsx index 484dcbf..f1f759c 100644 --- a/web/client/src/sections/means/containers/faultInformation.jsx +++ b/web/client/src/sections/means/containers/faultInformation.jsx @@ -404,7 +404,7 @@ const Rest = (props) => { bordered={false} empty={
- 暂无告警数据 + 暂无文件
} onRow={(record, index) => { diff --git a/web/client/src/sections/means/containers/projectMeans.jsx b/web/client/src/sections/means/containers/projectMeans.jsx index 8e78da2..d052bd8 100644 --- a/web/client/src/sections/means/containers/projectMeans.jsx +++ b/web/client/src/sections/means/containers/projectMeans.jsx @@ -404,7 +404,7 @@ const Rest = (props) => { bordered={false} empty={
- 暂无告警数据 + 暂无文件
} onRow={(record, index) => { diff --git a/web/client/src/sections/means/containers/repairFQA.jsx b/web/client/src/sections/means/containers/repairFQA.jsx index fbdeaff..436a444 100644 --- a/web/client/src/sections/means/containers/repairFQA.jsx +++ b/web/client/src/sections/means/containers/repairFQA.jsx @@ -404,7 +404,7 @@ const Rest = (props) => { bordered={false} empty={
- 暂无告警数据 + 暂无文件
} onRow={(record, index) => {