diff --git a/src/components/ai/AiHelper.tsx b/src/components/ai/AiHelper.tsx index 9c3c438..9ee0092 100644 --- a/src/components/ai/AiHelper.tsx +++ b/src/components/ai/AiHelper.tsx @@ -618,10 +618,10 @@ export default function AiHelper(props: PropsType) { } }} handleRemove={(_index, projModId, item) => { - if (item.aiFieldStatus != 'SUCCESS') { - messageApi.error('模块未处理完毕不能删除'); - return; - } + // if (item.aiFieldStatus != 'SUCCESS') { + // messageApi.error('模块未处理完毕不能删除'); + // return; + // } del({ messageApi, url: `/api/proj-mod/remove/proj-id/${props.projId}/${projModId}`, diff --git a/src/components/ai/mod/AiHelperMod.tsx b/src/components/ai/mod/AiHelperMod.tsx index f985cb9..7d790f4 100644 --- a/src/components/ai/mod/AiHelperMod.tsx +++ b/src/components/ai/mod/AiHelperMod.tsx @@ -147,33 +147,70 @@ export default function AiHelperMod(props: PropsType) { return } if (record.aiFieldStatus == 'FAILED') { - return + return ( +
+
{ + props.handleResaveField(index, record.projModId); + }}>
+
{ + props.handleRemove(index, record.projModId, record); + }} + >删除
+
+ ) } return (
- +
{ setId(record.projModId) setEditModal(true) }} - >编辑 - 编辑
+
{ props.handleRemove(index, record.projModId, record); }} - >删除 + >删除
// -
+ }}>
@@ -402,10 +440,10 @@ export default function AiHelperMod(props: PropsType) { props.handleGenerate() }} >自动生成 - +
-
为了合理生成功能列表,建议在系统简介生成完成后再生成功能列表
+
为了合理生成功能列表,建议在系统简介生成完成后再生成功能列表
diff --git a/src/route/Correction/Correction.tsx b/src/route/Correction/Correction.tsx index 832ab04..1f209c4 100644 --- a/src/route/Correction/Correction.tsx +++ b/src/route/Correction/Correction.tsx @@ -836,6 +836,7 @@ export default function Correction() { }, [newCorrection]) + return (
{contextHolder} @@ -924,7 +925,7 @@ export default function Correction() { ), })); return ( -
+
{/*
{(page - 1) * 20 + index + 1}
*/} @@ -988,6 +989,7 @@ export default function Correction() {
+ {/*
{item.isSubmitAudit}
*/}