This commit is contained in:
姜棚 2021-11-26 10:56:11 +08:00
parent 0ade558d3d
commit fe0c173380
3 changed files with 9 additions and 8 deletions

View File

@ -35,7 +35,7 @@ export default class add extends React.Component{
submit(){ submit(){
this.refs.step1.submit(); this.refs.step1.submit();
} }
onCancel(){ onReturn(){
let self = this; let self = this;
@ -312,12 +312,12 @@ export default class add extends React.Component{
this.state.curstep == 3 ? ( this.state.curstep == 3 ? (
<div className="step-btn-group"> <div className="step-btn-group">
<Button type="primary" onClick={()=>this.onNextStep()}>提交审核</Button> <Button type="primary" onClick={()=>this.onNextStep()}>提交审核</Button>
<Button type="normal" onClick={()=>this.onCancel()}>取消</Button> <Button type="normal" onClick={()=>this.onReturn()}>取消</Button>
</div> </div>
) :( ) :(
<div className="step-btn-group"> <div className="step-btn-group">
<Button type="primary" onClick={()=>this.onNextStep()}>下一步</Button> <Button type="primary" onClick={()=>this.onNextStep()}>下一步</Button>
<Button type="normal" onClick={()=>this.onCancel()}>取消</Button> <Button type="normal" onClick={()=>this.onReturn()}>取消</Button>
</div> </div>
) )
} }
@ -372,7 +372,7 @@ export default class add extends React.Component{
</div> </div>
</div> </div>
<div className="audit-btn-group"> <div className="audit-btn-group">
<Button onClick={(e)=>{this.onCancel(e)}}>取消</Button> <Button onClick={(e)=>{this.onReturn(e)}}>取消</Button>
<Button type="primary" onClick={(e)=>{this.send(e)}} >发送</Button> <Button type="primary" onClick={(e)=>{this.send(e)}} >发送</Button>
</div> </div>
</div> </div>

View File

@ -283,9 +283,10 @@ export default class acclist extends React.Component{
} }
onRestrict(e,rowdata){ onRestrict(e,rowdata){
let rowIndex = _.findIndex(this.state.distdata,(item)=>{
return item= rowdata let rowIndex =this.state.distdata.findIndex((o)=>{return o.title == rowdata.title})
})
console.log(rowdata) console.log(rowdata)
console.log("当前输入的值") console.log("当前输入的值")
console.log( e.target.value) console.log( e.target.value)

View File

@ -106,7 +106,7 @@ export default class acclist extends React.Component{
this.onThemeChange(e) this.onThemeChange(e)
Bus.emit('change',"theme_id" ,e); Bus.emit('change',"theme_id" ,e);
}} /> }} />
<Button type="primary" onClick="linkToPage">新建落地页</Button> <Button type="primary" onClick={()=>{this.linkToPag()}} >新建落地页</Button>
</FormItem> </FormItem>
<FormItem labelname="兑换入口交互" prop="link"> <FormItem labelname="兑换入口交互" prop="link">
<RadioGroup onChange={(e)=>{ this.onLinkChange(e)} } value={this.state.model.link}> <RadioGroup onChange={(e)=>{ this.onLinkChange(e)} } value={this.state.model.link}>