Merge branch 'pre_develop' of https://git.trustie.net/Gitlink/forgeplus-react into pre_develop_dev

This commit is contained in:
谢思 2021-10-13 11:54:12 +08:00
commit 8dcc6c6d59
6 changed files with 38 additions and 27 deletions

View File

@ -1949,9 +1949,7 @@ a.decoration {
}
.mr20 {
margin-right: 10px;
margin-left: 10px;
float: left;
margin-right: 20px;
}
.mr25 {
@ -1959,7 +1957,7 @@ a.decoration {
}
.mr30 {
margin-right: 10px;
margin-right: 30px;
}
.mr35 {

View File

@ -402,7 +402,7 @@ function CoderDepot(props){
getPathUrl={getPathUrl}
/>
:
<div>
<React.Fragment>
<AlignCenter className="mr20">
<Link to={`/${owner}/${projectsId}/branches`} className="iconBtn">
<i className="iconfont icon-master_icon font-16"></i>
@ -417,7 +417,7 @@ function CoderDepot(props){
<span>{projectDetail && projectDetail.tags && projectDetail.tags.total_count}</span>
</Link>
</AlignCenter>
</div>
</React.Fragment>
}
</AlignCenter>
<AlignCenter className="depotBtn">

View File

@ -195,7 +195,7 @@
width: 40px;
height: 40px;
}
&:nth-child(5){
&:nth-child(5n){
margin-right: 0px;
}
}

View File

@ -119,19 +119,19 @@ function Tags(props) {
return(
<div>
<SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/>
<div className="tagSpin">
<Spin spinning={isSpin}>
{
source && source.length > 0 &&
<Table
className="tagTable"
dataSource={source} columns={columns} pagination={false}></Table>
}
{
source && source.length === 0 && <Nonedata _html={'暂无数据~'}/>
}
</Spin>
</div>
<Spin spinning={isSpin}>
<div className="tagSpin">
{
source && source.length > 0 &&
<Table
className="tagTable"
dataSource={source} columns={columns} pagination={false}></Table>
}
{
source && source.length === 0 && <Nonedata _html={'暂无数据~'}/>
}
</div>
</Spin>
</div>
)
}

View File

@ -39,10 +39,6 @@
}
.tagSpin{
min-height: 300px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.tagBranch{
padding-right: 15px;

View File

@ -153,15 +153,20 @@ class Setting extends Component {
name: values.project_name,
description: values.project_description,
private: private_check,
identifier:values.project_identifier,
...values,
}).then((result) => {
if (result) {
this.props.showNotification(`仓库信息修改成功!`);
const { getDetail } = this.props;
getDetail && getDetail();
this.setState({
loading:false
})
this.props.showNotification(`仓库信息修改成功!`);
// if(values.project_identifier !== projectsId){
// this.props.history.push(`/${owner}/${values.project_identifier}/settings`);
// }else{
// }
const { getDetail } = this.props;
getDetail && getDetail();
}
}).catch((error) => {
console.log(error);
@ -283,6 +288,18 @@ class Setting extends Component {
)}
</Form.Item>
</div>
{/* <Form.Item label=" (url)">
{getFieldDecorator("project_identifier", {
rules: [
{
required: true,
message: "请输入项目标识",
},
],
})(
<Input placeholder="项目标识请使用与项目相关的英文关键字" maxLength="100" />
)}
</Form.Item> */}
<Form.Item label="项目简介">
{getFieldDecorator("project_description", {
rules: [],