|
|
|
@ -354,19 +354,15 @@ export default () => {
|
|
|
|
|
|
|
|
|
|
<Typography style={{ padding: 24, fontSize: 24, textAlign: 'center' }}>{rulesName}</Typography>
|
|
|
|
|
{/** 一旦录入另一项将禁用,清空组卷后可选另一项 */}
|
|
|
|
|
<Radio.Group size='large' value={createType} onChange={(e) => {
|
|
|
|
|
setCreateType(Number(e?.target?.value))
|
|
|
|
|
console.log('value', e?.target?.value)
|
|
|
|
|
//handleAutoModalVisible(true); // 显示系统组卷窗口
|
|
|
|
|
}} style={{ marginBottom: 16, }}>
|
|
|
|
|
<Radio.Button value={1} style={{ width: 200, textAlign: 'center' }}>手动组卷</Radio.Button>
|
|
|
|
|
<Radio.Button value={2} style={{ width: 200, textAlign: 'center' }}>系统组卷</Radio.Button>
|
|
|
|
|
</Radio.Group>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={12} style={{padding:5}}><Button size="large" onClick={()=>{handleSelectorModalVisible(true)}} value={1} style={{ display:'block', textAlign: 'center', width:'100%'}}>手动组卷</Button></Col>
|
|
|
|
|
<Col span={12} style={{padding:5}}><Button size="large" onClick={()=>{handleAutoModalVisible(true)}} value={2} style={{ display:'block', textAlign: 'center', width:'100%'}}>系统组卷</Button></Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Divider style={{ margin: '6px 0', opacity: 0.5 }} />
|
|
|
|
|
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={18} style={{ background: '#ffffff', padding: 0 }}>
|
|
|
|
|
<Empty style={{minHeight:360,padding:60,verticalAlign:'middle'}} />
|
|
|
|
|
{questions &&
|
|
|
|
|
<ProCard
|
|
|
|
|
title=""
|
|
|
|
|
extra={false}
|
|
|
|
@ -422,6 +418,10 @@ export default () => {
|
|
|
|
|
|
|
|
|
|
</Space>
|
|
|
|
|
</ProCard>
|
|
|
|
|
}
|
|
|
|
|
{!questions &&
|
|
|
|
|
<Empty style={{minHeight:360, padding:60, verticalAlign:'middle',color:'#cccccc'}} description='暂无试卷' />
|
|
|
|
|
}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col span={6} style={{ paddingLeft: 24 }}>
|
|
|
|
|
<div style={{ background: '#ffffff', padding: 24 }}>
|
|
|
|
@ -436,19 +436,6 @@ export default () => {
|
|
|
|
|
)}
|
|
|
|
|
</Space>
|
|
|
|
|
<Divider style={{ margin: '6px 0', opacity: 0.5 }} />
|
|
|
|
|
|
|
|
|
|
<Button size="large" block onClick={() => {
|
|
|
|
|
console.log('createType', createType)
|
|
|
|
|
if (createType === 1) {
|
|
|
|
|
console.log('11:', createType)
|
|
|
|
|
handleSelectorModalVisible(true)
|
|
|
|
|
} else {
|
|
|
|
|
console.log('22:', createType)
|
|
|
|
|
handleAutoModalVisible(true); // 显示系统组卷窗口(true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}}>选择试题</Button>
|
|
|
|
|
|
|
|
|
|
<Button size="large" block onClick={() => {
|
|
|
|
|
/**
|
|
|
|
|
* 设置分值前需要题型数据
|
|
|
|
|