From 3c322a38c3d1c201305b2d6fac6d79fea4b002ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 29 Aug 2019 09:30:21 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E9=A2=98=E5=BA=93=E5=AE=8C?=
=?UTF-8?q?=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/user/usersInfo/InfosTopics.js | 104 ++++++++++--------
.../src/modules/user/usersInfo/usersInfo.css | 10 +-
2 files changed, 65 insertions(+), 49 deletions(-)
diff --git a/public/react/src/modules/user/usersInfo/InfosTopics.js b/public/react/src/modules/user/usersInfo/InfosTopics.js
index ff06f1522..e7a35b851 100644
--- a/public/react/src/modules/user/usersInfo/InfosTopics.js
+++ b/public/react/src/modules/user/usersInfo/InfosTopics.js
@@ -117,7 +117,8 @@ class InfosTopics extends Component{
category,
course_list_id,
isSpin,
- data
+ data,
+ page
} = this.state;
let categorylist=[
@@ -128,9 +129,53 @@ class InfosTopics extends Component{
{val:"试卷",type:"exercise"},
{val:"问卷",type:"poll"},
]
+
+ let types=this.props.match.params.topicstype;
+
+ console.log(types)
+
+ //types===publicly 公共
+ //types===personal 私有
return(
{/*提示*/}
+
{categorylist.map((item,key)=>{
return(
- this.searchCategory(item.type)}>{item.val}
+ this.searchCategory(item.type)}>{item.val}
)
})}
-
-
+
this.searchCourselistid(undefined)}>全部
{data===undefined?"":data.course_list===undefined||data.course_list.length===0?"":data.course_list.map((item,key)=>{
return(
@@ -191,35 +220,28 @@ class InfosTopics extends Component{
最近更新
发送
- 删除
+ {types==="personal"?删除:""}
{data===undefined?
:data.question_banks===undefined||data.question_banks.length===0?
:data.question_banks.map((item,key)=>{
return(
-
+
{/*id: 4269*/}
-
{item.name}
- {item.is_public===true?
公开:""}
+ {item.is_public===false?
公开:""}
+
+ {types==="personal"&&item.is_public===false?
设为公开:""}
@@ -232,23 +254,9 @@ class InfosTopics extends Component{
{item.course_list_name}
-
-
- {/*
*/}
-
+
+ {types==="personal"?
编辑:""}
+
diff --git a/public/react/src/modules/user/usersInfo/usersInfo.css b/public/react/src/modules/user/usersInfo/usersInfo.css
index 0374dd765..c1e7bf849 100644
--- a/public/react/src/modules/user/usersInfo/usersInfo.css
+++ b/public/react/src/modules/user/usersInfo/usersInfo.css
@@ -339,4 +339,12 @@
border-radius: 5px;
border: 1px solid #4CACFF !important;
line-height: 23px !important;
-}
\ No newline at end of file
+}
+
+.topscisright{
+ right: -2px;
+ top: 50px;
+ display: block;
+ position: absolute;
+}
+