调整oj设置相关校验issue

dev_aliyun2
杨树明 5 years ago committed by harry
parent afa9fdfbdc
commit 05ac23efc0

@ -50,9 +50,6 @@ function InitTabCtx(props, ref) {
>
{
getFieldDecorator('input', {
rules: [
{ required: true, message: '输入值不能为空' }
],
initialValue: inputValue
})(<TextArea
className="input_textarea_style"

@ -146,18 +146,12 @@ const AddTestDemo = (props) => {
}
return (
<Collapse className={'collapse_area'} activeKey={isOpen ? '1' : ''} onChange={() => handleChangeCollapse()}>
<Panel header={`测试用例${props.index + 1}`} extra={genExtra()} key="1">
<Collapse className={'collapse_area'} activeKey={isOpen?'1':''} onChange={() => handleChangeCollapse()}>
<Panel header={`测试用例${props.index + 1}`} extra={props.index===0?false:genExtra()} key="1">
<Form>
<FormItem
label={<span className={'label_text'}>输入</span>}
<<<<<<< HEAD
validateStatus={testCaseValidate.input.validateStatus}
help={testCaseValidate.input.errMsg}
colon={false}
=======
colon={ false }
>>>>>>> 8f5b1de... 题库地址
>
<TextArea
rows={5}

@ -82,6 +82,25 @@ class EditTab extends React.Component {
// this.props.getQuestion({
// source: 'question'
// });
const obj = { // 测试用例参数
input: '',
output: '',
position: 1,
isAdd: true // 新增的测试用例
}
const validateObj = { // 测试用例验证参数
input: {
validateStatus: '',
errMsg: ''
},
output: {
validateStatus: '',
errMsg: ''
}
}
// this.scrollRef.current.scrollTo(1000);
this.props.addTestCase({testCase: obj, tcValidate: validateObj});
}
// componentDidUpdate (nextProp) {

Loading…
Cancel
Save