This commit is contained in:
谢思 2022-10-17 17:32:41 +08:00
parent 94f8f84456
commit ade93746ab
5 changed files with 1165 additions and 1146 deletions

2284
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,7 @@ function New({ form , showNotification , history }) {
{getFieldDecorator("key",{
rules:[{required:true,message:"请输入密钥"}]
})(
<TextArea placeholder="支持以'ssh-rsa','ssh-dss','ssh-ed25519','ecdsa-sha2-nistp256','ecdsa-sha2-nistp384','ecdsa-sha2-nistp521'开头" autoSize={{ minRows: 6, maxRows: 6 }}/>
<TextArea placeholder="支持以'ssh-rsa','ssh-ed25519','ecdsa-sha2-nistp256','ecdsa-sha2-nistp384','ecdsa-sha2-nistp521'开头" autoSize={{ minRows: 6, maxRows: 6 }}/>
)}
</Form.Item>
<button style={{width:"100px"}} onClick={submit} className="but25">确定</button>

View File

@ -91,9 +91,9 @@ class Read extends Component {
<p className="ant-upload-text">
拖动文件或<span className="color-blue">点击此处上传</span>
</p>
<p className="mt10">
{/* <p className="mt10">
暂仅支持文件格式不支持图片,excel等不可以txt读取的文件
</p>
</p> */}
<p className="mt10">
文件名请使用英文且不得超过{size}MB
</p>

View File

@ -46,6 +46,15 @@ function Competition(props){
return <a href={`/competition/${record.identifier}`} target="_blank" className="primary-link">{text}</a>
}
},
{
title: "报名开始时间",
dataIndex: "start_at",
key: "start_at",
align: "center",
render: (text, record)=>{
return text ? moment(text).format('YYYY-MM-DD HH:mm:ss'): '--'
}
},
{
title: "报名截止时间",
dataIndex: "enroll_date",

View File

@ -45,6 +45,7 @@ export default Form.create()(({ form, match, history, current_user, showNotifica
zones_local: details.zones_local,
sub_competitions: details.sub_competitions,
zones: details.zones,
start_at: moment(details.start_at),
enroll_date: moment(details.enroll_date),
upload_date: moment(details.upload_date),
about_us: details.about_us,
@ -271,6 +272,17 @@ export default Form.create()(({ form, match, history, current_user, showNotifica
'请填写赛项,每个赛项之间以英文“,”隔开。如:赛项1,赛项2,赛项3'
)}
{helper(
"报名开始时间",
"start_at",
[],
<DatePicker
format={format}
placeholder="请选择时间"
showTime
/>
)}
{helper(
"报名截止时间",
"enroll_date",