import React, {Component} from "react"; import { Form, Select, Input, Button, Checkbox, Upload, Icon, message, Modal, Table, Divider, InputNumber, Tag, DatePicker, Radio, Tooltip, notification } from "antd"; import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor'; import {Link, Switch, Route, Redirect} from 'react-router-dom'; import axios from 'axios'; import '../css/members.css' import "../common/formCommon.css" import '../css/Courses.css' import '../css/members.css' import "../common/formCommon.css" import '../css/Courses.css' import moment from 'moment'; import '../css/members.css' import "../common/formCommon.css" import './style.css' import Workquestionandanswer from "./Workquestionandanswer"; const { TextArea } = Input; class Homeworddescription extends Component { constructor(props) { super(props); this.state = { props: props, description:props.description, } } componentDidMount() { } //取消操作 clickcancel =()=>{ this.props.NOReleaseNotes(); } //确认操作 onSaveExercise=()=>{ if(this.state.description === "" || this.state.description===undefined || this.state.description === null){ this.props.showNotification("请输入作业说明"); return } this.props.ReleaseNotes(this.state.description); } //获取输入框 settextarea=(e)=>{ console.log("settextarea"); console.log(e); this.setState({ description:e }) } render() { return (
{/**/}
) } } const Homeworddescriptions = Form.create({name: 'taskPollNew'})(Homeworddescription); export default Homeworddescriptions;