diff --git a/public/react/src/modules/courses/groupjobbank/Groupjobbandetails.js b/public/react/src/modules/courses/groupjobbank/Groupjobbandetails.js
index 7e73d6546..a1d877a13 100644
--- a/public/react/src/modules/courses/groupjobbank/Groupjobbandetails.js
+++ b/public/react/src/modules/courses/groupjobbank/Groupjobbandetails.js
@@ -88,9 +88,13 @@ class Groupjobbandetails extends Component {
{/* */}
{/* )*/}
{/*})}*/}
+
{datas.attachments === undefined ? "" :
}
+
+
+
diff --git a/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js b/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js
index 14512f44f..3e8ec9c02 100644
--- a/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js
+++ b/public/react/src/modules/courses/groupjobbank/GroupjobbankPage.js
@@ -9,6 +9,9 @@ import {
import CoursesListType from '../coursesPublic/CoursesListType';
import Groupjobbandetails from './Groupjobbandetails';
import Groupjobquesanswer from './Groupjobquesanswer';
+import SendTopics from '../../modals/SendTopics';
+import Modals from '../../modals/Modals';
+
import '../css/members.css';
import "../common/formCommon.css";
import '../css/Courses.css';
@@ -26,6 +29,7 @@ class GroupjobbankPage extends Component {
workid:1,
isSpin:false,
datas:[],
+ visible:false
}
}
@@ -132,18 +136,91 @@ class GroupjobbankPage extends Component {
}
- bindRef = ref => { this.child = ref }
-///////////////教师截止
+//发送至相关
+ sendTopics=()=>{
+ this.setState({
+ visible:true
+ })
+ }
+
+ topicscancelmodel=()=>{
+ this.setState({
+ Modalstype:false,
+ Loadtype:false,
+ visible:false,
+ Modalstopval:"",
+ ModalCancel:"",
+ ModalSave:"",
+ checkBoxValues:[],
+ checkedtype:false
+ })
+ }
+
+ //删除相关
+
+ deletecheckBoxValues=()=>{
+
+ this.setState({
+ Modalstype:true,
+ Modalstopval:"是否确认删除?",
+ ModalCancel:this.topicscancelmodel,
+ ModalSave:this.topicssavedelete,
+ })
+
+ }
+
+ topicssavedelete=()=>{
+
+ const url = `/question_banks/multi_delete.json`;
+ axios.delete(url, { data: {
+ object_id: [this.props.match.params.workid],
+ object_type:"group"
+ }})
+ .then((response) => {
+ if(response.data.status===0){
+ this.props.showNotification(response.data.message)
+ window.location.href=`/users/${this.props.current_user.login}/topics/personal`;
+ }else{
+ this.props.showNotification(response.data.message)
+ }
+ })
+ .catch(function (error) {
+ console.log(error);
+ });
+ this.topicscancelmodel()
+ }
+
render() {
- let {tab,datas} = this.state;
+ let {tab,datas,visible} = this.state;
- // console.log(119)
+ let user_id=this.props.current_user&&this.props.current_user.user_id;
+ let user_type=this.props.current_user&&this.props.current_user.user_identity;
+ let targetuserid=this.props.data&&this.props.data.id;
return (
-
+ {this.state.Modalstype&&this.state.Modalstype===true?
:""}
+ {/*发送至弹窗*/}
+ {
+ visible&&visible===true?
+
this.topicscancelmodel()}
+ />:""
+ }
@@ -170,9 +247,9 @@ class GroupjobbankPage extends Component {
diff --git a/public/react/src/modules/courses/groupjobbank/questionbanks.css b/public/react/src/modules/courses/groupjobbank/questionbanks.css
index 13426cbc3..8fdca01ce 100644
--- a/public/react/src/modules/courses/groupjobbank/questionbanks.css
+++ b/public/react/src/modules/courses/groupjobbank/questionbanks.css
@@ -30,7 +30,7 @@
}
.ml47text{
margin-left: 17px;
- margin-top: 28px;
+ margin-top: 33px;
padding-bottom: 37px;
}
.ysltextcolor99999{
@@ -39,4 +39,7 @@
}
.yslahover {
color: #999999 ;
+}
+.mt24{
+ margin-top: 24px !important ;
}
\ No newline at end of file