From fff84abfd27aa4f59507932862746a632f99d249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 6 Sep 2019 17:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/user/usersInfo/InfosTopics.js | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) 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{
共 {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"?"":公开:""}