设置ai生成提示
This commit is contained in:
parent
382d5ac63b
commit
44a7be6b1e
@ -510,7 +510,7 @@ export default function AiHelper(props: PropsType) {
|
|||||||
<div style={{ display: activeTab == '简介' ? 'block' : 'none' }}>
|
<div style={{ display: activeTab == '简介' ? 'block' : 'none' }}>
|
||||||
<Spin tip="正在处理,请稍后..." size="small" spinning={isProjIntroductionLoading}>
|
<Spin tip="正在处理,请稍后..." size="small" spinning={isProjIntroductionLoading}>
|
||||||
<AiHelperText
|
<AiHelperText
|
||||||
title="项目简介"
|
title="系统简介"
|
||||||
text={projIntroduction}
|
text={projIntroduction}
|
||||||
newText={newProjIntroduction}
|
newText={newProjIntroduction}
|
||||||
maxLength={1500}
|
maxLength={1500}
|
||||||
@ -529,7 +529,7 @@ export default function AiHelper(props: PropsType) {
|
|||||||
|
|
||||||
<div style={{ display: activeTab == '详情' ? 'block' : 'none' }}>
|
<div style={{ display: activeTab == '详情' ? 'block' : 'none' }}>
|
||||||
<Spin tip="正在处理,请稍后..." size="small" spinning={isProjDescLoading}>
|
<Spin tip="正在处理,请稍后..." size="small" spinning={isProjDescLoading}>
|
||||||
<AiHelperText title="项目详情"
|
<AiHelperText title="系统详情"
|
||||||
text={projDesc}
|
text={projDesc}
|
||||||
newText={newProjDesc}
|
newText={newProjDesc}
|
||||||
maxLength={1500}
|
maxLength={1500}
|
||||||
|
@ -402,9 +402,10 @@ export default function AiHelperMod(props: PropsType) {
|
|||||||
props.handleGenerate()
|
props.handleGenerate()
|
||||||
}}
|
}}
|
||||||
>自动生成</span>
|
>自动生成</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
@ -432,7 +433,7 @@ export default function AiHelperMod(props: PropsType) {
|
|||||||
<span style={{
|
<span style={{
|
||||||
color: '#ABABAB',
|
color: '#ABABAB',
|
||||||
fontSize: 16
|
fontSize: 16
|
||||||
}}> 点击AI自动生成后可自动生成模块管理...</span>
|
}}> 点击AI自动生成后可自动生成功能列表...</span>
|
||||||
</>}
|
</>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -134,7 +134,9 @@ export default function AiHelperText(props: PropsType) {
|
|||||||
const renderTextDom = () => {
|
const renderTextDom = () => {
|
||||||
if (!props.text) {
|
if (!props.text) {
|
||||||
return (
|
return (
|
||||||
<div className="aiText-top-notext">
|
<div className="aiText-top-notext"
|
||||||
|
// style={{position:'relative'}}
|
||||||
|
>
|
||||||
{/* <Empty description="暂无内容" /> */}
|
{/* <Empty description="暂无内容" /> */}
|
||||||
<div className="aiNotext">
|
<div className="aiNotext">
|
||||||
<img src={noTextImg} alt="" width={'100%'} />
|
<img src={noTextImg} alt="" width={'100%'} />
|
||||||
@ -145,9 +147,15 @@ export default function AiHelperText(props: PropsType) {
|
|||||||
props.handleGenerate();
|
props.handleGenerate();
|
||||||
}}
|
}}
|
||||||
>自动生成</span>
|
>自动生成</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className="aiNotext-tip"
|
||||||
|
style={{
|
||||||
|
display:props.title=='系统详情'? 'block' : 'none'
|
||||||
|
}}
|
||||||
|
>为了合理生成系统详情,建议在系统简介生成完成后再生系统详情</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/* <div style={{color:'red',position: 'absolute', bottom: 70,textAlign:'center',width:600 , left: -140}}>为了合理生成功能列表,建议在项目简介生成完成后再生成功能列表</div> */}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -251,7 +259,7 @@ export default function AiHelperText(props: PropsType) {
|
|||||||
<span style={{
|
<span style={{
|
||||||
color: '#ABABAB',
|
color: '#ABABAB',
|
||||||
fontSize: 16
|
fontSize: 16
|
||||||
}}> 点击AI自动生成后可自动生{props.title}...</span> </>}
|
}}> 点击AI自动生成后可自动生成{props.title}...</span> </>}
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: "flex", justifyContent: 'flex-end', marginTop: 10 }}>
|
<div style={{ display: "flex", justifyContent: 'flex-end', marginTop: 10 }}>
|
||||||
{/* <Button
|
{/* <Button
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
color: #99A5B7;
|
color: #99A5B7;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
|
/* background-color: pink; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.aiNotext-text {
|
.aiNotext-text {
|
||||||
@ -55,6 +56,15 @@
|
|||||||
bottom: 66px;
|
bottom: 66px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.aiNotext-tip{
|
||||||
|
width: 500px;
|
||||||
|
text-align: center;
|
||||||
|
/* background-color: skyblue; */
|
||||||
|
position: absolute;
|
||||||
|
bottom: 40px;
|
||||||
|
left: -45px;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
.aiText-top-btn {
|
.aiText-top-btn {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
|
Loading…
Reference in New Issue
Block a user