diff --git a/public/react/src/modules/courses/completetaskdetails/Completetaskpage.js b/public/react/src/modules/courses/completetaskdetails/Completetaskpage.js
index fe2602b80..e2b1e29e1 100644
--- a/public/react/src/modules/courses/completetaskdetails/Completetaskpage.js
+++ b/public/react/src/modules/courses/completetaskdetails/Completetaskpage.js
@@ -81,6 +81,7 @@ class Completetaskpage extends Component {
tos:`/banks/gtask/${workids}/edit/${this.props.match.params.type}`,
id:workids,
is_public:response && response.data && response.data.is_public,
+ type:this.props.match.params.type,
}
this.setState({
banksMenu:menuData
diff --git a/public/react/src/modules/courses/comtopicdetails/CompletetopicdePage.js b/public/react/src/modules/courses/comtopicdetails/CompletetopicdePage.js
index 6ca17505e..2235c5a1e 100644
--- a/public/react/src/modules/courses/comtopicdetails/CompletetopicdePage.js
+++ b/public/react/src/modules/courses/comtopicdetails/CompletetopicdePage.js
@@ -76,6 +76,7 @@ class CompletetopicdePage extends Component {
tos:`/banks/gtopic/${workids}/edit/${this.props.match.params.type}`,
id:workids,
is_public:response && response.data && response.data.is_public,
+ type:this.props.match.params.type,
}
this.setState({
banksMenu:menuData
diff --git a/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js b/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js
index 17503be3e..394477a7d 100644
--- a/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js
+++ b/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js
@@ -86,6 +86,7 @@ class GroupjobbankPage extends Component {
tos:`/banks/group/${workids}/edit/${this.props.match.params.type}`,
id:workids,
is_public:response && response.data && response.data.is_public,
+ type:this.props.match.params.type,
}
this.setState({
banksMenu:menuData
diff --git a/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js b/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js
index e8fe85077..85222c5e7 100644
--- a/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js
+++ b/public/react/src/modules/courses/questionbank/Generaljobbankdetails.js
@@ -86,6 +86,7 @@ class Generaljobbankdetails extends Component {
tos:`/banks/normal/${workids}/edit/${this.props.match.params.type}`,
id:workids,
is_public:response && response.data && response.data.is_public,
+ type:this.props.match.params.type,
}
this.setState({
banksMenu:menuData
diff --git a/public/react/src/modules/user/usersInfo/banks/ExerciseBanksDetail.js b/public/react/src/modules/user/usersInfo/banks/ExerciseBanksDetail.js
index 6bce6afa3..08988d824 100644
--- a/public/react/src/modules/user/usersInfo/banks/ExerciseBanksDetail.js
+++ b/public/react/src/modules/user/usersInfo/banks/ExerciseBanksDetail.js
@@ -33,7 +33,7 @@ class ExerciseBanksDetail extends Component{
tos: `/banks/exercise/${Id}/edit/${this.props.match.params.type}`,
id: Id,
is_public: result.data.exercise && result.data.exercise.is_public,
-
+ type:this.props.match.params.type,
}
this.props.initPublic(crumbData,menuData);
}
diff --git a/public/react/src/modules/user/usersInfo/banks/PollBanksContent.js b/public/react/src/modules/user/usersInfo/banks/PollBanksContent.js
index 211cbf492..0fa27c4d7 100644
--- a/public/react/src/modules/user/usersInfo/banks/PollBanksContent.js
+++ b/public/react/src/modules/user/usersInfo/banks/PollBanksContent.js
@@ -42,7 +42,7 @@ class PollBanksContent extends Component{
tos:`/banks/poll/${bankId}/edit/${this.props.match.params.type}`,
id:bankId,
is_public:result.data.poll && result.data.poll.is_public,
-
+ type:this.props.match.params.type,
}
this.props.initPublic(crumbData,menuData);
this.setState({
diff --git a/public/react/src/modules/user/usersInfo/banks/banksMenu.js b/public/react/src/modules/user/usersInfo/banks/banksMenu.js
index 4bec758eb..8f59f07de 100644
--- a/public/react/src/modules/user/usersInfo/banks/banksMenu.js
+++ b/public/react/src/modules/user/usersInfo/banks/banksMenu.js
@@ -151,11 +151,31 @@ class BanksMenu extends Component{
this.sendTopics()} style="blue" className="ml20 font-16">发送
:
-
- this.deletecheckBoxValues(banksMenu&&banksMenu.id,banksMenu&&banksMenu.category)}style="blue" className="ml20 font-16">删除
- 编辑
- this.sendTopics()} style="blue" className="ml20 font-16">发送
-
+ (banksMenu&&banksMenu.type==="publicly"?
+ (
+ banksMenu===undefined?
+
+ this.deletecheckBoxValues(banksMenu&&banksMenu.id,banksMenu&&banksMenu.category)}style="blue" className="ml20 font-16">删除
+ 编辑
+ this.sendTopics()} style="blue" className="ml20 font-16">发送
+
+ :banksMenu.is_public===true?
+
+ this.sendTopics()} style="blue" className="ml20 font-16">发送
+
+ :
+
+ this.deletecheckBoxValues(banksMenu&&banksMenu.id,banksMenu&&banksMenu.category)}style="blue" className="ml20 font-16">删除
+ 编辑
+
+ )
+ :
+
+ this.deletecheckBoxValues(banksMenu&&banksMenu.id,banksMenu&&banksMenu.category)}style="blue" className="ml20 font-16">删除
+ 编辑
+ this.sendTopics()} style="blue" className="ml20 font-16">发送
+
+ )
}