dev_aliyun_beta
杨树林 6 years ago
parent 9d6060c7ff
commit dcb0f0aae7

@ -1566,7 +1566,7 @@ samp {
padding-left: 5px; padding-left: 5px;
} }
.padding10200{ .padding10200{
padding: 10px 20px 0px; padding: 10px 20px;
} }
.padding1020{ .padding1020{
padding: 10px 20px 10px; padding: 10px 20px 10px;

@ -125,6 +125,7 @@ class studentsList extends Component{
isSpin:false, isSpin:false,
DownloadType:false, DownloadType:false,
DownloadMessageval:undefined, DownloadMessageval:undefined,
donwloading:false,
} }
} }
/// 确认是否下载 /// 确认是否下载
@ -153,13 +154,18 @@ class studentsList extends Component{
}else { }else {
this.props.showNotification(`正在下载中`); this.props.showNotification(`正在下载中`);
// window.open("/api"+url, '_blank'); // window.open("/api"+url, '_blank');
this.setState({ donwloading: true })
downloadFile({ downloadFile({
url: url, url: url,
successCallback: (url) => { successCallback: (url) => {
console.log('successCallback') console.log('successCallback')
this.setState({ donwloading: false })
}, },
failCallback: (responseHtml, url) => { failCallback: (responseHtml, url) => {
console.log('failCallback') console.log('failCallback')
this.setState({ donwloading: false })
} }
}) })
} }
@ -603,6 +609,7 @@ class studentsList extends Component{
`}</style> `}</style>
{ isAdmin && { isAdmin &&
<Spin spinning={this.state.donwloading} style={{ }}>
<li className="li_line drop_down fr color-blue font-16"> <li className="li_line drop_down fr color-blue font-16">
导出<i className="iconfont icon-xiajiantou font-12 ml2"></i> 导出<i className="iconfont icon-xiajiantou font-12 ml2"></i>
<ul className="drop_down_menu" style={{"right": "-20px", "left": "unset", "height": "auto"}}> <ul className="drop_down_menu" style={{"right": "-20px", "left": "unset", "height": "auto"}}>
@ -617,6 +624,7 @@ class studentsList extends Component{
</li> </li>
</ul> </ul>
</li> </li>
</Spin>
} }
{/*<WordsBtn style="blue" className="" onClick={(url)=>this.confirmysl(exportUrl)} >导出成绩</WordsBtn>*/} {/*<WordsBtn style="blue" className="" onClick={(url)=>this.confirmysl(exportUrl)} >导出成绩</WordsBtn>*/}
{/* */} {/* */}

@ -606,7 +606,7 @@ class CoursesNew extends Component {
`} `}
</style> </style>
<div className="stud-class-set bor-bottom-greyE padding10200 "> <div className="stud-class-set bor-bottom-greyE padding1020 ">
<div className={"TabsWarpcourse"}> <div className={"TabsWarpcourse"}>
<style>{ <style>{
` `
@ -624,21 +624,7 @@ class CoursesNew extends Component {
background-color: #fafafa!important; background-color: #fafafa!important;
} }
.yslzxueshis .ant-select-dropdown{
width: 655px !important;
height:160px !important;
}
.yslzxueshisy .ant-select-dropdown{
width: 655px !important;
height:160px !important;
}
.yslzxueshis .ant-select-dropdown-menu{
width: 655px !important;
}
.ant-select-dropdown{
width: 655px !important;
height:160px !important;
}
` `
}</style> }</style>
<Form.Item label="课程名称"> <Form.Item label="课程名称">
@ -647,7 +633,7 @@ class CoursesNew extends Component {
})( })(
<AutoComplete <AutoComplete
style={{ width: 720}} style={{ width: 704}}
onSearch={this.handleSearch} onSearch={this.handleSearch}
onSelect={this.handleSearchsysl} onSelect={this.handleSearchsysl}
className="fl construction yslzxueshis " className="fl construction yslzxueshis "
@ -884,7 +870,7 @@ class CoursesNew extends Component {
<AutoComplete style={{ width: 280 }} <AutoComplete style={{ width: 280 }}
onSearch={this.handleSearchschool} onSearch={this.handleSearchschool}
// onChange={this.handleChangeschools} // onChange={this.handleChangeschools}
className={"fl construction mr10 "} className={"fl construction mr10 yslzxueshis2"}
placeholder="请输入并选择课本堂的所属单位" placeholder="请输入并选择课本堂的所属单位"
> >
{optionschool} {optionschool}

@ -794,18 +794,7 @@ class Goldsubject extends Component {
width: 65px !important; width: 65px !important;
background-color: #fafafa!important; background-color: #fafafa!important;
} }
.yslzxueshis .ant-select-dropdown{
width: 655px !important;
height:160px !important;
}
.yslzxueshis .ant-select-dropdown-menu{
width: 655px !important;
}
.ant-select-dropdown{
width: 655px !important;
height:160px !important;
}
` `
}</style> }</style>
<style> <style>
@ -828,7 +817,7 @@ class Goldsubject extends Component {
})( })(
<AutoComplete <AutoComplete
style={{width: 720}} style={{width: 704}}
onSearch={this.handleSearch} onSearch={this.handleSearch}
className={"fl construction yslzxueshis "} className={"fl construction yslzxueshis "}
dataSource={options} dataSource={options}
@ -1029,6 +1018,7 @@ class Goldsubject extends Component {
{/*</div>*/} {/*</div>*/}
<div className="stud-class-set padding10200 mb20"> <div className="stud-class-set padding10200 mb20">
<Form.Item label="课堂所属单位"> <Form.Item label="课堂所属单位">
{getFieldDecorator('school', { {getFieldDecorator('school', {
rules: [{required: true, message: "不能为空"}], rules: [{required: true, message: "不能为空"}],
@ -1036,7 +1026,7 @@ class Goldsubject extends Component {
<AutoComplete style={{ width: 280 }} <AutoComplete style={{ width: 280 }}
onSearch={this.handleSearchschool} onSearch={this.handleSearchschool}
// onChange={this.handleChangeschools} // onChange={this.handleChangeschools}
className={"fl construction mr10 "} className={"fl construction mr10 yslzxueshis2 "}
placeholder="请输入并选择课本堂的所属单位" placeholder="请输入并选择课本堂的所属单位"
> >
{optionschool} {optionschool}

Loading…
Cancel
Save