From cb7282259c376af95b50839e37c928c82d7a5de4 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, 3 Jan 2020 15:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/modals/Bottomsubmit.js | 1 + .../modules/question/Questionitem_banks.js | 2 +- .../question/component/Itembankstop.js | 7 +-- .../question/component/Newknledpots.js | 50 +++++++++++++++++++ .../question/questioncss/questioncom.css | 15 ++++++ 5 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 public/react/src/modules/question/component/Newknledpots.js diff --git a/public/react/src/modules/modals/Bottomsubmit.js b/public/react/src/modules/modals/Bottomsubmit.js index 16174c480..670049003 100644 --- a/public/react/src/modules/modals/Bottomsubmit.js +++ b/public/react/src/modules/modals/Bottomsubmit.js @@ -12,6 +12,7 @@ class Bottomsubmit extends Component { cannelfun = () => { // window.location.href= + debugger if(this.props.Cohetepaperbool===true){ this.props.setCohetepaperbool(false); }else { diff --git a/public/react/src/modules/question/Questionitem_banks.js b/public/react/src/modules/question/Questionitem_banks.js index 20f503779..b4c957235 100644 --- a/public/react/src/modules/question/Questionitem_banks.js +++ b/public/react/src/modules/question/Questionitem_banks.js @@ -464,7 +464,7 @@ class Questionitem_banks extends Component { } if (this.state.item_type === "PROGRAM") { //编程题 跳转到 oj 中创建 - + this.props.history.replace('/problems'); } diff --git a/public/react/src/modules/question/component/Itembankstop.js b/public/react/src/modules/question/component/Itembankstop.js index 79544f010..2c149c86e 100644 --- a/public/react/src/modules/question/component/Itembankstop.js +++ b/public/react/src/modules/question/component/Itembankstop.js @@ -474,7 +474,7 @@ class Itembankstop extends Component { - +

{object.name}

- this.deletesobject(object, index)}> + + this.deletesobject(object, index)} src={getImageUrl("/images/educoder/bzucha.png")}/> +
) })} diff --git a/public/react/src/modules/question/component/Newknledpots.js b/public/react/src/modules/question/component/Newknledpots.js new file mode 100644 index 000000000..8a4cc743d --- /dev/null +++ b/public/react/src/modules/question/component/Newknledpots.js @@ -0,0 +1,50 @@ +import React, { Component } from 'react'; +import {getImageUrl} from 'educoder'; +import { Modal,Input} from 'antd'; +import axios from 'axios'; +import './../questioncss/questioncom.css' +//立即申请试用 +class PaperDeletModel extends Component { + + constructor(props) { + super(props); + this.state={ + newkntypeinput:"" + } + } + + handleChange=(e)=>{ + this.setState({ + newkntypeinput: e.target.value + }) + + } + + render() { + + return( + +
+
+ +
+
+ this.props.setmodalsTypedel()}>取消 + this.props.setmodalsTypedel(this.state.newkntypeinput)}>确定 +
+
+
+ ) + } +} + +export default PaperDeletModel; diff --git a/public/react/src/modules/question/questioncss/questioncom.css b/public/react/src/modules/question/questioncss/questioncom.css index eef7dcf12..fa653d8bf 100644 --- a/public/react/src/modules/question/questioncss/questioncom.css +++ b/public/react/src/modules/question/questioncss/questioncom.css @@ -216,6 +216,11 @@ top: -20px; right: -16px; } +.icondowncolorssy{ + position: absolute; + top: -15px; + right: -11px; +} .questiontype{ width: 100%; @@ -807,3 +812,13 @@ .mr2{ margin-right: 2px; } + +.ml22{ + margin-left: 22px; +} + +.zjzsdian{ + width: 20px; + height: 20px; + margin-top: 5px; +}