Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

sso^2
cxt 5 years ago
commit 19b4d3fa26

@ -44,7 +44,7 @@ class LiveItem extends Component{
<p><span className="task-hide-2 break_word">{item.description}</span></p> <p><span className="task-hide-2 break_word">{item.description}</span></p>
</div> </div>
{ {
item.on_status? (item.on_status && item.url)?
<a className="btns going" target="_blank" href={`${item.url}`}>进入</a> <a className="btns going" target="_blank" href={`${item.url}`}>进入</a>
: :
<span className="btns ect">进入</span> <span className="btns ect">进入</span>

@ -77,12 +77,11 @@ class LiveNew extends Component{
} }
handleSubmit=()=>{ handleSubmit=()=>{
this.setState({
isSpining:true
})
this.props.form.validateFields((err, values) => { this.props.form.validateFields((err, values) => {
if(!err){ if(!err){
console.log(values); this.setState({
isSpining:true
})
const { liveId } = this.props; const { liveId } = this.props;
if(liveId){ if(liveId){
// 修改 // 修改
@ -102,14 +101,17 @@ class LiveNew extends Component{
live_time:beginTime live_time:beginTime
}).then(result=>{ }).then(result=>{
if(result){ if(result){
this.setState({
isSpining:false
})
this.props.showNotification("修改成功!"); this.props.showNotification("修改成功!");
const { setliveVisibel } = this.props; const { setliveVisibel } = this.props;
setliveVisibel && setliveVisibel(false,true); setliveVisibel && setliveVisibel(false,true);
} }
this.setState({
isSpining:false
})
}).catch(error=>{ }).catch(error=>{
this.setState({
isSpining:false
})
console.log(error); console.log(error);
}) })
} }
@ -124,14 +126,17 @@ class LiveNew extends Component{
live_time:beginTime live_time:beginTime
}).then(result=>{ }).then(result=>{
if(result){ if(result){
this.setState({
isSpining:false
})
this.props.showNotification("添加成功!"); this.props.showNotification("添加成功!");
const { setliveVisibel } = this.props; const { setliveVisibel } = this.props;
setliveVisibel && setliveVisibel(false,true); setliveVisibel && setliveVisibel(false,true);
} }
this.setState({
isSpining:false
})
}).catch(error=>{ }).catch(error=>{
this.setState({
isSpining:false
})
console.log(error); console.log(error);
}) })
} }
@ -186,7 +191,7 @@ class LiveNew extends Component{
<Modal <Modal
visible={visible} visible={visible}
width="560px" width="560px"
title={'直播设置'} title={'添加直播'}
footer={null} footer={null}
closable={false} closable={false}
className="liveModal" className="liveModal"
@ -196,9 +201,9 @@ class LiveNew extends Component{
<Form onSubmit={this.handleSubmit}> <Form onSubmit={this.handleSubmit}>
<Form.Item label={`直播课程`}> <Form.Item label={`直播课程`}>
{getFieldDecorator('course_name', { {getFieldDecorator('course_name', {
rules: [{required: true, message: "请输入课程名"}], rules: [{required: true, message: "请输入课程名"}],
})( })(
<Input placeholder="请输入课程名" /> <Input placeholder="请输入课程名" />
)} )}
</Form.Item> </Form.Item>
<Form.Item label={`直播平台`}> <Form.Item label={`直播平台`}>
@ -225,7 +230,7 @@ class LiveNew extends Component{
<DatePicker <DatePicker
dropdownClassName="hideDisable" dropdownClassName="hideDisable"
className="timeStyle mb20" className="timeStyle mb20"
placeholder="年/月/日" placeholder="2020/02/02 12:00"
style={{width:"220px"}} style={{width:"220px"}}
showTime={{ format: 'HH:mm' }} showTime={{ format: 'HH:mm' }}
locale={locale} locale={locale}

@ -196,10 +196,22 @@ class VideoIndex extends Component{
<style>{ <style>{
` `
body{ body{
width: 100%!important; width: calc(100% - 7px)!important;
overflow: hidden!important; overflow: hidden!important;
} }
`}</style>:"" .-task-sidebar{
right:44px!important
}
`}</style>:
<style>{
`
.-task-sidebar{
right:35px
}
body{
width: 100%!important;
}
`}</style>
} }
<div className="edu-back-white" style={{marginBottom:"1px"}}> <div className="edu-back-white" style={{marginBottom:"1px"}}>

Loading…
Cancel
Save