This commit is contained in:
hucong 2021-11-30 15:43:19 +08:00
parent 4971dc0a3d
commit 775434d856
4 changed files with 25 additions and 4 deletions

View File

@ -57,6 +57,15 @@
padding:20px 0px; padding:20px 0px;
color: #4183c4; color: #4183c4;
} }
.percentBox li::after{
content: '';
width: 100%;
height: 3px;
border-radius: 4px;
display: block;
margin: 0 auto;
background: #4183c4;
}
.percentBox > li:last-child{ .percentBox > li:last-child{
border-right: none; border-right: none;
} }

View File

@ -528,7 +528,7 @@ function CoderDepot(props){
<i onClick={()=>setOpenModal(true)} className="iconfont icon-a-shezhi color-grey-9 font-15"></i> <i onClick={()=>setOpenModal(true)} className="iconfont icon-a-shezhi color-grey-9 font-15"></i>
} }
</FlexAJ> </FlexAJ>
{desc && <p className="font-14 color-grey-3 mb15 task-hide-2" style={{lineHeight:"24px",WebkitLineClamp:"4",textAlign:"justify",wordBreak:"break-all"}}>{desc}</p>} {desc && <p className="font-14 color-grey-3 mb15 task-hide-2" style={{lineHeight:"24px",WebkitLineClamp:"4",textAlign:"justify",wordBreak:"break-all"}} title={desc}>{desc}</p>}
{ {
website && website &&
<div className="color-grey-6 df pinfos mb5"> <div className="color-grey-6 df pinfos mb5">

View File

@ -46,14 +46,14 @@ function UpdateDescModal({form , visible , onCancel , onOk,desc,website,lesson_u
{getFieldDecorator("website",{ {getFieldDecorator("website",{
rules:[] rules:[]
})( })(
<Input placeholder="website链接"/> <Input placeholder="website链接" maxLength={200}/>
)} )}
</Form.Item> </Form.Item>
<Form.Item label="实践课程"> <Form.Item label="实践课程">
{getFieldDecorator("lesson_url",{ {getFieldDecorator("lesson_url",{
rules:[] rules:[]
})( })(
<Input placeholder="实践课程链接" /> <Input placeholder="实践课程链接" maxLength={200}/>
)} )}
</Form.Item> </Form.Item>
</Form> </Form>

View File

@ -6,9 +6,11 @@ import {truncateCommitId} from '../../common/util';
import Empty from './Empty'; import Empty from './Empty';
import './version.scss'; import './version.scss';
import axios from 'axios'; import axios from 'axios';
import { Popconfirm } from 'antd'
import Tree from '../img/tree-black.png'; import Tree from '../img/tree-black.png';
import RenderHtml from '../../../components/render-html'; import RenderHtml from '../../../components/render-html';
import User from "../../Component/User"; import User from "../../Component/User";
import DeleteBox from "../../Component/DeleteModal/Index";
function version(props) { function version(props) {
const [ data , setData ] = useState(undefined); const [ data , setData ] = useState(undefined);
@ -73,7 +75,17 @@ function version(props) {
<Link to={`/${owner}/${projectsId}/tree/${item.tag_name}`} className="task-hide color-blue hover font-18">{item.name}</Link> <Link to={`/${owner}/${projectsId}/tree/${item.tag_name}`} className="task-hide color-blue hover font-18">{item.name}</Link>
<span> <span>
{data && data.user_admin_permission && type !== 2 && <Link to={{pathname:`/${owner}/${projectsId}/releases/${item.version_id}/update`,state:{"stable":item.draft==="稳定"}}} className="ml15"><i className="iconfont icon-a-bianji1 font-16 color-grey-6"></i></Link>} {data && data.user_admin_permission && type !== 2 && <Link to={{pathname:`/${owner}/${projectsId}/releases/${item.version_id}/update`,state:{"stable":item.draft==="稳定"}}} className="ml15"><i className="iconfont icon-a-bianji1 font-16 color-grey-6"></i></Link>}
{data && data.user_admin_permission && type !== 2 && <i className ="iconfont icon-shanchuicon1 font-16 ml15" onClick={()=>{deleteRelease(item.version_id)}}></i>} {data && data.user_admin_permission && type !== 2 &&
<Popconfirm
placement="bottom"
title={'您确定要删除当前易修吗?'}
okText="是"
cancelText="否"
onConfirm={() =>{deleteRelease(item.version_id)}}
>
<i className ="iconfont icon-shanchuicon1 font-16 ml15"></i>
</Popconfirm>
}
</span> </span>
</div> </div>
<span className="color-grey-3 mb15 version-user"> <span className="color-grey-3 mb15 version-user">