mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-07 21:51:42 +08:00
92 lines
2.1 KiB
JavaScript
92 lines
2.1 KiB
JavaScript
|
||
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 './completetaskdetails.css';
|
||
import GroupPackage from "../groupjobbank/GroupPackage";
|
||
import GroupPackage2 from "../groupjobbank/GroupPackage2";
|
||
import AttachmentsList from "../../../common/components/attachment/AttachmentList";
|
||
import NoneData from '../../courses/coursesPublic/NoneData'
|
||
|
||
|
||
|
||
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() {
|
||
let{datas}=this.props;
|
||
return (
|
||
<div className=" clearfix edu-back-white " ref='targetElementTrainingjobsetting' style={{margin: "auto", minWidth:"1200px"}}>
|
||
<div className="yslquestionbank1">
|
||
|
||
{
|
||
datas.description===null||datas.description==="null"||datas.description===""?
|
||
""
|
||
:
|
||
<MarkdownToHtml content={datas.description} selector="work_content" className="mb10 yslquesHeigth"></MarkdownToHtml>
|
||
}
|
||
<div className="mt24">
|
||
{datas.attachments === undefined || datas.attachments === null || datas.attachments === ""? "" :
|
||
<AttachmentsList {...this.state} {...this.props} attachments={datas.attachments} ></AttachmentsList>}
|
||
<GroupPackage2 datas={datas} bool={false}></GroupPackage2>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
)
|
||
}
|
||
}
|
||
|
||
export default Groupjobbandetails; |