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'; import QuillForEditor from "../../common/quillForEditor"; 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.' ] //单选题 //Paperlibraryseeid_items.js Listjihe.js 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) => { } showparagraph = (indexx) => { } Singlemagaziness = () => { } render() { let {questions, totalscore, total, items} = this.state; let {objectsingle, indexx, paperreviewsingleindex, indexxy,name} = this.props; var itemssname=""; try { itemssname= JSON.parse(objectsingle.name); }catch (e) { itemssname=objectsingle.name; } if(itemssname===undefined){ itemssname=objectsingle.name } var itemsnamesy=""; try { itemsnamesy= JSON.parse(objectsingle&&objectsingle.program_attr&&objectsingle.program_attr.description); }catch (e) { itemsnamesy=objectsingle&&objectsingle.program_attr&&objectsingle.program_attr.description; } var fenshul=(objectsingle.score+"分"); const options = [ 'bold', // 加粗 ] return (
{indexx}
、{ objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => { return (
{ objectsingle&&objectsingle.program_attr&&objectsingle.program_attr.description?
{
itemsnamesy===null || itemsnamesy===undefined?
""
:
{ objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => { var string="" try { string=JSON.parse(object.choice_text); }catch (e) { string=object.choice_text; } return (
{tagArray[index]}
{object ?
object.choice_text === undefined || object.choice_text=== null || object.choice_text === "" ?
""
:
object.choice_text.length>0?