diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js index 39a16e8a6..a3513db40 100644 --- a/public/react/src/modules/courses/poll/PollNew.js +++ b/public/react/src/modules/courses/poll/PollNew.js @@ -9,7 +9,6 @@ import '../css/Courses.css' import axios from 'axios' import moment from "../new/CoursesNew"; import Modals from "../../modals/Modals"; -import Editingcomponent from "./components/Editingcomponent" const TextArea = Input.TextArea const RadioGroup = Radio.Group diff --git a/public/react/src/modules/courses/poll/components/Editingcomponent.js b/public/react/src/modules/courses/poll/components/Editingcomponent.js deleted file mode 100644 index 5a27a42e2..000000000 --- a/public/react/src/modules/courses/poll/components/Editingcomponent.js +++ /dev/null @@ -1,332 +0,0 @@ -import React, {Component} from "react"; -import '../pollStyle.css' -import {Input, Tooltip, Checkbox, Radio, Select} from 'antd' -import {WordsBtn, ActionBtn} from 'educoder' -const TextArea = Input.TextArea -const RadioGroup = Radio.Group -const CheckboxGroup = Checkbox.Group -class Editingcomponent extends Component { - - constructor(props) { - super(props); - this.state = { - adddom:this.props.adddom, - Newedit:this.props.Newedit, - } - } - componentWillReceiveProps(nextProps) { - const { adddom } = this.state - const newdata = nextProps.adddom.toString() - if (adddom.toString() !== newdata) { - this.setState({ - adddom: nextProps.adddom, - }) - } - } - // componentWillReceiveProps(nextProps) { - // // console.log("46"); - // // console.log(nextProps); - // // console.log(this.props); - // if (nextProps.adddom != this.props.adddom) { - // // console.log("50"); - // // console.log(nextProps.user); - // if (nextProps.adddom !== undefined) { - // // console.log("53"); - // // console.log(nextProps.user); - // this.setState({ - // adddom: nextProps.adddom, - // }) - // } - // - // - // } - // } - - OnCheckAllChange =(e, indexo)=>{ - this.props.OnCheckAllChange(e, indexo); - } - - HandleInputTopic = (e, indexo)=>{ - this.props.HandleInputTopic(e, indexo); - - } - - Deleteentrys=(id, i, stirngname)=>{ - this.props.Deleteentrys(id, i, stirngname); - } - - HandleInputChanges=(e, i, k)=>{ - console.log("handleInputChanges"+" "+e); - console.log("handleInputChanges"+" "+i); - console.log("handleInputChanges"+" "+k); - - this.props.HandleInputChanges(e, i, k); - } - - Ewoption = (id, object) => { - this.props.Ewoption(id, object) - } - - Addanotheroption = (id) => { - this.props.Addanotheroption(id); - } - Deleteadddom = (indexo) => { - this.props.Deleteadddom(indexo); - } - Deleteadddomthree= (indexo, object)=>{ - this.props.Deleteadddomthree(indexo, object); - } - Deleteadddomtwo =(indexo, object)=>{ - this.props.Deleteadddomtwo(indexo, object); - } - HandleGradationGroupChangee = (value, index, max, length) => { - this.props.HandleGradationGroupChangee(value, index, max, length); - } - HandleGradationGroupChangeee= (value, index) => { - this.props.HandleGradationGroupChangeee(value, index); - } - - render() { - return ( -
- 其它
-
-
- {this.state.polls_status === undefined || this.state.polls_status === 1 ?
- this.Deleteentrys(arrid, indext, true)}>
- 选项
-
-
- {this.state.polls_status === undefined || this.state.polls_status === 1 ?
- this.Deleteentrys(arrid, indext, false)}>