Auto Submit

dev_local_v9_test6
autosubmit 1 year ago
parent 1ef61e2093
commit 9076801f7b

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.45ba3267.js"></script>
<script src="/react/build/umi.2f909678.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -5398,6 +5398,7 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
}), (my_teams === null || my_teams === void 0 ? void 0 : my_teams.manage_permission) && /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
onClick: function onClick() {
setisedit(true);
form.setFieldValue('name', my_teams === null || my_teams === void 0 ? void 0 : my_teams.name);
// setTeam(item);
},
style: {
@ -6208,18 +6209,34 @@ var StudentTeam_competitionsPage = function competitionsPage(_ref) {
className: Teammodules.jsinput,
rules: [{
required: true,
validator: function validator(_, value) {
var _value$replaceAll;
return (value === null || value === void 0 || (_value$replaceAll = value.replaceAll(' ', '')) === null || _value$replaceAll === void 0 ? void 0 : _value$replaceAll.length) > 0 ? Promise.resolve() : Promise.reject('请填写竞赛名称');
}
}],
message: "请输入战队队名"
}, {
type: "string",
max: 60,
message: "输入超限,请缩减字符数"
},
// { type: "string", whitespace: true, message: "内容不能全为空格" },
{
pattern: /^[\u4e00-\u9fa5A-Za-z0-9-_\.]+$/,
message: '请输入中文、字母、数字和-_ .'
}]
// rules={[{
// required: true,
// validator: (_, value) => {
// return value?.replaceAll(' ', '')?.length > 0 ? Promise.resolve() : Promise.reject('请填写战队名称')
// }
// },
// ]}
,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
className: Teammodules.baseFormItem,
style: {
fontSize: 14,
marginTop: 10
}
},
showCount: true,
placeholder: "\u8BF7\u8F93\u5165\u6218\u961F\u961F\u540D"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", {
@ -18493,10 +18510,11 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
type: "string",
max: 60,
message: "输入超限,请缩减字符数"
}, {
type: "string",
whitespace: true,
message: "内容不能全为空格"
},
// { type: "string", whitespace: true, message: "内容不能全为空格" },
{
pattern: /^[\u4e00-\u9fa5A-Za-z0-9-_\.]+$/,
message: '请输入中文、字母、数字和-_ .'
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save