import React,{ Component } from "react"; import { Form, Input, InputNumber, Switch, Radio, Slider, Button, Upload, Icon, Rate, Checkbox, message, Row, Col, Select, Modal, Tooltip } from 'antd'; import axios from 'axios' import { qNameArray } from './common' import {getUrl, ActionBtn, markdownToHTML, MarkdownToHtml} from 'educoder'; import QestionDisplayHeader from './QestionDisplayHeader' const { TextArea } = Input; const confirm = Modal.confirm; const $ = window.$ const { Option } = Select; 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 NullDisplay extends Component{ constructor(props){ super(props); this.state = { question_choices: ['', '', '', ''], standard_answers: [false, false, false, false] } } componentDidMount = () => { const Id = this.props.match.params.Id this.isEdit = !!Id if (Id) { const url = `/exercises/${Id}/edit.json` // axios.get(url) // .then((response) => { // if (response.data.status == 0) { // } // }) // .catch(function (error) { // console.log(error); // }); } } render() { let { question_title, question_score, question_type, question_choices, standard_answer, question_id, question_number, index, displayCount, multi_count } = this.props; // const { getFieldDecorator } = this.props.form; const isAdmin = this.props.isAdmin() const courseId=this.props.match.params.coursesId; const isEdit = this.isEdit const qNumber = `question_${index}`; /** is_ordered: true multi_count: 3 question_id: 10444 question_number: 6 question_score: 2 question_title: "_2323_↵↵_" question_type: 3 standard_answer: [{choice_id: 1, answer_text: ["2", "22"]}] */ let length = 5; const qName = qNameArray[question_type] return(