zhengpengju 3 years ago
parent 94c74db3c7
commit bd1f3f71fc

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

@ -71,18 +71,6 @@ export async function querySubjectList(params: {
}); });
} }
/** 删除考试 POST /dsideal_yy/ypt/careerTraining/course/delete */ /** 删除考试 POST /dsideal_yy/ypt/careerTraining/course/delete */
export async function removeExamination(data: { key: number[] }, options?: Record<string, any>) { export async function removeExamination(data: { key: number[] }, options?: Record<string, any>) {
return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', { return request<Record<string, any>>('/dsideal_yy/ypt/careerTraining/course/delete', {
@ -257,3 +245,28 @@ export async function exchangeSortNum(data: Record<string, any>, options?: Recor
...(options || {}), ...(options || {}),
}); });
} }
/** 16 组卷,查询试题数据(去掉已选列表)*/
export async function queryQuestionWithoutList(
params: {
// query
/** 当前的页码 */
current?: number;
/** 页面的容量 */
pageSize?: number;
},
options?: Record<string, any>,
) {
return request<{
data: TableListItem[];
/** 列表的内容总数 */
total?: number;
success?: boolean;
}>('/dsideal_yy/zygh/training/rules/getQuestionList', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
Loading…
Cancel
Save