From 8c168c5839a9807a45958ea6ea90a9c3ac0772d6 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 15:17: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 --- .../Completetaskdetails.js | 84 ++++++++++++++++++ .../completetaskdetails/Completetaskpage.js | 88 +++++++++++++++++++ .../completetaskdetails.css | 0 3 files changed, 172 insertions(+) create mode 100644 public/react/src/modules/courses/completetaskdetails/Completetaskdetails.js create mode 100644 public/react/src/modules/courses/completetaskdetails/Completetaskpage.js create mode 100644 public/react/src/modules/courses/completetaskdetails/completetaskdetails.css diff --git a/public/react/src/modules/courses/completetaskdetails/Completetaskdetails.js b/public/react/src/modules/courses/completetaskdetails/Completetaskdetails.js new file mode 100644 index 000000000..7cb9ffb86 --- /dev/null +++ b/public/react/src/modules/courses/completetaskdetails/Completetaskdetails.js @@ -0,0 +1,84 @@ +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 './questionbanks.css'; +import GroupPackage from "../groupjobbank/GroupPackage"; +import GroupPackage2 from "../groupjobbank/GroupPackage2"; + + +class Groupjobbandetails extends Component { + + constructor(props) { + super(props); + + this.state = { + + } + } + + componentDidMount() { + console.log("Groupjobbandetails"); + 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 Groupjobbandetails; \ No newline at end of file diff --git a/public/react/src/modules/courses/completetaskdetails/Completetaskpage.js b/public/react/src/modules/courses/completetaskdetails/Completetaskpage.js new file mode 100644 index 000000000..ddd34a424 --- /dev/null +++ b/public/react/src/modules/courses/completetaskdetails/Completetaskpage.js @@ -0,0 +1,88 @@ +import React, {Component} from "react"; +import {Link, NavLink} from 'react-router-dom'; +import {WordsBtn, ActionBtn} from 'educoder'; +import axios from 'axios'; +import { + notification +} from "antd"; +import CoursesListType from '../coursesPublic/CoursesListType'; +import Completetaskdetails from './Completetaskdetails'; +import '../css/members.css'; +import "../common/formCommon.css"; +import '../css/Courses.css'; +import '../css/busyWork.css'; +import '../poll/pollStyle.css'; + +class Completetaskpage extends Component { + //分组作业内容详情 + constructor(props) { + super(props); + // this.answerMdRef = React.createRef(); + + + } + + + + componentDidMount() { + // console.log("父组件加载框"); + + } + + + + + bindRef = ref => { this.child = ref } +///////////////教师截止 + + render() { + + const isAdmin = this.props.isAdmin(); + // console.log(119) + + + return ( +
+ + +
+ +
+

+ 题库 + > + 详情 +

+
+
+

+ MySQL数据库编程开发实训(基础篇) +

+ +
+ +
+
+ +
+
+ + + +
+
+ ) + } +} + +export default Completetaskpage; + diff --git a/public/react/src/modules/courses/completetaskdetails/completetaskdetails.css b/public/react/src/modules/courses/completetaskdetails/completetaskdetails.css new file mode 100644 index 000000000..e69de29bb