调整判断

dev_aliyun_beta
杨树明 6 years ago
parent 714545fd6a
commit 3569144575

@ -488,12 +488,12 @@ class InfosTopics extends Component{
<a title={item.name.length>55?item.name:""} className="ml10 fl mt3 font-16 color-dark maxwidth900" href={ <a title={item.name.length>55?item.name:""} className="ml10 fl mt3 font-16 color-dark maxwidth900" href={
category==="normal"?`/banks/normal/${item.id}?tab=0`: category==="normal"?`/banks/normal/${item.id}/${types}?tab=0`:
category==="group"?`/banks/group/${item.id}?tab=0`: category==="group"?`/banks/group/${item.id}/${types}?tab=0`:
category==="poll"?`/banks/poll/${item.id}`: category==="poll"?`/banks/poll/${item.id}/${types}`:
category==="exercise"?`/banks/exercise/${item.id}`: category==="exercise"?`/banks/exercise/${item.id}/${types}`:
category==="gtask"?`/banks/gtask/${item.id}`: category==="gtask"?`/banks/gtask/${item.id}/${types}`:
category==="gtopic"?`/banks/gtopic/${item.id}`:"" category==="gtopic"?`/banks/gtopic/${item.id}/${types}`:""
} }
> >
{item.name} {item.name}

@ -149,13 +149,7 @@ class BanksIndex extends Component{
/>) />)
} }
}></Route> }></Route>
<Route path='/banks/exercise/:Id'
render={
(props) => {
return (<BanksTabIndex {...this.props} {...props} {...this.state} {...common}
/>)
}
}></Route>
<Route path='/banks/gtopic/:bankId/edit' <Route path='/banks/gtopic/:bankId/edit'
render={ render={
@ -173,33 +167,39 @@ class BanksIndex extends Component{
></Route> ></Route>
<Route path='/banks/poll/:bankId' <Route path='/banks/poll/:bankId/:type'
render={ render={
(props) => { (props) => {
return (<BanksTabIndex {...this.props} {...props} {...this.state} {...common} />) return (<BanksTabIndex {...this.props} {...props} {...this.state} {...common} />)
} }
}></Route> }></Route>
<Route path='/banks/exercise/:Id/:type'
{/*毕设任务题库详情*/} render={
<Route path="/banks/gtask/:workid" (props) => {
return (<BanksTabIndex {...this.props} {...props} {...this.state} {...common}
/>)
}
}></Route>
{/*毕设任务题库详情*/}
<Route path="/banks/gtask/:workid/:type"
render={ render={
(props) => (<Completetaskpage {...this.props} {...props} {...this.state} {...common} />) (props) => (<Completetaskpage {...this.props} {...props} {...this.state} {...common} />)
} }
></Route> ></Route>
{/*毕设内容题库详情*/} {/*毕设内容题库详情*/}
<Route path="/banks/gtopic/:workid" <Route path="/banks/gtopic/:workid/:type"
render={ render={
(props) => (<CompletetopicdePage {...this.props} {...props} {...this.state} {...common}/>) (props) => (<CompletetopicdePage {...this.props} {...props} {...this.state} {...common}/>)
} }
></Route> ></Route>
{/*分组作业题库详情*/} {/*分组作业题库详情*/}
<Route path="/banks/group/:workid" <Route path="/banks/group/:workid/:type"
render={ render={
(props) => (<GroupjobbankPage {...this.props} {...props} {...this.state} {...common} />) (props) => (<GroupjobbankPage {...this.props} {...props} {...this.state} {...common} />)
} }
></Route> ></Route>
{/* 普通作业题库详情*/} {/* 普通作业题库详情*/}
<Route path="/banks/normal/:workid" <Route path="/banks/normal/:workid/:type"
render={ render={
(props) => (<Generaljobbankdetails {...this.props} {...props} {...this.state} {...common} />) (props) => (<Generaljobbankdetails {...this.props} {...props} {...this.state} {...common} />)
} }

Loading…
Cancel
Save