fix: 修改创建导出任务按钮loadin

This commit is contained in:
zhangds 2024-04-26 17:30:37 +08:00
parent 3eee3f8498
commit 81b3ce4760
1 changed files with 9 additions and 1 deletions

View File

@ -45,7 +45,8 @@ export default class settlementList extends React.Component {
limit: 10, limit: 10,
officialPrice: 0, officialPrice: 0,
costPrice: 0, costPrice: 0,
search: this.initSearch() search: this.initSearch(),
downloadLoad: false
} }
this.onChangeCombinedDate = this.onChangeCombinedDate.bind(this) this.onChangeCombinedDate = this.onChangeCombinedDate.bind(this)
} }
@ -288,6 +289,12 @@ export default class settlementList extends React.Component {
// //
async createExportOrderTask() { async createExportOrderTask() {
this.setState({ downloadLoad: true })
setTimeout(() => {
this.setState({ downloadLoad: false })
}, 3000)
let params = {} let params = {}
// //
if (this.state.selectionData.length > 0) { if (this.state.selectionData.length > 0) {
@ -472,6 +479,7 @@ export default class settlementList extends React.Component {
className="exportOrder" className="exportOrder"
type="default" type="default"
icon="download" icon="download"
disabled={this.state.downloadLoad}
onClick={this.createExportOrderTask.bind(this)} onClick={this.createExportOrderTask.bind(this)}
> >
创建导出任务 创建导出任务