提交 03e4a344 authored 作者: 钟是志's avatar 钟是志

18262 学生就业统计/学生就业管理,导入学生数据后,下面加一个滑动可以看到全部数据

上级 e41f16bf
...@@ -18,7 +18,7 @@ const exportExcel = CLIENT_TYPE == 'mobile' ? null : require('xlsx-oc').exportEx ...@@ -18,7 +18,7 @@ const exportExcel = CLIENT_TYPE == 'mobile' ? null : require('xlsx-oc').exportEx
})) }))
export default class ImportUtil extends React.PureComponent { export default class ImportUtil extends React.PureComponent {
constructor(props) { constructor(props) {
super(props); super(props);
const exportTemplateUrl = encodeURI( const exportTemplateUrl = encodeURI(
`${config.httpServer}/DataObjApi/importTemplateDownload?objId=${this.props.objId}&name=${props.fileName}`, `${config.httpServer}/DataObjApi/importTemplateDownload?objId=${this.props.objId}&name=${props.fileName}`,
...@@ -120,7 +120,7 @@ export default class ImportUtil extends React.PureComponent { ...@@ -120,7 +120,7 @@ export default class ImportUtil extends React.PureComponent {
...(importParams || {}), ...(importParams || {}),
isLocal: false, isLocal: false,
filePath, filePath,
importConfig:importConfig?JSON.stringify(importConfig):null, importConfig:importConfig?JSON.stringify(importConfig):null,
objId: this.props.objId, objId: this.props.objId,
}, },
...@@ -196,7 +196,7 @@ export default class ImportUtil extends React.PureComponent { ...@@ -196,7 +196,7 @@ export default class ImportUtil extends React.PureComponent {
}; };
downloadFile=()=> { downloadFile=()=> {
this.setState({ confirmLoading: true }); this.setState({ confirmLoading: true });
const {objId,fileName,importParams,importConfig} = this.props; const {objId,fileName,importParams,importConfig} = this.props;
const params = { const params = {
...importParams, ...importParams,
...@@ -359,12 +359,12 @@ export default class ImportUtil extends React.PureComponent { ...@@ -359,12 +359,12 @@ export default class ImportUtil extends React.PureComponent {
<ButtonDiy <ButtonDiy
name={'下载模板'} name={'下载模板'}
type="primary" type="primary"
// className='primaryBlue' // className='primaryBlue'
handleClick={() => this.downloadFile()} handleClick={() => this.downloadFile()}
loading={this.state.confirmLoading} loading={this.state.confirmLoading}
/> />
</div> </div>
) : ( ) : (
<Upload {...props}> <Upload {...props}>
...@@ -409,6 +409,7 @@ export default class ImportUtil extends React.PureComponent { ...@@ -409,6 +409,7 @@ export default class ImportUtil extends React.PureComponent {
style={{ overflow: 'auto' }} style={{ overflow: 'auto' }}
dataSource={this.state.errData} dataSource={this.state.errData}
bordered={true} bordered={true}
scroll={{x: 'max-content'}}
/> />
</TabPane> </TabPane>
)} )}
...@@ -427,6 +428,7 @@ export default class ImportUtil extends React.PureComponent { ...@@ -427,6 +428,7 @@ export default class ImportUtil extends React.PureComponent {
style={{ overflow: 'auto' }} style={{ overflow: 'auto' }}
dataSource={this.state.sucData} dataSource={this.state.sucData}
bordered={true} bordered={true}
scroll={{x: 'max-content'}}
/> />
</TabPane> </TabPane>
</Tabs> </Tabs>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论