diff --git a/src/views/settlementCenter/bonusCount/index.vue b/src/views/settlementCenter/bonusCount/index.vue index 055c45d..e6409f2 100644 --- a/src/views/settlementCenter/bonusCount/index.vue +++ b/src/views/settlementCenter/bonusCount/index.vue @@ -20,23 +20,19 @@ > - - + +
- - - -
- + @@ -133,51 +129,51 @@ - - - - -
{{ '结算' }} {{ '公布' }} {{ '不公布' }} {{ '发放' }} {{ '提现' }}
- {{'筛选字段'}} + {{ '筛选字段' }} - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
{ if (res.code == 200) { Message({ @@ -542,6 +494,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.operatorLoading = false }) } }, @@ -550,6 +504,7 @@ export default { const verify = this.verifySelect() const time = this.$refs.multipleTable.selection[0].settleDate if (verify) { + this.operatorLoading = true noPublishBonus({ 'settleDate': time }).then((res) => { if (res.code == 200) { Message({ @@ -562,6 +517,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.operatorLoading = false }) } }, @@ -570,6 +527,7 @@ export default { const verify = this.verifySelect() const time = this.$refs.multipleTable.selection[0].settleDate if (verify) { + this.operatorLoading = true publishBonus({ 'settleDate': time }).then((res) => { if (res.code == 200) { Message({ @@ -582,6 +540,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.operatorLoading = false }) } }, @@ -602,6 +562,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.operatorLoading = false }) } }, @@ -610,6 +572,7 @@ export default { const verify = this.verifySelect() const time = this.$refs.multipleTable.selection[0].settleDate if (verify) { + this.operatorLoading = true withdrawalBonus({ 'settleDate': time }).then((res) => { if (res.code == 200) { Message({ @@ -622,6 +585,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.operatorLoading = false }) } }, @@ -655,7 +620,7 @@ export default { }) }, changeTime(val) { - if(val){ + if (val) { this.select.startDate = val[0] this.select.endDate = val[1] } @@ -676,7 +641,7 @@ export default { const sums = [] columns.forEach((column, index) => { if (index === 0) { - sums[index] = '小计' +'(¥)' + sums[index] = '小计' + '(¥)' return } if (index === 1) { @@ -752,15 +717,15 @@ export default { }, getDataList() { this.loading = true - if(this.select.period){ - this.select.period=parseInt(this.select.period) + if (this.select.period) { + this.select.period = parseInt(this.select.period) } if (this.creationTime == '' || this.creationTime == null) { this.select.startDate = '' this.select.endDate = '' } Number(this.select) - listPeriod(Object.assign({}, this.select),`?pageNum=${this.queryParams.pageNum}&pageSize=${this.queryParams.pageSize}`) + listPeriod(Object.assign({}, this.select), `?pageNum=${this.queryParams.pageNum}&pageSize=${this.queryParams.pageSize}`) .then((res) => { this.loading = false this.tableData.censusSummaryList = res.rows @@ -771,7 +736,7 @@ export default { /** 导出按钮操作 */ handleExport() { const queryParams = this.queryParams - this.$confirm( '是否确认导出所有数据项?', '警告', { + this.$confirm('是否确认导出所有数据项?', '警告', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning'