Update main.js

This commit is contained in:
姜棚 2021-11-30 09:43:13 +08:00
parent 0bb2c6d70c
commit 49a01150b5
1 changed files with 9 additions and 5 deletions

View File

@ -29,7 +29,8 @@ export default class edittemplate extends React.Component{
},
preview_visible:false,
previewData:null,
pageInfo:null
pageInfo:null,
isExchangePage:false,
}
}
@ -76,14 +77,17 @@ export default class edittemplate extends React.Component{
title:myInfo.title,
thumb:myInfo.thumb
}
if(myInfo.href != "")
if(myInfo.href)
{
this.setState({pageInfo:true})
model.list = parseInt(myInfo.list)
model.use = myInfo.use
model.link = myInfo.link
model.edit= myInfo.edit
model.href= myInfo.href
this.setState({isExchangePage:true})
}
this.setState({model:model})
@ -664,7 +668,7 @@ export default class edittemplate extends React.Component{
</div>
</FormItem>
{
this.state.pageInfo ? (
this.state.isExchangePage ? (
<FormItem labelname="样式选择" prop="list" style={{marginTop:'15px'}}>
<div>
</div>
@ -673,7 +677,7 @@ export default class edittemplate extends React.Component{
) : null
}
{
this.state.pageInfo ? (
this.state.isExchangePage ? (
<FormItem labelname="" prop="list" labelwidth="0px" required={false}>
<RadioGroup onChange={(e)=>{this.onListChange(e)} } value={this.state.model.list}>
<RadioButton value={1}>列表</RadioButton>