From 72e0b60796b2cf4c1cf7a687b270a0b2f063a98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 27 Aug 2019 22:20:16 +0800 Subject: [PATCH] Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_Ysl # Conflicts: # public/react/src/modules/courses/new/CoursesNew.js # public/react/src/modules/courses/new/Goldsubject.js --- public/react/src/modules/courses/Index.js | 14 +- .../src/modules/courses/new/Goldsubject.js | 91 +++-------- .../questionbank/Generaljobbankdetails.js | 143 ++++++++++++++++++ 3 files changed, 176 insertions(+), 72 deletions(-) create mode 100644 public/react/src/modules/courses/questionbank/Generaljobbankdetails.js diff --git a/public/react/src/modules/courses/Index.js b/public/react/src/modules/courses/Index.js index 01117b4f8..3c6c0b717 100644 --- a/public/react/src/modules/courses/Index.js +++ b/public/react/src/modules/courses/Index.js @@ -7,7 +7,6 @@ import axios from 'axios'; import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; import { CNotificationHOC } from './common/CNotificationHOC' import {ImageLayerOfCommentHOC} from '../page/layers/ImageLayerOfCommentHOC' - import "./css/Courses.css" //引入对应跳转的组件 @@ -265,7 +264,10 @@ const GraduationTasksSubmiteditApp=Loadable({ loading: Loading, }) - +const Generaljobbankdetails =Loadable({ + loader: () => import('../../modules/courses/questionbank/Generaljobbankdetails'), + loading: Loading, +}) class CoursesIndex extends Component{ constructor(props) { @@ -445,7 +447,13 @@ class CoursesIndex extends Component{ // console.log(commons) return ( - + {/*Generaljobbankdetails*/} + {/* 普通作业题库详情*/} + () + } + > {/* 资源列表页 */} @@ -729,88 +727,43 @@ class Goldsubject extends Component { ` } - -
- - {/* */} - - {/* {getFieldDecorator('classroom', {*/} - {/* rules: [{required: true, message: "不能为空"},*/} - {/* {*/} - {/* max:60,*/} - {/* message: '不能超过60个字符',*/} - {/* }],*/} - {/* })(*/} - {/* */} - {/* */} - {/* */} - {/* )}*/} - - {/**/} - - + } + {getFieldDecorator('classroom', { rules: [{required: true, message: "不能为空"}, { max:60, message: '不能超过60个字符', }], - })( - - - - - - )} - {/**/} - {/* /!*(错误示例:数据结构2017本部;数据结构2017秋季;数据结构2017电子商务1班)*!/*/} - {/*

*/} - {/* */} - {/* 正确示例:数据结构*/} - {/*

*/} - {/*

*/} - {/* */} - {/* 错误示例:数据结构2019春*/} - {/*

*/} - {/*
*/} -
+ })()} +
+
diff --git a/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js b/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js new file mode 100644 index 000000000..9eda477f8 --- /dev/null +++ b/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js @@ -0,0 +1,143 @@ +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 '../css/members.css'; +import "../common/formCommon.css"; +import '../css/Courses.css'; +import '../css/busyWork.css'; +import '../poll/pollStyle.css'; + +class Generaljobbankdetails extends Component { + constructor(props) { + super(props); + // this.answerMdRef = React.createRef(); + this.state = { + tab: ["0"], + } + + } + + //切换tab + ChangeTab = (e) => { + // console.log(e); + this.setState({ + tab: e + }) + try { + var currenturl = window.location.href; + var newUrl = (currenturl.split("?"))[0]; + window.history.pushState('','',newUrl+'?tab='+e); + }catch (e) { + console.log(e); + console.log("44"); + } + + } + + + componentDidMount() { + // console.log("父组件加载框"); + const query = this.props.location.search; + const type = query.split('?tab='); + // let sum = [] + // sum.push(type[1]) + // console.log("componentDidMountcomponentDidMount"); + // console.log(type); + this.setState({ + tab: type[1], + }) + let querys = this.props.location.pathname; + const types = querys.split('/'); + // console.log(types); + this.setState({ + shixuntypes: types[3] + }) + } + + + confirmysl(child,i) { + if(i===1){ + child.daochushixunbaogao(); + } + if(i===2){ + child.daochuzuoye(); + } + } + + homeworkendss(child){ + // child.homeworkends(); + } + + homeworkstarts(child){ + // child.homeworkstart(); + + } + workshowmodels(child){ + // child.workshowmodel(); + } + /// 确认是否下载 + + + bindRef = ref => { this.child = ref } +///////////////教师截止 + + render() { + let {tab, teacherdatapage, jobsettingsdatapage} = this.state; + + const isAdmin = this.props.isAdmin(); + // console.log(119) + console.log(jobsettingsdatapage); + + + return ( +
+ + +
+ +
+

+ 题库 + > + 详情 + > + 作业详情 +

+
+
+

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

+ +
+ + + +
+
+ ) + } +} + +export default Generaljobbankdetails; +