dev_new_shixunsrepository
杨树明 5 years ago
parent 40481d1cf5
commit 928e5f010d

@ -112,7 +112,7 @@ class PollDetailTabForth extends Component{
// 已有设置数据的查询 // 已有设置数据的查询
getSettingInfo=()=>{ getSettingInfo=()=>{
this.props.getPollInfo(); // this.props.getPollInfo();
let pollId=this.props.match.params.pollId; let pollId=this.props.match.params.pollId;
let url=`/polls/${pollId}/poll_setting.json`; let url=`/polls/${pollId}/poll_setting.json`;
axios.get(url).then((result)=>{ axios.get(url).then((result)=>{
@ -197,6 +197,7 @@ class PollDetailTabForth extends Component{
this.props.form.validateFieldsAndScroll((err, values) => { this.props.form.validateFieldsAndScroll((err, values) => {
if(!err){ if(!err){
this.props.getPollInfo();
// 第一次进行问卷设置或者勾选了统一设置 // 第一次进行问卷设置或者勾选了统一设置
let{unitSetting}=this.state let{unitSetting}=this.state
if(unitSetting==true){ if(unitSetting==true){

Loading…
Cancel
Save