{
this.orderQuestion(index, oldIndex, newIndex);
}}
renderItem={(k) => (
]}>
{getFieldDecorator(`question.answer.questions[${index}].single[${k}]`, {
valuePropName: 'checked',
})(
{
this.changeQuestion(index, k, value);
}} />,
)}
{getFieldDecorator(`question.content.questions[${index}].select[${k}]`, {
rules: [{
required: true,
whitespace: true,
message: '请填写选项信息',
}],
})(
,
)}
{keys.length > 1 ? (
this.removeQuestion(index, k)}
/>
) : null}
)}
/>,
,
];
}
renderQX() {
const { getFieldDecorator } = this.props.form;
return
{getFieldDecorator('question.qxContent', {
})(
System.uploadImage(file)} />,
)}
;
}
renderTab() {
return {
switch (tab) {
case 'sentence':
linkTo('/subject/sentence/question');
break;
case 'base':
linkTo('/subject/question');
break;
default:
}
}}>
;
}
renderView() {
return
{this.renderTab()}
{this.renderAttr()}
{this.renderBase()}
{this.renderSelect()}
{this.renderQX()}
;
}
}