调整设置模式

dev_ec
杨树明 5 years ago
parent a8f379b2d1
commit a8f4b758d3

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

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

Loading…
Cancel
Save