|
|
|
@ -13,6 +13,7 @@ import {
|
|
|
|
|
} from "antd";
|
|
|
|
|
import './../questioncss/questioncom.css';
|
|
|
|
|
import QuillForEditor from "../../../common/quillForEditor";
|
|
|
|
|
import Certifiedprofessional from "../../modals/Certifiedprofessional";
|
|
|
|
|
|
|
|
|
|
const tagArray = [
|
|
|
|
|
'A.', 'B.', 'C.', 'D.', 'E.', 'F.', 'G.', 'H.', 'I.',
|
|
|
|
@ -32,7 +33,9 @@ class Listjihe extends Component {
|
|
|
|
|
page: 1,
|
|
|
|
|
name: "单选题",
|
|
|
|
|
nd: "简单",
|
|
|
|
|
url: ""
|
|
|
|
|
url: "",
|
|
|
|
|
mydisplay:false,
|
|
|
|
|
occupation:2,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -79,10 +82,29 @@ class Listjihe extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
seturls(url){
|
|
|
|
|
if(this.props.current_user.professional_certification===false){
|
|
|
|
|
this.HideAddcoursestypess(2);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.props.history.replace(url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HideAddcoursestypess=(i)=>{
|
|
|
|
|
console.log("调用了");
|
|
|
|
|
this.setState({
|
|
|
|
|
mydisplay:true,
|
|
|
|
|
occupation:i,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mydisplayHidedel=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
mydisplay:false,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {page, name, nd,url} = this.state;
|
|
|
|
|
let {page, name, nd,url,mydisplay} = this.state;
|
|
|
|
|
let {defaultActiveKey, items, listjihe, chakanjiexiboolindex, keindex} = this.props;
|
|
|
|
|
|
|
|
|
|
// 编程答案
|
|
|
|
@ -195,6 +217,27 @@ class Listjihe extends Component {
|
|
|
|
|
<div key={keindex}
|
|
|
|
|
className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "w100s borderwds pd20 mb20 listjihecolors"}>
|
|
|
|
|
{/*顶部*/}
|
|
|
|
|
{
|
|
|
|
|
mydisplay===true?
|
|
|
|
|
<Certifiedprofessional {...this.props} {...this.state} ModalCancelsy={this.mydisplayHidedel} />
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
mydisplay===true?
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
body{
|
|
|
|
|
overflow:hidden!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
@ -246,7 +289,7 @@ class Listjihe extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
items.item_type==="PROGRAM"?
|
|
|
|
|
<a href={`/problems/${items.program_attr.identifier}/edit`}>
|
|
|
|
|
<a onClick={()=>this.seturls(`/problems/${items.program_attr.identifier}/edit`)} >
|
|
|
|
|
<div className="ml10 w100s " style={{wordBreak: "break-word",fontWeight:"bold"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
@ -421,7 +464,7 @@ class Listjihe extends Component {
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a href={`/problems/${items.program_attr.identifier}/edit?editoj=1&pages=`+this.props.pages}>
|
|
|
|
|
<a onClick={()=>this.seturls(`/problems/${items.program_attr.identifier}/edit?editoj=1&pages=`+this.props.pages)}>
|
|
|
|
|
<p className="viewparsings xiaoshou mr25">
|
|
|
|
|
<i className="iconfont icon-bianji2 font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>编辑</span>
|
|
|
|
@ -431,7 +474,7 @@ class Listjihe extends Component {
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a href={`/question/edit/${items.id}`}>
|
|
|
|
|
<a onClick={()=>this.seturls(`/question/edit/${items.id}`)}>
|
|
|
|
|
<p className="viewparsings xiaoshou mr25">
|
|
|
|
|
<i className="iconfont icon-bianji2 font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>编辑</span>
|
|
|
|
@ -493,7 +536,7 @@ class Listjihe extends Component {
|
|
|
|
|
items.item_type === "PROGRAM" ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<p className="viewparsings mr25" onClick={() => this.props.chakanjiexibool(keindex)}>
|
|
|
|
|
<p className="viewparsings xiaoshou mr25" onClick={() => this.props.chakanjiexibool(keindex)}>
|
|
|
|
|
<i className="iconfont icon-jiexi font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
查看解析</p>
|
|
|
|
|
}
|
|
|
|
|