From 2df2b8a0c79accb13c8b5c37aabe67721c0cd8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 21 Feb 2020 17:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/question/Paperreview_single.js | 36 ++++++++++++++---- .../modules/question/component/Contentpart.js | 4 +- .../component/QuestionModalPicture.js | 25 +++++++++--- .../component/Paperlibraryseeid_items.js | 38 +++++++++++++++---- 4 files changed, 81 insertions(+), 22 deletions(-) diff --git a/public/react/src/modules/question/Paperreview_single.js b/public/react/src/modules/question/Paperreview_single.js index 27f14ba6e..311c08688 100644 --- a/public/react/src/modules/question/Paperreview_single.js +++ b/public/react/src/modules/question/Paperreview_single.js @@ -6,6 +6,7 @@ import { 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.', @@ -23,6 +24,8 @@ class Paperreview_single extends Component { questions: 0, totalscore: 0, total: 0, + url: "" + } } @@ -55,10 +58,21 @@ 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 { objectsingle, indexx, paperreviewsingleindex, indexxy, name } = this.props; + let {questions, totalscore, total, items,url} = this.state; + let {objectsingle, indexx, paperreviewsingleindex, indexxy,name} = this.props; var itemssname = ""; @@ -97,10 +111,15 @@ class Paperreview_single extends Component { } return (
this.props.showparagraphs(indexxy, name)} style={{ - minHeight: "114px", - }}> + className={ "w100s borderwdswuh mb20 pd20 "} + onMouseEnter={() => this.props.showparagraphs(indexxy,name)} style={{ + minHeight: "114px", + }}> + {url? + this.handleClose()}> + : + "" + } +
+ {/**/} +
@@ -40,4 +53,4 @@ class QuestionModalys extends Component { } } -export default QuestionModalys; +export default QuestionModalPicture; diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js index fdd076fed..cc198e1d2 100644 --- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js +++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_items.js @@ -6,6 +6,7 @@ import { import '../testioncss/testioncss.css'; import '../../tpm/newshixuns/css/Newshixuns.css'; import QuillForEditor from "../../../common/quillForEditor"; +import QuestionModalPicture from "../../question/component/QuestionModalPicture"; const tagArray = [ 'A.', 'B.', 'C.', 'D.', 'E.', 'F.', 'G.', 'H.', 'I.', @@ -23,6 +24,7 @@ class Paperlibraryseeid_items extends Component { questions: 0, totalscore: 0, total: 0, + url: "" } } @@ -55,10 +57,21 @@ class Paperlibraryseeid_items 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 { objectsingle, indexx, paperreviewsingleindex, indexxy, name } = this.props; + let {questions, totalscore, total, items,url} = this.state; + let {objectsingle, indexx, paperreviewsingleindex, indexxy,name} = this.props; var itemssname = ""; @@ -95,10 +108,15 @@ class Paperlibraryseeid_items extends Component { return (
+ className={ "w100s borderwdswuh mb20 pd20 "} + style={{ + minHeight: "114px", + }}> + {url? + this.handleClose()}> + : + "" + }