This commit is contained in:
xixi 2024-05-22 09:04:00 +08:00
parent 252570a588
commit afc607c455
3 changed files with 7 additions and 4 deletions

View File

@ -335,9 +335,9 @@ export default function ProjEdit() {
canBtnClick={canGenerate} canBtnClick={canGenerate}
handleEdit={() => { handleEdit={() => {
setIsGenerateModalOpen(true); setIsGenerateModalOpen(true);
setTimeout(() => { // setTimeout(() => {
window.location.reload(); // window.location.reload();
}, 1000) // }, 1000)
}} }}
// background = {status == EditStepEnum.EDITED?'#F5FAFE':'#f3f3f3'} // background = {status == EditStepEnum.EDITED?'#F5FAFE':'#f3f3f3'}
// shadow = {status == EditStepEnum.EDITED?'0px 3px 0px 0px rgba(55,144,215,0.18)':''} // shadow = {status == EditStepEnum.EDITED?'0px 3px 0px 0px rgba(55,144,215,0.18)':''}
@ -455,11 +455,13 @@ export default function ProjEdit() {
cancelText="取消" cancelText="取消"
open={isGenerateModalOpen} open={isGenerateModalOpen}
onOk={() => { onOk={() => {
post({ post({
messageApi, messageApi,
url: `/api/proj/generate/proj-id/${pathParams.projId}`, url: `/api/proj/generate/proj-id/${pathParams.projId}`,
body: {}, body: {},
onSuccess() { onSuccess() {
window.location.reload();
messageApi.success('提交成功'); messageApi.success('提交成功');
setIsGenerateModalOpen(false); setIsGenerateModalOpen(false);
renderData(); renderData();

View File

@ -898,6 +898,7 @@ export default function ProjEditStep2() {
<Button type="primary" <Button type="primary"
htmlType="submit" htmlType="submit"
// style={{ height: '49px', width: '104px', color: '#FDFDF2', background: '#1564ED', fontSize: '16px' }} // style={{ height: '49px', width: '104px', color: '#FDFDF2', background: '#1564ED', fontSize: '16px' }}
style={{ marginLeft:"-10px" }}
size='large' size='large'
onClick={() => { onClick={() => {
formInfo.validateFields().then(() => { formInfo.validateFields().then(() => {

View File

@ -282,7 +282,7 @@ export default function ProjEditStep3() {
onClick={()=>{ onClick={()=>{
setIsEditModalOpen(true) setIsEditModalOpen(true)
}}> }}>
</Button> </Button>
</div> </div>