From 4c8bf0b75f1d26f611e6c9fc996367720a4490e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Mon, 9 Mar 2020 14:37:37 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20=E5=8F=91=E5=B8=83?=
=?UTF-8?q?=E8=80=83=E8=AF=95=E6=8F=90=E7=A4=BA=E6=AD=A3=E5=9C=A8=E5=BC=80?=
=?UTF-8?q?=E5=8F=91=E4=B8=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/question/Question.js | 3 --
.../question/component/QuestionModal.js | 16 +++++++--
.../modules/testpaper/Paperlibraryseeid.js | 36 ++++++++++++++++---
3 files changed, 45 insertions(+), 10 deletions(-)
diff --git a/public/react/src/modules/question/Question.js b/public/react/src/modules/question/Question.js
index 4af88160b..fb87641e3 100644
--- a/public/react/src/modules/question/Question.js
+++ b/public/react/src/modules/question/Question.js
@@ -736,9 +736,6 @@ class Question extends Component {
}
// 撤销
getitem_basketss=(id)=>{
- this.setState({
-
- })
if(Undoclickable===true){
Undoclickable=false;
//选用题型可以上传单个 或者多个题型
diff --git a/public/react/src/modules/question/component/QuestionModal.js b/public/react/src/modules/question/component/QuestionModal.js
index de7614f37..87338faa7 100644
--- a/public/react/src/modules/question/component/QuestionModal.js
+++ b/public/react/src/modules/question/component/QuestionModal.js
@@ -28,11 +28,21 @@ class QuestionModal extends Component {
width="442px"
>
-
-
+ {this.props.titilesm?
+
+
+ :
+ ""
+ }
+ {
+ this.props.titiless?
+
+ :
+ ""
+ }
diff --git a/public/react/src/modules/testpaper/Paperlibraryseeid.js b/public/react/src/modules/testpaper/Paperlibraryseeid.js
index 5012c4f24..2df0fe726 100644
--- a/public/react/src/modules/testpaper/Paperlibraryseeid.js
+++ b/public/react/src/modules/testpaper/Paperlibraryseeid.js
@@ -9,6 +9,7 @@ import '../tpm/newshixuns/css/Newshixuns.css';
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
import Seeoagertit from "./component/Seeoagertit";
import Paperlibraryseeid_item from './component/Paperlibraryseeid_item';
+import QuestionModal from "../question/component/QuestionModal";
//人工组卷预览
class Paperlibraryseeid extends Component {
constructor(props) {
@@ -17,8 +18,10 @@ class Paperlibraryseeid extends Component {
this.state = {
paperlibrartdata:[],
defaultActiveKey:"0",
-
-
+ modalsType:false,
+ titilesm:"",
+ titiless:"",
+ boolok:"知道了"
}
@@ -81,7 +84,11 @@ class Paperlibraryseeid extends Component {
}
preservation = () => {
//保存试卷
-
+ this.setState({
+ modalsType: true,
+ titilesm: "功能正在内测中,敬请期待",
+ titiless: "",
+ })
@@ -99,13 +106,34 @@ class Paperlibraryseeid extends Component {
getcontentMdRef = (Ref) => {
this.contentMdRef = Ref;
}
+
+ modalCancel =()=>{
+ this.setState({
+ modalsType: false,
+ })
+
+ }
+
+ setDownload =()=>{
+ this.setState({
+ modalsType: false,
+ })
+
+ }
+
render() {
- let {paperlibrartdata,defaultActiveKey} = this.state;
+ let {paperlibrartdata,defaultActiveKey,titilesm,titiless,boolok,modalsType} = this.state;
const params = this.props && this.props.match && this.props.match.params;
// ////console.log(params);
let urlsysl=`/paperlibrary?defaultActiveKey=${defaultActiveKey}`;
return (
+ {
+ modalsType===true?
+
this.modalCancel()}
+ setDownload={() => this.setDownload()}>
+ :""
+ }