From 33b57986b9a53188a33c3897db5d981d32dc8da6 Mon Sep 17 00:00:00 2001 From: wenlele Date: Thu, 29 Jun 2023 08:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B2=E7=AA=81=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/latestMetadata/index.js | 8 -------- .../components/releaseModal.js | 16 ++++++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/api/app/lib/controllers/latestMetadata/index.js b/api/app/lib/controllers/latestMetadata/index.js index bd24ff8..3776058 100644 --- a/api/app/lib/controllers/latestMetadata/index.js +++ b/api/app/lib/controllers/latestMetadata/index.js @@ -529,14 +529,6 @@ async function postMetadataResourceApplications (ctx) { try { const { resourceName, applyBy, resourceType, resourceId } = ctx.request.body; if (!resourceName || !applyBy || !resourceType || !resourceId) { - ctx.status = 400; - ctx.body = { message: '参数不全,请重新申请资源' } - } else { - const models = ctx.fs.dc.models; - const postOne = await models.ResourceConsumption.findOne({ - where: { applyBy: applyBy, resourceName: resourceName, resourceId, resourceType } - }); - if (postOne) { ctx.status = 400; ctx.body = { message: '参数不全,请重新申请资源' } } else { diff --git a/web/client/src/sections/metadataManagement/components/releaseModal.js b/web/client/src/sections/metadataManagement/components/releaseModal.js index 92f60c9..3474368 100644 --- a/web/client/src/sections/metadataManagement/components/releaseModal.js +++ b/web/client/src/sections/metadataManagement/components/releaseModal.js @@ -179,17 +179,17 @@ const ReleaseModal = ({ actions, dispatch, onConfirm, onCancel, editData = {} })
返回值: -
-
-
名称
-
意义
-
说明
+
+
+
名称
+
意义
+
说明
{fieldData?.map((s, index) => { return
-
{s.code}
-
{s.name}
-
{s.type}
+
{s.code}
+
{s.name}
+
{s.type}
})}