This commit is contained in:
caishi 2021-08-06 14:07:59 +08:00
parent e2ad3b1308
commit d09e6e2bc6
4 changed files with 7 additions and 7 deletions

View File

@ -152,18 +152,18 @@ function DivertModal({form , visible , onSuccess , onCancel,owner,repo}){
</Form.Item>
}
<Form.Item label="仓库名称:">
<Form.Item label="仓库标识:">
{getFieldDecorator("identifier",
{
rules:[
{required:true,message:"请输入仓库名称"},
{required:true,message:"请输入仓库标识!"},
{
validator:checkIdentifier
}
]
}
)(
<Input placeholder="请输入仓库名称" autoComplete={"off"}/>
<Input placeholder="请输入仓库标识" autoComplete={"off"}/>
)}
</Form.Item>
</Form>

View File

@ -359,7 +359,7 @@ function CoderDepot(props){
</AlignCenter>
<AlignCenter>
{
baseOperate &&
baseOperate && ((projectDetail.type !== 2 && pullsFlag) || issuesFlag )&&
<div className="mr20 addOptionBtn">
{
projectDetail.type !== 2 && pullsFlag &&

View File

@ -70,9 +70,9 @@ function Index(props){
function deleteEvent(type,count) {
let c = count;
if(type==="apply"){
setApplyCount(applyCount-count);
setTransferCount(transferCount-count);
}else if(type==="undo"){
setTransferCount(applyCount-count);
setApplyCount(applyCount-count);
}else{
setMessagesCount(0);
c = messagesCount;

View File

@ -53,7 +53,7 @@ function UndoEvent(props){
Axios.post(url).then(result=>{
if(result && result.data){
getList();
props && props.deleteEvent("undo",1);
props && props.deleteEvent("apply",1);
}
}).catch(error=>{})
}