diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 7f9ab561f..1823f43bb 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -2344,17 +2344,15 @@ class Listofworksstudentone extends Component {
-
计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}
-
- {teacherdata&&teacherdata.publish_immediately===false&&computeTimetype===true?
- (this.props.isNotMember()===false?
- 计算成绩
-
:""):
- teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
- (this.props.isNotMember()===false?
- 计算成绩
-
:"")
- }
-
+
+ {teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":
+ {teacherdata&&teacherdata.time_status!==undefined&&teacherdata.time_status=== 0? "":
+ computeTimetype===true&&this.props.isNotMember()===false?
+ 计算成绩
+
:
+ 计算成绩
+
}
+ }
计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}
{teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":
- {computeTimetype===true?
- (this.props.isNotMember()===false?
-
- 计算成绩
-
- :"")
- :
- (teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
- this.props.isNotMember()===false?
-
- 计算成绩
-
- :"")
- }
- }
+
+ {teacherdata&&teacherdata.time_status!==undefined&&teacherdata.time_status=== 0? "":
+ computeTimetype===true&&this.props.isNotMember()===false?
+ 计算成绩
+
:
+ 计算成绩
+
}
+ }
+
@@ -2800,17 +2792,16 @@ class Listofworksstudentone extends Component {
计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}
- {teacherdata&&teacherdata.task_operation&&teacherdata.task_operation[0]==="开启挑战"?"":
- {computeTimetype===true?
- (this.props.isNotMember()===false?
- 计算成绩
-
:""):
- teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "":
- (this.props.isNotMember()===false?
- 计算成绩
-
:"")
- }
- }
+ {teacherdata&&teacherdata.task_operation&&teacherdata.task_operation[0]==="开启挑战"?"":
+
+ {teacherdata&&teacherdata.time_status!==undefined&&teacherdata.time_status===0?"":
+ this.props.isNotMember()===false&&computeTimetype===true?
+ 计算成绩
+
:
+ 计算成绩
+
}
+
+ }
{/*因为计算按钮占了和这个位置,和设计沟通学生视角取消这个按钮*/}
diff --git a/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js b/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
index 4e9b22831..f0a7ff941 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
@@ -60,8 +60,9 @@ class OfficialAcademicTranscript extends Component {
className:"TaskForms",
render: (text, record) => (
- this.myjumptopic("id"+record.customs)} title={record.taskname.name} >{record.taskname.name}
- {record.taskname.complete_status===2?延时:record.taskname.complete_status===3?延时:""}
+ this.myjumptopic("id"+record.customs)} title={record.taskname.name} >
+ {record.taskname.name}{record.taskname.complete_status===2?延时:record.taskname.complete_status===3?延时:""}
+
),
}, {
@@ -145,8 +146,11 @@ class OfficialAcademicTranscript extends Component {
}
.tasknameboxs{
- color: #666666 !important;
- background:rgba(237,237,237,1) !important;
+ width: 50px;
+ height: 24px;
+ border: 1px solid rgba(221,23,23,1);
+ color: rgba(221,23,23,1);
+ border-radius: 12px;
}
.ant-table-tbody > tr > td{
@@ -167,7 +171,7 @@ class OfficialAcademicTranscript extends Component {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- width: 500px;
+ width: 450px;
text-align: left !important;
}
.TaskForms{
diff --git a/public/react/src/modules/tpm/newshixuns/Newshixuns.js b/public/react/src/modules/tpm/newshixuns/Newshixuns.js
index 39663e6be..184b6313a 100644
--- a/public/react/src/modules/tpm/newshixuns/Newshixuns.js
+++ b/public/react/src/modules/tpm/newshixuns/Newshixuns.js
@@ -200,7 +200,8 @@ class Newshixuns extends Component {
languagewritetype:false,
systemenvironmenttype:false,
testcoderunmodetype:false,
- attachmentidstype:false
+ attachmentidstype:false,
+ datalisttype:false
}
}
@@ -369,20 +370,32 @@ class Newshixuns extends Component {
}
shixunScopeInput = (e, id) => {
+ let types=false
let {scope_partment} = this.state;
let datalist = scope_partment;
if (datalist === undefined) {
datalist = []
}
- datalist.push(e)
- // else{
- // datalist[id]=e
- // }
- this.setState({
- scope_partment: datalist,
- onSearchvalue: ""
- });
+ datalist.map((item,key)=>{
+ if(e===item){
+ types=true
+ this.setState({
+ datalisttype:true
+ })
+ return
+ }
+ })
+
+ if(types===false){
+ datalist.push(e)
+ this.setState({
+ scope_partment: datalist,
+ onSearchvalue: ""
+ });
+ }
+
+
}
deleteScopeInput = (key) => {
@@ -495,7 +508,9 @@ class Newshixuns extends Component {
}
shixunHandleSearch = (value) => {
+
this.shixunsfetch(value, departmentslist => this.setState({departmentslist}));
+
this.setState({
onSearchvalue: ""
})
@@ -787,7 +802,7 @@ class Newshixuns extends Component {
render() {
const { getFieldDecorator } = this.props.form;
const thiss=this;
- let {testcoderunmode ,systemenvironment,languagewrite,deleteisnot, fileList,TimePickervalue, scope_partmenttype, opensmail, newshixunlist, name, scope_partment, departmentslist, postapplyvisible, sendsure_applyvalue, postapplytitle, shixun_nametype, main_types, trainee_types, SelectTheCommandtype, opers, operss, onSearchvalue} = this.state;
+ let {testcoderunmode ,systemenvironment,languagewrite,deleteisnot, fileList,TimePickervalue, scope_partmenttype, opensmail, newshixunlist, name, scope_partment, departmentslist, postapplyvisible, sendsure_applyvalue, postapplytitle, shixun_nametype, main_types, trainee_types, SelectTheCommandtype, opers, datalisttype, onSearchvalue} = this.state;
let options
if (departmentslist != undefined) {
options = this.state.departmentslist.map((d, k) => {
@@ -1142,6 +1157,7 @@ class Newshixuns extends Component {
(搜索选中添加单位名称)
+ {this.state.datalisttype===true?请勿选择重复单位:""}
{/*+ 添加*/}
@@ -1153,7 +1169,7 @@ class Newshixuns extends Component {
return (
- {item}
this.deleteScopeInput(key)}>×
+ onClick={() => this.deleteScopeInput(key)}>×
)
})