diff --git a/api/app/lib/controllers/latestMetadata/index.js b/api/app/lib/controllers/latestMetadata/index.js index c359566..350c725 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}
})}