dev_static
杨树明 5 years ago
parent 85b73a5313
commit 54474ccbb5

@ -403,7 +403,8 @@ class CommonWorkList extends Component{
left_time: {}, left_time: {},
category: {}, category: {},
b_order: 'desc', b_order: 'desc',
searchtypes:false searchtypes:false,
loadingstate:false
} }
} }
onTablePagination = (page) => { onTablePagination = (page) => {
@ -420,9 +421,11 @@ class CommonWorkList extends Component{
}) })
}else{ }else{
this.setState({ this.setState({
searchtypes:true searchtypes:true,
loadingstate:true
}) })
} }
this.fetchList() this.fetchList()
} }
onSearchValueInput = (e) => { onSearchValueInput = (e) => {
@ -482,7 +485,8 @@ class CommonWorkList extends Component{
if (response.data) { if (response.data) {
this.setState({ this.setState({
...response.data, ...response.data,
isSpin:false isSpin:false,
loadingstate:false
}) })
this.props.initWorkDetailCommonState && this.props.initWorkDetailCommonState( Object.assign({...response.data}, { this.props.initWorkDetailCommonState && this.props.initWorkDetailCommonState( Object.assign({...response.data}, {
@ -492,7 +496,8 @@ class CommonWorkList extends Component{
}).catch((error)=>{ }).catch((error)=>{
console.log(error) console.log(error)
this.setState({ this.setState({
isSpin:false isSpin:false,
loadingstate:false
}) })
}) })
@ -850,9 +855,9 @@ class CommonWorkList extends Component{
<div className={"justify break_full_word new_li edu-back-white course_table_wrap"} style={{minHeight:"480px", marginBottom: '30px'}}> <div className={"justify break_full_word new_li edu-back-white course_table_wrap"} style={{minHeight:"480px", marginBottom: '30px'}}>
<style>{` <style>{`
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot { // .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
top: 72%;} // top: 72%;}
} // }
.singleLine tr.ant-table-row { .singleLine tr.ant-table-row {
background: #f1f9ff; background: #f1f9ff;
} }
@ -875,16 +880,17 @@ class CommonWorkList extends Component{
</Spin> </Spin>
: :
<React.Fragment> <React.Fragment>
<Spin tip="正在加载..." spinning={loadingstate}>
<Table <Table
className="stageTable" className="stageTable"
dataSource={student_works} dataSource={student_works}
columns={columns} columns={columns}
showQuickJumper showQuickJumper
pagination={false} pagination={false}
onChange={this.table1handleChange} onChange={this.table1handleChange}
loading={loadingstate} // loading={loadingstate}
/> />
</Spin>
</React.Fragment> </React.Fragment>
} }

Loading…
Cancel
Save