2024-03-14 23:34:40 +08:00
|
|
|
|
import './proj-edit.css';
|
2024-03-15 18:18:29 +08:00
|
|
|
|
import {Link, useNavigate} from "react-router-dom";
|
|
|
|
|
import {Breadcrumb, Button} from "antd";
|
2024-03-14 23:34:40 +08:00
|
|
|
|
import StepProjEdit from "../../components/step/StepProjEdit.tsx";
|
|
|
|
|
import CardProjEdit from "../../components/card/CardProjEdit.tsx";
|
2024-03-15 18:18:29 +08:00
|
|
|
|
import {Process} from "../../interfaces/step/IStepProj.ts";
|
|
|
|
|
import CardProjLoading from "../../components/card/CardProjLoading.tsx";
|
|
|
|
|
import CardProjResult from "../../components/card/CardProjResult.tsx";
|
|
|
|
|
import CardProjDownload from "../../components/card/CardProjDownload.tsx";
|
|
|
|
|
import CardProjJump from "../../components/card/CardProjJump.tsx";
|
2024-03-14 23:34:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default function ProjEdit() {
|
2024-03-15 18:18:29 +08:00
|
|
|
|
const nav = useNavigate();
|
|
|
|
|
const height = window.innerHeight - 240;
|
2024-03-14 23:34:40 +08:00
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Breadcrumb
|
|
|
|
|
items={[
|
|
|
|
|
{title: <Link to={'/'}>首页</Link>},
|
|
|
|
|
{title: <Link to={'/proj-create'}>创建项目</Link>},
|
|
|
|
|
{title: '编辑项目'},
|
|
|
|
|
]}
|
|
|
|
|
/>
|
2024-03-15 18:18:29 +08:00
|
|
|
|
<div className="proj-edit" style={{height: `${height}px`}}>
|
|
|
|
|
<StepProjEdit step={1} process={Process.COMPLETE} descTitle="完善信息"
|
|
|
|
|
descDetail="123123123123123123123123123123123123123123123123"
|
|
|
|
|
hasNext={true}>
|
|
|
|
|
<CardProjEdit title="软件基本信息"
|
|
|
|
|
desc="请完善软件的介绍、详介绍等基本信息"
|
|
|
|
|
handleEdit={() => {
|
|
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</StepProjEdit>
|
|
|
|
|
<StepProjEdit step={2} process={Process.PROCESSING} descTitle="功能设置" hasNext={true}>
|
|
|
|
|
<CardProjEdit title="软件基本信息"
|
|
|
|
|
desc="请完善软件的介绍、详介绍等基本信息"
|
|
|
|
|
handleEdit={() => {
|
|
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</StepProjEdit>
|
|
|
|
|
<StepProjEdit step={3} process={Process.PENDING} descTitle="资料生成" hasNext={true}>
|
|
|
|
|
<CardProjEdit title="软件基本信息"
|
|
|
|
|
desc="请完善软件的介绍、详介绍等基本信息"
|
|
|
|
|
handleEdit={() => {
|
|
|
|
|
console.log('编辑')
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<CardProjLoading title="正在排队"
|
|
|
|
|
desc="资料正在排队,预计等待600秒"
|
|
|
|
|
/>
|
|
|
|
|
<CardProjResult title="生成成功"
|
|
|
|
|
isSuccess={true}
|
|
|
|
|
handleFeedback={() => {
|
|
|
|
|
console.log('反馈')
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</StepProjEdit>
|
|
|
|
|
<StepProjEdit step={4} process={Process.PENDING} descTitle="资料下载">
|
|
|
|
|
<CardProjDownload title="软件基本信息"
|
|
|
|
|
desc="请完善软件的介绍,详细介绍等基本信息"
|
|
|
|
|
handleDownload={() => {
|
|
|
|
|
console.log('下载')
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<CardProjJump title="跳转"
|
|
|
|
|
desc="请完善软件的介绍,详细介绍等基本信息"
|
|
|
|
|
handleJump={() => {
|
2024-03-17 18:36:00 +08:00
|
|
|
|
nav('/agent-select/2');
|
2024-03-15 18:18:29 +08:00
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</StepProjEdit>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="btn-container">
|
|
|
|
|
<Button size="large" style={{width: '200px', fontSize: '14px', backgroundColor: 'var(--color-blue)', color: 'var(--color-light)'}} onClick={() => {
|
|
|
|
|
nav(-1);
|
|
|
|
|
}}>返回</Button>
|
2024-03-14 23:34:40 +08:00
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|