修改报名时间及报名样式控制

This commit is contained in:
何童崇 2022-05-20 14:31:45 +08:00 committed by caishi
parent 5aae3d9b61
commit 6b79378cc6
1 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ function Apply(props) {
const [loading, setLoading] = useState(false);
const [reload, setReload] = useState();
const [userApplyInfo, setUserApplyInfo] = useState(undefined);
const [editable, setEditable] = useState(true);
const [editable, setEditable] = useState(isStudentApplyDate);
const [files, setFiles] = useState([]);
const [files1, setFiles1] = useState([]);
const initTask = {
@ -56,9 +56,9 @@ function Apply(props) {
});
// window.scrollTo(0, 50);
if (!isStudentApplyDate) {
if (new Date().getTime() < new Date('2022-05-26').getTime()) {
//
// window.location.href = "/glcc/student/2";
window.location.href = "/glcc/student/2";
} else if (current_user && current_user.login) {
} else {
@ -390,14 +390,14 @@ function Apply(props) {
{getFieldDecorator("location", {
rules: []
})(
<Cascader popupClassName="glcc_cascader" placeholder="请选择省份城市" options={locData} className={editable ? "" : "disabledInput"} disabled={editable ? false : true} />
<Cascader expandTrigger="hover" popupClassName="glcc_cascader" placeholder="请选择省份城市" options={locData} className={editable ? "" : "disabledInput"} disabled={editable ? false : true} />
)}
</Form.Item>
{helper('所在年级',
'',
'grade',
[],
<Select placeholder="请选择所在年级" expandTrigger="hover" disabled={editable ? false : true} className={editable ? "" : "disabledInput"} dropdownClassName="glcc_select">
<Select placeholder="请选择所在年级" disabled={editable ? false : true} className={editable ? "" : "disabledInput"} dropdownClassName="glcc_select">
{gradeList.map(item => { return <Option value={item.name} key={item.id}>{item.name}</Option> })}
</Select>
)}