From eae00a74e6b2956c29870c830064da23a45b09c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Wed, 25 Sep 2019 16:06:40 +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
---
.../tasks/GraduationTaskssetting.js | 2 +-
.../Collaborators/Collaborators.js | 154 +++++++++---------
2 files changed, 82 insertions(+), 74 deletions(-)
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
index 830525af2..5ca6ee537 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
@@ -1169,7 +1169,7 @@ class GraduationTaskssettingapp extends Component{
评分设置
最终成绩组成 (取各教师最终评分的平均分)
-
+
启用交叉评阅 (给老师分配其他指导老师的学生作品)
diff --git a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
index 7921941df..d67599bf1 100644
--- a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
+++ b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js
@@ -16,8 +16,10 @@ import { getImageUrl, toPath } from 'educoder'
import axios from 'axios';
+import NoneData from "../../../courses/coursesPublic/NoneData";
+
import './Collaborators.css';
-import SchoolSelect from "../../../courses/members/modal/AddStudentModal";
+
const $ = window.$;
@@ -88,6 +90,7 @@ class Collaborators extends Component {
});
}
CollaboratorsshowModal = (type) => {
+
if (type === "cooperation") {
this.setState({
Collaboratorsvisibleadmin: false,
@@ -108,9 +111,10 @@ class Collaborators extends Component {
}
showCollaboratorsvisible = (type) => {
+
this.setState({
Collaboratorslist: [],
- Searchadmin:[],
+ Searchadmin:undefined,
onSearchcalue:""
})
let admintype = this.props.identity;
@@ -160,7 +164,7 @@ class Collaborators extends Component {
let {collaboratorList,user_name,school_name} = this.state;
this.setState({
- Searchadmin: [],
+ // Searchadmin: undefined,
spinnings:true,
})
// if (value === "") {
@@ -199,6 +203,7 @@ class Collaborators extends Component {
}
selectChangenickname = (e, key) => {
+
let {Searchadmin} = this.state;
let newlist = Searchadmin;
for (var i = 0; i < newlist.length; i++) {
@@ -235,6 +240,7 @@ class Collaborators extends Component {
}
allChange = (e) => {
+
let {Searchadmin} = this.state;
let newlist = Searchadmin;
for (var i = 0; i < newlist.length; i++) {
@@ -246,6 +252,7 @@ class Collaborators extends Component {
})
}
submit_add_collaborators_form = () => {
+
let id = this.props.match.params.shixunId;
let {Searchadmin,collaboratorList} = this.state;
let newlist = Searchadmin;
@@ -300,6 +307,7 @@ class Collaborators extends Component {
}
submit_addadminredio = () => {
+
let {addadminrediovalue} = this.state;
let id = this.props.match.params.shixunId;
@@ -371,6 +379,7 @@ class Collaborators extends Component {
contentViewScrolledit=(e)=>{
+
//滑动到底判断
let newscrollTop=parseInt(e.currentTarget.scrollTop);
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
@@ -395,7 +404,6 @@ class Collaborators extends Component {
newSearchadmin.push(newlist[i])
}
- console.log(newSearchadmin)
this.setState({
Searchadmin: newSearchadmin,
collaboratorList: collaboratorList,
@@ -495,68 +503,68 @@ class Collaborators extends Component {
-
- {/* this.onSearchadmin(value)}*/}
- {/*onInput={this.onSearchadmins}*/}
- {/*style={{width: '100%'}}*/}
- {/*/>*/}
- 姓名或手机号:
-
- {this.setState({user_name: e.target.value})}}
- style={{ width: '215px'}}
- >
- 单位:
- {this.setState({school_name: e.target.value})}}
- style={{ width: '215px'}}
- >
+ {Collaboratorsvisibleadmin===true?
+ {/* this.onSearchadmin(value)}*/}
+ {/*onInput={this.onSearchadmins}*/}
+ {/*style={{width: '100%'}}*/}
+ {/*/>*/}
+ 姓名或手机号:
+
+ {this.setState({user_name: e.target.value})}}
+ style={{ width: '215px'}}
+ >
+ 单位:
+ {this.setState({school_name: e.target.value})}}
+ style={{ width: '215px'}}
+ >
- this.onSearchadmin()}
- style={{ height: '30px', lineHeight: '30px', width: '70px'}}
- >搜索
-
- 姓名
- 职业
- 单位
-
-
-
-
-
- {Searchadmin === undefined ? -
- 请试试搜索一下
-
:Searchadmin.length === 0 ? "": Searchadmin.map((item, key) => {
- return (
- -
- this.selectChangenickname(e, key)}
- id={item.user_id}>
- {item.nickname}
- {item.identify}
- {item.school_name}
-
- )
- })
-
- }
-
-
-
-
-
+ {useristrue===true?请先选择用户:""}
+
+ :""}
{