|
|
|
@ -73,7 +73,6 @@ class NewWorkForm extends Component{
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.contentMdRef.current.setValue(data.description || '')
|
|
|
|
|
this.answerMdRef.current.setValue(data.reference_answer || '')
|
|
|
|
|
|
|
|
|
|
}, 2000)
|
|
|
|
|
|
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
@ -86,8 +85,13 @@ class NewWorkForm extends Component{
|
|
|
|
|
} else { // new
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this._scrollToTop()
|
|
|
|
|
}
|
|
|
|
|
_scrollToTop = () => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
$("html").animate({ scrollTop: 0 })
|
|
|
|
|
}, 1500)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 输入title
|
|
|
|
|
changeTitle=(e)=>{
|
|
|
|
@ -289,6 +293,7 @@ class NewWorkForm extends Component{
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
window.$('.groupSetting .ant-form-item-label > label').addClass('ant-form-item-required')
|
|
|
|
|
this._scrollToTop()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|