fix: 修改创建导出任务按钮loadin
This commit is contained in:
parent
3eee3f8498
commit
81b3ce4760
|
@ -45,7 +45,8 @@ export default class settlementList extends React.Component {
|
|||
limit: 10,
|
||||
officialPrice: 0,
|
||||
costPrice: 0,
|
||||
search: this.initSearch()
|
||||
search: this.initSearch(),
|
||||
downloadLoad: false
|
||||
}
|
||||
this.onChangeCombinedDate = this.onChangeCombinedDate.bind(this)
|
||||
}
|
||||
|
@ -288,6 +289,12 @@ export default class settlementList extends React.Component {
|
|||
|
||||
// 创建导出订单任务
|
||||
async createExportOrderTask() {
|
||||
this.setState({ downloadLoad: true })
|
||||
|
||||
setTimeout(() => {
|
||||
this.setState({ downloadLoad: false })
|
||||
}, 3000)
|
||||
|
||||
let params = {}
|
||||
// 如果是选择
|
||||
if (this.state.selectionData.length > 0) {
|
||||
|
@ -472,6 +479,7 @@ export default class settlementList extends React.Component {
|
|||
className="exportOrder"
|
||||
type="default"
|
||||
icon="download"
|
||||
disabled={this.state.downloadLoad}
|
||||
onClick={this.createExportOrderTask.bind(this)}
|
||||
>
|
||||
创建导出任务
|
||||
|
|
Loading…
Reference in New Issue