|
|
|
@ -18,6 +18,7 @@ import NoneData from './component/NoneData';
|
|
|
|
|
import './questioncss/questioncom.css';
|
|
|
|
|
import '../tpm/newshixuns/css/Newshixuns.css';
|
|
|
|
|
import QuillForEditor from "../../common/quillForEditor";
|
|
|
|
|
import QuestionModalPicture from "./component/QuestionModalPicture";
|
|
|
|
|
|
|
|
|
|
const tagArray = [
|
|
|
|
|
'A.', 'B.', 'C.', 'D.', 'E.', 'F.', 'G.', 'H.', 'I.',
|
|
|
|
@ -35,6 +36,8 @@ class Paperreview_single extends Component {
|
|
|
|
|
questions: 0,
|
|
|
|
|
totalscore: 0,
|
|
|
|
|
total: 0,
|
|
|
|
|
url: ""
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -67,9 +70,20 @@ class Paperreview_single extends Component {
|
|
|
|
|
Singlemagaziness = () => {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleShowUploadImage = (url) => {
|
|
|
|
|
// console.log('==============>>>>>>>>>>>>',url);
|
|
|
|
|
// setUrl(url);
|
|
|
|
|
this.setState({
|
|
|
|
|
url:url
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
handleClose=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
url:'',
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {questions, totalscore, total, items} = this.state;
|
|
|
|
|
let {questions, totalscore, total, items,url} = this.state;
|
|
|
|
|
let {objectsingle, indexx, paperreviewsingleindex, indexxy,name} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -113,6 +127,11 @@ class Paperreview_single extends Component {
|
|
|
|
|
onMouseEnter={() => this.props.showparagraphs(indexxy,name)} style={{
|
|
|
|
|
minHeight: "114px",
|
|
|
|
|
}}>
|
|
|
|
|
{url?
|
|
|
|
|
<QuestionModalPicture {...this.props} {...this.state} handleClose={()=>this.handleClose()}></QuestionModalPicture>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
}
|
|
|
|
|
<style>{
|
|
|
|
|
`
|
|
|
|
|
.programquill .ql-editor{
|
|
|
|
@ -196,6 +215,7 @@ class Paperreview_single extends Component {
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={itemssname}
|
|
|
|
|
showUploadImage={this.handleShowUploadImage}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -239,6 +259,7 @@ class Paperreview_single extends Component {
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={itemsnamesy}
|
|
|
|
|
showUploadImage={this.handleShowUploadImage}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -270,6 +291,7 @@ class Paperreview_single extends Component {
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={string}
|
|
|
|
|
showUploadImage={this.handleShowUploadImage}
|
|
|
|
|
/>
|
|
|
|
|
:""
|
|
|
|
|
:
|
|
|
|
|