dev_local_scyd
杨树林 5 years ago
parent 832d039e59
commit 7bdc5706f1

@ -303,7 +303,9 @@ class NewWorkForm extends Component{
this.setState({ min_num: val }) this.setState({ min_num: val })
} }
base_on_project_change = () => { base_on_project_change = () => {
this.setState({ base_on_project: !this.state.base_on_project }) // this.setState({ base_on_project: !this.state.base_on_project })
this.setState({ base_on_project: false })
} }
componentDidMount() { componentDidMount() {
window.$('.groupSetting .ant-form-item-label > label').addClass('ant-form-item-required') window.$('.groupSetting .ant-form-item-label > label').addClass('ant-form-item-required')

@ -695,7 +695,8 @@ debugger
axios.post(url,{ axios.post(url,{
min_num: this.state.minnum, min_num: this.state.minnum,
max_num: this.state.maxnum, max_num: this.state.maxnum,
base_on_project:baseonproject===true?1:0, // base_on_project:baseonproject===true?1:0,
base_on_project:baseonproject===false,
publish_time:this.state.publish_time===null||this.state.publish_time=== ""?"":this.state.publish_time, publish_time:this.state.publish_time===null||this.state.publish_time=== ""?"":this.state.publish_time,
end_time: this.state.end_time===null||this.state.end_time=== ""?this.props.getNowFormatDates(2,1):this.state.end_time, end_time: this.state.end_time===null||this.state.end_time=== ""?this.props.getNowFormatDates(2,1):this.state.end_time,
allow_late:allowlate===true||allowlate===1?1:undefined, allow_late:allowlate===true||allowlate===1?1:undefined,
@ -1022,10 +1023,10 @@ debugger
{maxnumstype===true?<div className={"color-red ml40"}>已有提交作品最大人数不能变小</div>:""} {maxnumstype===true?<div className={"color-red ml40"}>已有提交作品最大人数不能变小</div>:""}
{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>
</div>:""} </div>:""}

@ -382,7 +382,7 @@ class GraduateTopicPostWorksNew extends Component{
)} )}
</Form.Item> </Form.Item>
<span className="tag color-grey9 ">(学生提交作品时需要关联同组成员组内成员作品共享)</span> {/*<span className="tag color-grey9 ">(学生提交作品时需要关联同组成员,组内成员作品共享)</span>*/}
{/*<Form.Item*/} {/*<Form.Item*/}
{/* label=""*/} {/* label=""*/}
{/* className=" "*/} {/* className=" "*/}

Loading…
Cancel
Save