|
|
|
@ -632,89 +632,89 @@ class Selectsetting extends Component{
|
|
|
|
|
|
|
|
|
|
{this.state.newfileListtypes===true?<p className={"color-red"}>请先上传资源</p>:""}
|
|
|
|
|
|
|
|
|
|
<p className={"winth540"}>
|
|
|
|
|
<style>{`
|
|
|
|
|
.ant-checkbox-wrapper{
|
|
|
|
|
margin-left:0px !important;
|
|
|
|
|
margin-top:10px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
<div className={this.state.fileListtype===true?"mt30":""}>
|
|
|
|
|
<Checkbox
|
|
|
|
|
checked={is_public}
|
|
|
|
|
onChange={this.onChangepublics}>
|
|
|
|
|
<span className={"font-14"}>勾选后所有用户可见,否则仅课堂成员可见</span>
|
|
|
|
|
</Checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
{/*{this.props.has_course_groups&&this.props.has_course_groups===true?:""}*/}
|
|
|
|
|
{/*{this.state.course_groupss&&this.state.course_groupss.length>0?<Checkbox*/}
|
|
|
|
|
{/*checked={unified_setting}*/}
|
|
|
|
|
{/*onChange={this.onChangesettings}>*/}
|
|
|
|
|
{/*<span>统一设置</span><span className={"font-14 color-grey-9"}>(选中则所有分班使用相同的发布设置,否则各个单独设置)</span>*/}
|
|
|
|
|
{/*</Checkbox>:""}*/}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
.Selectleft20{
|
|
|
|
|
margin-left: 20px !important;
|
|
|
|
|
width: 176px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
}
|
|
|
|
|
.resourcebox{
|
|
|
|
|
max-height:150px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
{/*<p className={"winth540"}>*/}
|
|
|
|
|
{/*<style>{`*/}
|
|
|
|
|
{/*.ant-checkbox-wrapper{*/}
|
|
|
|
|
{/*margin-left:0px !important;*/}
|
|
|
|
|
{/*margin-top:10px;*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*`}</style>*/}
|
|
|
|
|
|
|
|
|
|
{/*<div className={this.state.fileListtype===true?"mt30":""}>*/}
|
|
|
|
|
{/*<Checkbox*/}
|
|
|
|
|
{/*checked={is_public}*/}
|
|
|
|
|
{/*onChange={this.onChangepublics}>*/}
|
|
|
|
|
{/*<span className={"font-14"}>勾选后所有用户可见,否则仅课堂成员可见</span>*/}
|
|
|
|
|
{/*</Checkbox>*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
{/*/!*{this.props.has_course_groups&&this.props.has_course_groups===true?:""}*!/*/}
|
|
|
|
|
{/*/!*{this.state.course_groupss&&this.state.course_groupss.length>0?<Checkbox*!/*/}
|
|
|
|
|
{/*/!*checked={unified_setting}*!/*/}
|
|
|
|
|
{/*/!*onChange={this.onChangesettings}>*!/*/}
|
|
|
|
|
{/*/!*<span>统一设置</span><span className={"font-14 color-grey-9"}>(选中则所有分班使用相同的发布设置,否则各个单独设置)</span>*!/*/}
|
|
|
|
|
{/*/!*</Checkbox>:""}*!/*/}
|
|
|
|
|
|
|
|
|
|
{/*this.props.has_course_groups&&this.props.has_course_groups===true?:""*/}
|
|
|
|
|
<div className={"resourcebox"}>
|
|
|
|
|
{unified_setting===false?
|
|
|
|
|
this.state.course_groups&&this.state.course_groups.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className={"mt10 "} key={key}>
|
|
|
|
|
{/*<style>*/}
|
|
|
|
|
{/*{`*/}
|
|
|
|
|
{/*.Selectleft20{*/}
|
|
|
|
|
{/*margin-left: 20px !important;*/}
|
|
|
|
|
{/*width: 176px;*/}
|
|
|
|
|
{/*height: 40px; */}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*.resourcebox{*/}
|
|
|
|
|
{/*max-height:150px;*/}
|
|
|
|
|
{/*overflow: auto;*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*`}*/}
|
|
|
|
|
{/*</style>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Select placeholder="请选择分班名称"
|
|
|
|
|
value={item.course_group_id}
|
|
|
|
|
style={{ width: 200 }}
|
|
|
|
|
onChange={(e,index)=>this.selectassigngroups(e,index,key)}
|
|
|
|
|
>
|
|
|
|
|
{ this.state.course_groupss&&this.state.course_groupss.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<Option value={item.id} key={key}>{item.name}</Option>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
</Select>
|
|
|
|
|
|
|
|
|
|
{/*/!*this.props.has_course_groups&&this.props.has_course_groups===true?:""*!/*/}
|
|
|
|
|
{/*<div className={"resourcebox"}>*/}
|
|
|
|
|
{/*{unified_setting===false?*/}
|
|
|
|
|
{/*this.state.course_groups&&this.state.course_groups.map((item,key)=>{*/}
|
|
|
|
|
{/*return(*/}
|
|
|
|
|
{/*<div className={"mt10 "} key={key}>*/}
|
|
|
|
|
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
id={"startimes"}
|
|
|
|
|
className={"Selectleft20"}
|
|
|
|
|
width={"200px"}
|
|
|
|
|
value={item.publish_time===undefined||item.publish_time===""?"":item.publish_time===null?"":moment(item.publish_time, dateFormat)}
|
|
|
|
|
onChange={(e,index)=>this.onChangeTimepublishs(e,index,key)}
|
|
|
|
|
// onChange={ this.onChangeTimepublish }
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{key!=0?<i className="iconfont icon-shanchu color-grey-c font-14 font-n ml20" onClick={()=>this.deletegrouppublish(key)}></i>:""}
|
|
|
|
|
{key===course_groups.length-1?<i className="iconfont icon-tianjiafangda color-green ml15" onClick={this.addgrouppublish}></i>:""}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}):""}
|
|
|
|
|
</div>
|
|
|
|
|
{/*<Select placeholder="请选择分班名称"*/}
|
|
|
|
|
{/*value={item.course_group_id}*/}
|
|
|
|
|
{/*style={{ width: 200 }}*/}
|
|
|
|
|
{/*onChange={(e,index)=>this.selectassigngroups(e,index,key)}*/}
|
|
|
|
|
{/*>*/}
|
|
|
|
|
{/*{ this.state.course_groupss&&this.state.course_groupss.map((item,key)=>{*/}
|
|
|
|
|
{/*return(*/}
|
|
|
|
|
{/*<Option value={item.id} key={key}>{item.name}</Option>*/}
|
|
|
|
|
{/*)*/}
|
|
|
|
|
{/*})}*/}
|
|
|
|
|
{/*</Select>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*<DatePicker*/}
|
|
|
|
|
{/*showToday={false}*/}
|
|
|
|
|
{/*dropdownClassName="hideDisable"*/}
|
|
|
|
|
{/*showTime={{ format: 'HH:mm' }}*/}
|
|
|
|
|
{/*format="YYYY-MM-DD HH:mm"*/}
|
|
|
|
|
{/*locale={locale}*/}
|
|
|
|
|
{/*placeholder="请选择发布时间"*/}
|
|
|
|
|
{/*id={"startimes"}*/}
|
|
|
|
|
{/*className={"Selectleft20"}*/}
|
|
|
|
|
{/*width={"200px"}*/}
|
|
|
|
|
{/*value={item.publish_time===undefined||item.publish_time===""?"":item.publish_time===null?"":moment(item.publish_time, dateFormat)}*/}
|
|
|
|
|
{/*onChange={(e,index)=>this.onChangeTimepublishs(e,index,key)}*/}
|
|
|
|
|
{/*// onChange={ this.onChangeTimepublish }*/}
|
|
|
|
|
{/*disabledTime={disabledDateTime}*/}
|
|
|
|
|
{/*disabledDate={disabledDate}*/}
|
|
|
|
|
{/*/>*/}
|
|
|
|
|
|
|
|
|
|
{/*{key!=0?<i className="iconfont icon-shanchu color-grey-c font-14 font-n ml20" onClick={()=>this.deletegrouppublish(key)}></i>:""}*/}
|
|
|
|
|
{/*{key===course_groups.length-1?<i className="iconfont icon-tianjiafangda color-green ml15" onClick={this.addgrouppublish}></i>:""}*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
{/*)*/}
|
|
|
|
|
{/*}):""}*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
{/*</p>*/}
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
#startime .ant-calendar-picker-icon{
|
|
|
|
@ -723,7 +723,7 @@ class Selectsetting extends Component{
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
{unified_setting===true?
|
|
|
|
|
<p className={"mt10"}>
|
|
|
|
|
<p className={this.state.fileListtype===true?"mt30":""}>
|
|
|
|
|
<span>
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|