调整设置模式

dev_ec
杨树明 5 years ago
parent a8f379b2d1
commit a8f4b758d3

@ -93,13 +93,24 @@ class Exercisesetting extends Component{
//加载
componentDidMount=()=>{
this.getSettingInfo();
// window.addEventListener('click', this.handleClick);
try {
this.props.triggerRef(this);
}catch (e) {
}
if(this.props.Commonheadofthetestpaper!=undefined){
this.editSetting()
}
}
componentDidUpdate = (prevProps) => {
if(prevProps.Commonheadofthetestpaper!= this.props.Commonheadofthetestpaper){
this.editSetting()
}
}
_getRequestParams() {
const { order, exercise_group_id,searchtext, page ,limit} = this.state
return {

@ -83,8 +83,15 @@ class PollDetailTabForth extends Component{
componentDidMount=()=>{
this.getSettingInfo();
//window.addEventListener('click', this.handleClick);
if(this.props.pollDetail!=undefined){
this.editSetting();
}
}
componentDidUpdate = (prevProps) => {
if(prevProps.pollDetail!= this.props.pollDetail){
this.editSetting();
}
}
handleClick=(e)=>{
console.log(e);
}

Loading…
Cancel
Save