|
|
@ -13,6 +13,7 @@ import JudquestionEditor from "./component/JudquestionEditor";
|
|
|
|
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
|
|
|
|
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import actions from "../../redux/actions";
|
|
|
|
import actions from "../../redux/actions";
|
|
|
|
|
|
|
|
import QuestionModalPicture from "./component/QuestionModalPicture";
|
|
|
|
var restricte=false;
|
|
|
|
var restricte=false;
|
|
|
|
class Questionitem_banks extends Component {
|
|
|
|
class Questionitem_banks extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
constructor(props) {
|
|
|
@ -29,6 +30,7 @@ class Questionitem_banks extends Component {
|
|
|
|
knowledgepoints: [],
|
|
|
|
knowledgepoints: [],
|
|
|
|
disciplmy:[],
|
|
|
|
disciplmy:[],
|
|
|
|
pages:1,
|
|
|
|
pages:1,
|
|
|
|
|
|
|
|
url:''
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -517,14 +519,32 @@ class Questionitem_banks extends Component {
|
|
|
|
this.scrollToAnchor("Itembankstopid");
|
|
|
|
this.scrollToAnchor("Itembankstopid");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleShowUploadImage=(url)=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
url:url
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
handleClose=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
url:'',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {page, limit, count, Headertop, visible, placement, modalsType, item_type,restricte} = this.state;
|
|
|
|
let {page, limit, count, Headertop, visible, placement, modalsType, item_type,restricte,url} = this.state;
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
// ////console.log(params);
|
|
|
|
// ////console.log(params);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "
|
|
|
|
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{url?
|
|
|
|
|
|
|
|
<QuestionModalPicture {...this.props} {...this.state} handleClose={()=>this.handleClose()}></QuestionModalPicture>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
""
|
|
|
|
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
restricte===false?
|
|
|
|
restricte===false?
|
|
|
|
<Prompt
|
|
|
|
<Prompt
|
|
|
@ -567,8 +587,32 @@ class Questionitem_banks extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
</Itembankstop>
|
|
|
|
</Itembankstop>
|
|
|
|
<div >
|
|
|
|
<div >
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item_type && item_type === "SINGLE" ?
|
|
|
|
item_type && item_type === "SINGLE" ?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className=" clearfix educontent w100s w1200fpx mt19">
|
|
|
|
|
|
|
|
<SingleEditor
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
getanswerMdRef={(ref) => this.getanswerMdRef(ref)}
|
|
|
|
|
|
|
|
handleShowUploadImage={(url)=>this.handleShowUploadImage(url)}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</SingleEditor>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
: item_type && item_type === "MULTIPLE" ?
|
|
|
|
|
|
|
|
<div className=" clearfix educontent w100s w1200fpx mt19">
|
|
|
|
|
|
|
|
<ChoquesEditor
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
getanswerMdRef={(ref) => this.getChoquesEditor(ref)}
|
|
|
|
|
|
|
|
handleShowUploadImage={(url)=>this.handleShowUploadImage(url)}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ChoquesEditor>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: item_type && item_type === "JUDGMENT" ?
|
|
|
|
|
|
|
|
|
|
|
|
<div className=" clearfix educontent w100s w1200fpx mt19">
|
|
|
|
<div className=" clearfix educontent w100s w1200fpx mt19">
|
|
|
|
<SingleEditor
|
|
|
|
<SingleEditor
|
|
|
|