import React, {Component} from "react"; import {Link, NavLink} from 'react-router-dom'; import {WordsBtn, ActionBtn, getImageUrl,markdownToHTML} from 'educoder'; import axios from 'axios'; import { notification, Spin, Table, Pagination, Drawer, Input, Button, Breadcrumb, Radio } from "antd"; import Itembankstop from "./component/Itembankstop"; import NoneData from './component/NoneData'; import './questioncss/questioncom.css'; import '../tpm/newshixuns/css/Newshixuns.css'; const tagArray = [ 'A.', 'B.', 'C.', 'D.', 'E.', 'F.', 'G.', 'H.', 'I.', 'J.', 'K.', 'L.', 'M.', 'N.', 'O.', 'P.', 'Q.', 'R.', 'S.', 'T.', 'U.', 'V.', 'W.', 'X.', 'Y.', 'Z.' ] //单选题 class Paperreview_single extends Component { constructor(props) { super(props); this.state = { questions:0, totalscore:0, total:0, } } //初始化 componentDidMount() { } getdata = (data) => { } preservation = () => { } setitem_type = (item_type) => { } render() { let {questions,totalscore,total,items} = this.state; let {objectsingle} =this.props; // //console.log(params); return (
{/*顶部*/}

{objectsingle.id}

({objectsingle.score}分)

{/*内容*/}

{ objectsingle.item_type==="JUDGMENT"? objectsingle === undefined ||objectsingle === null? "" : objectsingle.choices.map((object, index) => { return (

{object.choice_text}

) }) : objectsingle === undefined ||objectsingle === null? "" : objectsingle.choices.map((object, index) => { return (

{tagArray[index]}

) }) }

) } } export default Paperreview_single