diff --git a/public/react/src/modules/question/Paperreview_single.js b/public/react/src/modules/question/Paperreview_single.js index 978dd4d69..f153e15c9 100644 --- a/public/react/src/modules/question/Paperreview_single.js +++ b/public/react/src/modules/question/Paperreview_single.js @@ -78,6 +78,7 @@ class Paperreview_single extends Component { } catch (e) { itemsnamesy = objectsingle && objectsingle.program_attr && objectsingle.program_attr.description; } + var fenshul=(objectsingle.score+"分"); return (
+ { + items === undefined || items === null ? "" : items.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?
+
难度:{items.difficulty === 1 ? "简单" : items.difficulty === 2 ? "适中" : items.difficulty === 3 ? "困难" : ""} +
+题型:{items.item_type === "SINGLE" ? "单选题" : items.item_type === "MULTIPLE" ? "多选题" : items.item_type === "JUDGMENT" ? "判断题" : items.item_type === "PROGRAM" ? "编程题" : ""} +
+更新时间:{items.update_time}
+ { + this.props.defaultActiveKey === "0" || this.props.defaultActiveKey === 0 ? + "" + : +创建者:{items.author.name}
+ } + { + items.item_type === "PROGRAM" ? +编程语言:{items.program_attr.language}
+ : "" + } + { + items.item_type === "PROGRAM" ? + items.program_attr.status === 0 ? +未发布
+ : "" + : "" + } +this.Selectingpracticaltrainings(items.id)}> + {/**/} + 撤销
+ : + items.item_type === "PROGRAM" ? + items.program_attr.status === 0 ? ++ + 选用 +
+this.Selectingpracticaltraining(items.id)}> + + 选用 +
+ : +this.Selectingpracticaltraining(items.id)}> + + 选用 +
+ } + { + defaultActiveKey === 0 || defaultActiveKey === "0" ? +this.props.showmodelysl(items.id)}> + + 删除 +
+ { + items.item_type === "PROGRAM" ? + this.props.Isitapopup&&this.props.Isitapopup==="true"? + "" + : + ++ + 编辑 +
+ + : + this.props.Isitapopup&&this.props.Isitapopup==="true"? + "" + : + ++ + 编辑 +
+ + } + { + items.public === false ? + items.item_type === "PROGRAM" ? + ( + items.program_attr.status === 0 ? + "" + : + items.apply===false? +this.props.showmodels(items.id)}> + + 公开 +
+ : + ( + items.public==true? + "" + : +this.props.showmodelsInaudit(e)}> + + 公开审核中
- - : -- { - items === undefined || items === null ? "" : items.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 ?
-
难度:{items.difficulty === 1 ? "简单" : items.difficulty === 2 ? "适中" : items.difficulty === 3 ? "困难" : ""} + ) + ) + :items.apply===false? +
this.props.showmodels(items.id)}> + + 公开 +
+ : + ( + items.public==true? + "" + : +this.props.showmodelsInaudit(e)}> + + 公开审核中
-题型:{items.item_type === "SINGLE" ? "单选题" : items.item_type === "MULTIPLE" ? "多选题" : items.item_type === "JUDGMENT" ? "判断题" : items.item_type === "PROGRAM" ? "编程题" : ""} -
-更新时间:{items.update_time}
- { - this.props.defaultActiveKey === "0" || this.props.defaultActiveKey === 0 ? - "" - : -创建者:{items.author.name}
- } - { - items.item_type === "PROGRAM" ? -编程语言:{items.program_attr.language}
- : "" - } - { - items.item_type === "PROGRAM" ? - items.program_attr.status === 0 ? -未发布
- : "" - : "" - } -this.Selectingpracticaltrainings(items.id)}> - - 撤销
- : - items.item_type === "PROGRAM" ? - items.program_attr.status === 0 ? -- - 选用 -
-this.Selectingpracticaltraining(items.id)}> - - 选用 -
- : -this.Selectingpracticaltraining(items.id)}> - - 选用 -
- } - { - defaultActiveKey === 0 || defaultActiveKey === "0" ? -this.props.showmodelysl(items.id)}> - - 删除 -
- { - items.item_type === "PROGRAM" ? - this.props.Isitapopup && this.props.Isitapopup === "true" ? - "" - : - -- - 编辑 -
- - : - this.props.Isitapopup && this.props.Isitapopup === "true" ? - "" - : - -- - 编辑 -
- - } - { - items.public === false ? - items.item_type === "PROGRAM" ? - ( - items.program_attr.status === 0 ? - "" - : - items.apply === false ? -this.props.showmodels(items.id)}> - - 公开 -
- : - ( - items.public == true ? - "" - : -this.props.showmodelsInaudit(e)}> - - 公开审核中 -
- ) - ) - : items.apply === false ? -this.props.showmodels(items.id)}> - - 公开 -
- : - "" - : - "" - } + ) + : + "" + } -this.props.chakanjiexibool(keindex)}> - +
this.props.chakanjiexibool(keindex)}> + 查看解析
- } - - --
- : items.item_type === "MULTIPLE" ? --
- : --
- } - -- {items ? - items.analysis === undefined || items.analysis === null || items.analysis === "" ? +
+
+ : items.item_type === "MULTIPLE"? ++ +
+ : ++
+ } - "" - : - items.analysis.length > 0 ? - analysisnames === null || analysisnames === undefined ? "" : -+ 解析: +
+
+ {items ?
+ items.analysis=== undefined || items.analysis=== null || items.analysis === "" ?
+
+ ""
+ :
+ items.analysis.length>0?
+ analysisnames===null || analysisnames===undefined?"":
+
this.props.showmodels(items.id)}> 公开
- :"" + : + ( + items.public==true? + "" + : +this.props.showmodelsInaudit(e)}> + + 公开审核中 +
+ ) } :""} diff --git a/public/react/src/modules/testpaper/component/QuestionModalys.js b/public/react/src/modules/testpaper/component/QuestionModalys.js new file mode 100644 index 000000000..7bd704884 --- /dev/null +++ b/public/react/src/modules/testpaper/component/QuestionModalys.js @@ -0,0 +1,42 @@ +import React, { Component } from 'react'; +import {getImageUrl} from 'educoder'; +import { Modal} from 'antd'; +import axios from 'axios'; +import './../../question/questioncss/questioncom.css' +//立即申请试用 +class QuestionModalys extends Component { + + constructor(props) { + super(props); + this.state={ + + } + } + + + render() { + + return( +