|
|
@ -120,7 +120,7 @@ class GraduationTaskssettingapp extends Component{
|
|
|
|
maxnum: result.data.max_num,
|
|
|
|
maxnum: result.data.max_num,
|
|
|
|
max_nums: result.data.max_num,
|
|
|
|
max_nums: result.data.max_num,
|
|
|
|
task_type: result.data.task_type,
|
|
|
|
task_type: result.data.task_type,
|
|
|
|
baseonproject: result.data.base_on_project,
|
|
|
|
baseonproject: false,
|
|
|
|
firstTimes:!result.data.publish_time && !result.data.end_time,
|
|
|
|
firstTimes:!result.data.publish_time && !result.data.end_time,
|
|
|
|
publish_time:result.data.publish_time===null||result.data.publish_time=== ""?"":moment(moment(handleDateString(result.data.publish_time))).format("YYYY-MM-DD HH:mm"),
|
|
|
|
publish_time:result.data.publish_time===null||result.data.publish_time=== ""?"":moment(moment(handleDateString(result.data.publish_time))).format("YYYY-MM-DD HH:mm"),
|
|
|
|
end_time:result.data.end_time===null||result.data.end_time=== ""?"":moment(moment(handleDateString(result.data.end_time))).format("YYYY-MM-DD HH:mm"),
|
|
|
|
end_time:result.data.end_time===null||result.data.end_time=== ""?"":moment(moment(handleDateString(result.data.end_time))).format("YYYY-MM-DD HH:mm"),
|
|
|
@ -172,7 +172,7 @@ class GraduationTaskssettingapp extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
baseprojectfun=(e)=>{
|
|
|
|
baseprojectfun=(e)=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
baseonproject:e.target.checked
|
|
|
|
baseonproject:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1023,7 +1023,7 @@ debugger
|
|
|
|
{numtype===true?<div className={"color-red ml40"}>不能为空</div>:""}
|
|
|
|
{numtype===true?<div className={"color-red ml40"}>不能为空</div>:""}
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<Tooltip placement="bottom" title={hascommit===true?"已有关联项目或作品,不能修改":""}>
|
|
|
|
<Tooltip placement="bottom" title={hascommit===true?"已有关联项目或作品,不能修改":""}>
|
|
|
|
<Checkbox className="ml40 " checked={baseonproject} disabled={this.props.isAdmin()===true?hascommit===true||hasproject===true?true:flagPageEdit===true?false:true:true} onChange={this.baseprojectfun}>基于项目实施</Checkbox>
|
|
|
|
{/*<Checkbox className="ml40 " checked={baseonproject} disabled={this.props.isAdmin()===true?hascommit===true||hasproject===true?true:flagPageEdit===true?false:true:true} onChange={this.baseprojectfun}>基于项目实施</Checkbox>*/}
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
<span className={"font-14 color-grey-c"}>(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)</span>
|
|
|
|
<span className={"font-14 color-grey-c"}>(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|