diff --git a/public/react/src/modules/user/usersInfo/InfosTopics.js b/public/react/src/modules/user/usersInfo/InfosTopics.js index dd1bf0378..382abdd47 100644 --- a/public/react/src/modules/user/usersInfo/InfosTopics.js +++ b/public/react/src/modules/user/usersInfo/InfosTopics.js @@ -73,11 +73,21 @@ class InfosTopics extends Component{ this.setState({ isSpin:true }) - let user_id=this.props.match.params&&this.props.match.params.username; + let types=this.props.match.params.topicstype; + let user_id=""; + + if(types==="publicly"){ + user_id=this.props.current_user&&this.props.current_user.login; + }else{ + user_id=this.props.match.params&&this.props.match.params.username; + } + if(user_id!=undefined){ + console.log(user_id) let {per_page}=this.state; let url=`/users/${user_id}/question_banks.json`; - axios.get(url,{params:{ + + axios.get(encodeURI(url),{params:{ type, object_type:category, course_list_id, @@ -396,6 +406,13 @@ class InfosTopics extends Component{ .marright0{ margin-right: 0px !important; } + + .gongkais{ + min-width: 50px; + height: 22px !important; + line-height: 22px !important; + color: #fff !important; + } ` } @@ -404,7 +421,7 @@ class InfosTopics extends Component{
{types==="publicly"?
我的题库 + href={`/users/${this.props.current_user&&this.props.current_user.login}/topics/personal`}>我的题库
公共题库
:
@@ -455,7 +472,7 @@ class InfosTopics extends Component{
- {isshowprofes===false?
+ {isshowprofes===false?data&&data.count===undefined?"":data&&data.count===0?"":

{data&&data.count===undefined?0:data&&data.count} 已选择 {checkBoxValues.length} 个 (不支持跨页勾选) @@ -513,7 +530,7 @@ class InfosTopics extends Component{ {item.name} - {item.is_public===true?types==="publicly"?"":公开:""} + {item.is_public===true?types==="publicly"?"":公开:""}