设置ai生成提示

This commit is contained in:
lyp 2024-12-26 09:52:48 +08:00
parent 382d5ac63b
commit 44a7be6b1e
4 changed files with 26 additions and 7 deletions

View File

@ -510,7 +510,7 @@ export default function AiHelper(props: PropsType) {
<div style={{ display: activeTab == '简介' ? 'block' : 'none' }}>
<Spin tip="正在处理,请稍后..." size="small" spinning={isProjIntroductionLoading}>
<AiHelperText
title="项目简介"
title="系统简介"
text={projIntroduction}
newText={newProjIntroduction}
maxLength={1500}
@ -529,7 +529,7 @@ export default function AiHelper(props: PropsType) {
<div style={{ display: activeTab == '详情' ? 'block' : 'none' }}>
<Spin tip="正在处理,请稍后..." size="small" spinning={isProjDescLoading}>
<AiHelperText title="项目详情"
<AiHelperText title="系统详情"
text={projDesc}
newText={newProjDesc}
maxLength={1500}

View File

@ -402,9 +402,10 @@ export default function AiHelperMod(props: PropsType) {
props.handleGenerate()
}}
></span>
</div>
</div>
<div style={{color:'red',position: 'absolute', bottom: 70,textAlign:'center',width:600 , left: -140}}></div>
<div style={{color:'red',position: 'absolute', bottom: 70,textAlign:'center',width:600 , left: -140}}></div>
</div>
@ -432,7 +433,7 @@ export default function AiHelperMod(props: PropsType) {
<span style={{
color: '#ABABAB',
fontSize: 16
}}> AI自动生成后可自动生成模块管理...</span>
}}> AI自动生成后可自动生成功能列表...</span>
</>}
</div>

View File

@ -134,7 +134,9 @@ export default function AiHelperText(props: PropsType) {
const renderTextDom = () => {
if (!props.text) {
return (
<div className="aiText-top-notext">
<div className="aiText-top-notext"
// style={{position:'relative'}}
>
{/* <Empty description="暂无内容" /> */}
<div className="aiNotext">
<img src={noTextImg} alt="" width={'100%'} />
@ -145,9 +147,15 @@ export default function AiHelperText(props: PropsType) {
props.handleGenerate();
}}
></span>
</div>
<div className="aiNotext-tip"
style={{
display:props.title=='系统详情'? 'block' : 'none'
}}
></div>
</div>
{/* <div style={{color:'red',position: 'absolute', bottom: 70,textAlign:'center',width:600 , left: -140}}>为了合理生成功能列表,建议在项目简介生成完成后再生成功能列表</div> */}
</div>
)
}
@ -251,7 +259,7 @@ export default function AiHelperText(props: PropsType) {
<span style={{
color: '#ABABAB',
fontSize: 16
}}> AI自动生成后可自动生{props.title}...</span> </>}
}}> AI自动生成后可自动生{props.title}...</span> </>}
</div>
<div style={{ display: "flex", justifyContent: 'flex-end', marginTop: 10 }}>
{/* <Button

View File

@ -47,6 +47,7 @@
color: #99A5B7;
position: relative;
margin-top: 50px;
/* background-color: pink; */
}
.aiNotext-text {
@ -55,6 +56,15 @@
bottom: 66px;
}
.aiNotext-tip{
width: 500px;
text-align: center;
/* background-color: skyblue; */
position: absolute;
bottom: 40px;
left: -45px;
color: red;
}
.aiText-top-btn {
margin-top: 50px;