样式修改
This commit is contained in:
parent
9f2f89268b
commit
32771816d0
@ -2,19 +2,21 @@ import './card-proj-edit.css';
|
||||
import { EditStepEnum, IProjEdit } from "../../interfaces/card/ICardProj.ts";
|
||||
import { useEffect } from 'react';
|
||||
export default function CardProjEdit(props: IProjEdit) {
|
||||
useEffect(()=>{
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
})
|
||||
const renderBtn = () => {
|
||||
if (props.canBtnClick == false) {
|
||||
return <a href="/#" className="edit noEdit" style={{color: '#c2c2c2',textDecoration:'none'}} onClick={(e) => {
|
||||
return <a href="/#" className="edit noEdit" style={{ color: '#c2c2c2', textDecoration: 'none' }} onClick={(e) => {
|
||||
e.preventDefault();
|
||||
}}>{props.btnName ? props.btnName : '编辑'}</a>
|
||||
// }}>{props.btnName ? props.btnName : '编辑'}</a>
|
||||
}}>{props.btnName ? props.btnName : ''}</a>
|
||||
} else {
|
||||
return <a href="/#" className="edit" onClick={(e) => {
|
||||
e.preventDefault();
|
||||
props.handleEdit();
|
||||
}}>{props.btnName ? props.btnName : '编辑'}</a>
|
||||
// }}>{props.btnName ? props.btnName : '编辑'}</a>
|
||||
}}>{props.btnName ? props.btnName : ''}</a>
|
||||
}
|
||||
// if (props.canBtnClick == false) {
|
||||
// return <a href="/#" className="edit" style={{ color: 'var(--color-border)' }} onClick={(e) => {
|
||||
@ -26,13 +28,13 @@ export default function CardProjEdit(props: IProjEdit) {
|
||||
// props.handleEdit();
|
||||
// }}>编辑</a>
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
// props.step === 1 ? 'complete-one' : props.step === 2 ? 'complete-two' : props.step === 3 ? 'complete-three' : props.step === 4 ? 'complete-four' : ''
|
||||
<div className="card-proj-edit" style={{background:props.background,boxShadow:props.shadow}}>
|
||||
{/* <div className={ }> */}
|
||||
<div className="card-proj-edit" style={{ background: props.background, boxShadow: props.shadow }}>
|
||||
{/* <div className={ }> */}
|
||||
<div className='card-proj-edit-text'>
|
||||
<div className="title">{props.title}</div>
|
||||
<div className="desc">{props.desc}</div>
|
||||
@ -42,7 +44,7 @@ export default function CardProjEdit(props: IProjEdit) {
|
||||
{renderBtn()}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div className='downBoxx'></div>
|
||||
</div>
|
||||
)
|
||||
|
@ -538,8 +538,8 @@ export default function ProjEdit() {
|
||||
}}
|
||||
|
||||
/> */}
|
||||
<CardProjDownload title="代码文档"
|
||||
desc="点击下载代码文档"
|
||||
<CardProjDownload title="源代码"
|
||||
desc="点击下载源代码"
|
||||
canBtnClick={generateStatus == GenerateStatus.SUCCESS}
|
||||
handleDownload={() => {
|
||||
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/${pathParams.projId}`)
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
// GetProp,
|
||||
UploadProps,
|
||||
} from "antd";
|
||||
import { UploadOutlined,SettingFilled } from '@ant-design/icons';
|
||||
import { UploadOutlined } from '@ant-design/icons';
|
||||
import TextArea from "antd/es/input/TextArea";
|
||||
import StepProjEdit from "../../components/step/StepProjEdit.tsx";
|
||||
import CardProjEdit from "../../components/card/CardProjEdit.tsx";
|
||||
@ -36,10 +36,10 @@ import SoftwareManagement from '../../route/proj/edit/ProjConfigModList.tsx'
|
||||
import SoftwareManagementShow from '../../route/proj/edit/ProjConfigModListShow.tsx'
|
||||
import DisplayOrder from '../../route/proj/edit/ProjConfigMenuList.tsx'
|
||||
import DisplayOrderShow from '../../route/proj/edit/ProjConfigMenuListShow.tsx'
|
||||
import PRODUCTION from '../../static/status/PRODUCTION.png'
|
||||
import SUBMIT from '../../static/status/SUBMIT.png'
|
||||
import DONE from '../../static/status/DONE.png'
|
||||
import ING from '../../static/status/ING.png'
|
||||
import PRODUCTION from '../../static/status/PRODUCTION.gif'
|
||||
import SUBMIT from '../../static/status/SUBMIT.gif'
|
||||
import DONE from '../../static/status/DONE.gif'
|
||||
import ING from '../../static/status/ING.gif'
|
||||
// import aiGif from '../../static/ai.gif'
|
||||
// type AiHelperType = {
|
||||
// projId: string;
|
||||
@ -489,9 +489,11 @@ export default function ProjEditAll() {
|
||||
generateStatus == GenerateStatus.NONE || generateStatus == GenerateStatus.FAILED ? (
|
||||
<CardProjEdit title="第8步:资料生成"
|
||||
desc="生成软著所需要的资料,此操作后项目无法再次编辑"
|
||||
btnName="生成"
|
||||
// btnName="生成"
|
||||
btnName=""
|
||||
status={EditStepEnum.UN_EDIT}
|
||||
canBtnClick={canGenerate}
|
||||
// canBtnClick={canGenerate}
|
||||
canBtnClick={false}
|
||||
handleEdit={() => {
|
||||
setIsGenerateModalOpen(true);
|
||||
// setTimeout(() => {
|
||||
|
@ -508,8 +508,10 @@ export default function ProjEdit() {
|
||||
/> */}
|
||||
<CardProjDownload title="源代码"
|
||||
desc="点击下载源代码"
|
||||
canBtnClick={false}
|
||||
handleDownload={() => { }}
|
||||
canBtnClick={generateStatus == GenerateStatus.SUCCESS}
|
||||
handleDownload={() => {
|
||||
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/${pathParams.projId}`)
|
||||
}}
|
||||
/>
|
||||
{/* <CardProjJump title="找代理"
|
||||
desc="到软著代理完成软著申请"
|
||||
|
BIN
src/static/status/DONE.gif
Normal file
BIN
src/static/status/DONE.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
BIN
src/static/status/ING.gif
Normal file
BIN
src/static/status/ING.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 925 KiB |
BIN
src/static/status/PRODUCTION.gif
Normal file
BIN
src/static/status/PRODUCTION.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 MiB |
BIN
src/static/status/SUBMIT.gif
Normal file
BIN
src/static/status/SUBMIT.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 803 KiB |
Loading…
Reference in New Issue
Block a user