|
|
|
@ -199,13 +199,16 @@ const QuestionBank = () => {
|
|
|
|
|
renderFormItem: (item, { defaultRender, ...rest }, form) => {
|
|
|
|
|
// 需要处理 关联长度变化及编辑回显
|
|
|
|
|
console.log('edit answertrue11', item)
|
|
|
|
|
console.log('form::::::',form.getFieldValue('answertrue'))
|
|
|
|
|
// 0 单选 1 多选 2 判断
|
|
|
|
|
return (addType?.value !== 1 ) ?
|
|
|
|
|
<ProFormRadio.Group
|
|
|
|
|
<Radio.Group
|
|
|
|
|
name="answertrue"
|
|
|
|
|
label=""
|
|
|
|
|
initialValue={'A'}
|
|
|
|
|
defaultValue={'A'}
|
|
|
|
|
options={['A', 'B', 'C', 'D']}
|
|
|
|
|
onChange={(e)=>{
|
|
|
|
|
form.setFieldsValue({answertrue: 'B'})
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
:
|
|
|
|
|
<ProFormCheckbox.Group
|
|
|
|
@ -214,7 +217,7 @@ const QuestionBank = () => {
|
|
|
|
|
initialValue={[]}
|
|
|
|
|
options={['A', 'B', 'C', 'D']}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
/*
|
|
|
|
|
formItemProps: {
|
|
|
|
|