From 406ce0f988b589e8ab15a5466492063ccc3c40d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 28 Aug 2019 11:00:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/public/css/edu-all.css | 2 +- public/react/src/modules/courses/Index.js | 2 +- .../courses/questionbank/Generaljobanswer.js | 88 ++++++++++++++++++ .../questionbank/Generaljobbankdetails.js | 6 +- .../courses/questionbank/Generaljobdetails.js | 90 +++++++++++++++++++ .../courses/questionbank/questionbank.css | 22 +++++ 6 files changed, 207 insertions(+), 3 deletions(-) create mode 100644 public/react/src/modules/courses/questionbank/Generaljobanswer.js create mode 100644 public/react/src/modules/courses/questionbank/Generaljobdetails.js create mode 100644 public/react/src/modules/courses/questionbank/questionbank.css diff --git a/public/react/public/css/edu-all.css b/public/react/public/css/edu-all.css index 1daa2d5b1..425255048 100644 --- a/public/react/public/css/edu-all.css +++ b/public/react/public/css/edu-all.css @@ -3453,4 +3453,4 @@ a.singlepublishtwo{ /*.ant-notification{*/ /*width: auto !important;*/ /*max-width: 600px !important;*/ -/*}*/ \ No newline at end of file +/*}*/ diff --git a/public/react/src/modules/courses/Index.js b/public/react/src/modules/courses/Index.js index 3c6c0b717..48f07cc8c 100644 --- a/public/react/src/modules/courses/Index.js +++ b/public/react/src/modules/courses/Index.js @@ -449,7 +449,7 @@ class CoursesIndex extends Component{ {/*Generaljobbankdetails*/} {/* 普通作业题库详情*/} - () } diff --git a/public/react/src/modules/courses/questionbank/Generaljobanswer.js b/public/react/src/modules/courses/questionbank/Generaljobanswer.js new file mode 100644 index 000000000..2f2816662 --- /dev/null +++ b/public/react/src/modules/courses/questionbank/Generaljobanswer.js @@ -0,0 +1,88 @@ +import React, {Component} from "react"; +import { WordsBtn,on, off, trigger,markdownToHTML,getImageUrl} from 'educoder'; +import { + Button, + Checkbox, + message, + InputNumber, + DatePicker, + Radio, + Tooltip, + notification, +} from "antd"; +import './questionbank.css'; + +class Generaljobanswer extends Component { + + constructor(props) { + super(props); + + this.state = { + + } + } + + componentDidMount() { + console.log("Generaljobanswer"); + console.log("componentDidMount"); + // let query = this.props.location.pathname; + // const type = query.split('/'); + // this.setState({ + // shixuntypes:type[3] + // }) + // this.props.triggerRef(this); + + + + + } + // 获取数据地方 + getTrainingjobsetting = () => { + var homeworkid = this.props.match.params.homeworkid; + } + + //跳转道描点的地方 + scrollToAnchor = (anchorName) => { + if (anchorName) { + // 找到锚点 + let anchorElement = document.getElementById(anchorName); + // 如果对应id的锚点存在,就跳转到锚点 + if(anchorElement) { anchorElement.scrollIntoView(); } + } + }; + + + + render() { + + return ( +
+
+ + + + +
+ + ) + } +} + +export default Generaljobanswer; \ No newline at end of file diff --git a/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js b/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js index 9eda477f8..74deb7a60 100644 --- a/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js +++ b/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js @@ -6,7 +6,8 @@ import { notification } from "antd"; import CoursesListType from '../coursesPublic/CoursesListType'; - +import Generaljobdetails from './Generaljobdetails'; +import Generaljobanswer from './Generaljobanswer'; import '../css/members.css'; import "../common/formCommon.css"; import '../css/Courses.css'; @@ -133,6 +134,9 @@ class Generaljobbankdetails extends Component {
+ {parseInt(tab) === 0 ? :""} + {parseInt(tab) === 1 ? :""} + ) diff --git a/public/react/src/modules/courses/questionbank/Generaljobdetails.js b/public/react/src/modules/courses/questionbank/Generaljobdetails.js new file mode 100644 index 000000000..d33792c43 --- /dev/null +++ b/public/react/src/modules/courses/questionbank/Generaljobdetails.js @@ -0,0 +1,90 @@ +import React, {Component} from "react"; +import { WordsBtn,on, off, trigger,markdownToHTML,getImageUrl} from 'educoder'; +import { + Button, + Checkbox, + message, + InputNumber, + DatePicker, + Radio, + Tooltip, + notification, +} from "antd"; +import './questionbank.css'; + + +class Generaljobdetails extends Component { + + constructor(props) { + super(props); + + this.state = { + + } + } + + componentDidMount() { + console.log("Generaljobdetails"); + console.log("componentDidMount"); + // let query = this.props.location.pathname; + // const type = query.split('/'); + // this.setState({ + // shixuntypes:type[3] + // }) + // this.props.triggerRef(this); + + + + + } + // 获取数据地方 + getTrainingjobsetting = () => { + var homeworkid = this.props.match.params.homeworkid; + } + + //跳转道描点的地方 + scrollToAnchor = (anchorName) => { + if (anchorName) { + // 找到锚点 + let anchorElement = document.getElementById(anchorName); + // 如果对应id的锚点存在,就跳转到锚点 + if(anchorElement) { anchorElement.scrollIntoView(); } + } + }; + + + + render() { + + return ( +
+ + + + ) + } +} + +export default Generaljobdetails; \ No newline at end of file diff --git a/public/react/src/modules/courses/questionbank/questionbank.css b/public/react/src/modules/courses/questionbank/questionbank.css new file mode 100644 index 000000000..9c9405347 --- /dev/null +++ b/public/react/src/modules/courses/questionbank/questionbank.css @@ -0,0 +1,22 @@ +.yslquestionbank1{ + padding-top: 30px !important; + padding-right: 30px !important; + padding-left: 30px !important; +} +.yslquesHeigth{ + min-height: 500px !important; + +} +.yslquesmarkdowntext{ + font-size: 16px; + color: #707070; + +} +.yslquesmat26{ + margin-top: 26px; + padding-bottom: 44px !important; +} +.ysltextcolor9999{ + color: #999999; + font-size: 14px; +} \ No newline at end of file