dev_oauth
杨树明 6 years ago
parent 890e434bb9
commit 8c05ef7f20

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

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

Loading…
Cancel
Save