|
|
|
@ -87,7 +87,7 @@ class GraduateTopicNew extends Component{
|
|
|
|
|
let topicId=this.props.match.params.topicId
|
|
|
|
|
let url=`/courses/${cid}/graduation_topics/${topicId}/edit.json`;
|
|
|
|
|
axios.get((url)).then((result)=>{
|
|
|
|
|
if(result.status==200){
|
|
|
|
|
if(result){
|
|
|
|
|
this.setState({
|
|
|
|
|
left_banner_id:result.data.left_banner_id,
|
|
|
|
|
course_name:result.data.course_name,
|
|
|
|
@ -315,6 +315,11 @@ class GraduateTopicNew extends Component{
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
return(
|
|
|
|
|
<div className="newMain ">
|
|
|
|
|
<style>{`
|
|
|
|
|
.courseForm .ant-form-item-label{
|
|
|
|
|
margin-left:unset!important
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<div className="edu-class-container edu-position courseForm">
|
|
|
|
|
<p className="clearfix mb20 mt10">
|
|
|
|
|
<WordsBtn style="grey" className="fl" to={`/courses/${coursesId}`}>{course_name}</WordsBtn>
|
|
|
|
@ -385,6 +390,31 @@ class GraduateTopicNew extends Component{
|
|
|
|
|
margin-top:0px!important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-form-item-children{
|
|
|
|
|
position:unset
|
|
|
|
|
}
|
|
|
|
|
.rememberTip{
|
|
|
|
|
position:absolute;
|
|
|
|
|
right:0px;
|
|
|
|
|
bottom:-10px;
|
|
|
|
|
}
|
|
|
|
|
.chooseDes .ant-form-explain{
|
|
|
|
|
position:absolute;
|
|
|
|
|
bottom:-10px;
|
|
|
|
|
left:0px;
|
|
|
|
|
}
|
|
|
|
|
.setUploadStyle .uploadBtn{
|
|
|
|
|
height:20px;
|
|
|
|
|
line-height:20px;
|
|
|
|
|
}
|
|
|
|
|
.setUploadStyle .ant-form-item-control{
|
|
|
|
|
margin-top:15px!important;
|
|
|
|
|
line-height:22px!important;
|
|
|
|
|
}
|
|
|
|
|
.setUploadStyle .ant-upload-list{
|
|
|
|
|
margin-top:5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
<div className="createPage">
|
|
|
|
@ -392,7 +422,7 @@ class GraduateTopicNew extends Component{
|
|
|
|
|
<Form.Item
|
|
|
|
|
label="选题简介"
|
|
|
|
|
style={{"borderBottom":'none'}}
|
|
|
|
|
className="chooseDes"
|
|
|
|
|
className="chooseDes pr"
|
|
|
|
|
>
|
|
|
|
|
{getFieldDecorator('description', {
|
|
|
|
|
rules: [{
|
|
|
|
@ -405,7 +435,9 @@ class GraduateTopicNew extends Component{
|
|
|
|
|
mdID={'courseMessageMD'} initValue={this.editTopic ? this.editTopic.content : ''} className="courseMessageMD"></TPMMDEditor>
|
|
|
|
|
)}
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<Form.Item
|
|
|
|
|
className="setUploadStyle"
|
|
|
|
|
>
|
|
|
|
|
{
|
|
|
|
|
getFieldDecorator('file',{
|
|
|
|
|
rules:[{
|
|
|
|
@ -508,6 +540,9 @@ class GraduateTopicNew extends Component{
|
|
|
|
|
.flexBlock .ant-row.ant-form-item {
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
.ant-cascader-menu{
|
|
|
|
|
min-width:125px!important;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -546,7 +581,7 @@ class GraduateTopicNew extends Component{
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item
|
|
|
|
|
label="调研或实习地点"
|
|
|
|
|
className="mt15 with22"
|
|
|
|
|
className="mt15 with22 setAreaStyle"
|
|
|
|
|
>
|
|
|
|
|
{getFieldDecorator('city', {
|
|
|
|
|
rules: [{
|
|
|
|
|