xialiang 3 years ago
commit e7acfc9203

@ -332,7 +332,7 @@ const CardList = () => {
bordered bordered
dataSource={e.children} dataSource={e.children}
renderItem={(item, index) => { renderItem={(item, index) => {
setNum(index+1);
// console.log(item, 'list') // console.log(item, 'list')
return <List.Item return <List.Item
id={item.id} id={item.id}
@ -344,7 +344,7 @@ const CardList = () => {
onClick={() => { onClick={() => {
// 查看解析关闭 // 查看解析关闭
setParsingShow(false) setParsingShow(false)
setNum(index+1);
paperInfo.map((e) => { paperInfo.map((e) => {
if (e.id === item.id) { if (e.id === item.id) {
// 重写单选的label、valueindex保存当前试题的index。 // 重写单选的label、valueindex保存当前试题的index。
@ -376,7 +376,7 @@ const CardList = () => {
> >
<Space direction="vertical" style={{ width: '100%', padding: '24px 48px' }}> <Space direction="vertical" style={{ width: '100%', padding: '24px 48px' }}>
<Typography style={{ marginBottom: 16, fontSize: 18 }}> <Typography style={{ marginBottom: 16, fontSize: 18 }}>
{num}. {questionNow?.question_stem} {questionNow?.question_stem}
{/* {console.log(questionNow.answerId, 'answerId', questionNow.answerId)} */} {/* {console.log(questionNow.answerId, 'answerId', questionNow.answerId)} */}
</Typography> </Typography>

@ -106,7 +106,7 @@ const Result = () => {
person_id:cookie.load('person_id') person_id:cookie.load('person_id')
}); });
},{ },{
manual:true, // manual:true,
formatResult:(result)=>{ formatResult:(result)=>{
const paper_id='1'; const paper_id='1';
if(result.paper_id===''){ if(result.paper_id===''){

Loading…
Cancel
Save