diff --git a/src/views/settlementCenter/bonusCount/index.vue b/src/views/settlementCenter/bonusCount/index.vue index fb44b63..f931eff 100644 --- a/src/views/settlementCenter/bonusCount/index.vue +++ b/src/views/settlementCenter/bonusCount/index.vue @@ -20,23 +20,23 @@ > - +
- - - - + + + +
- + @@ -120,7 +120,7 @@ {{ $t('MN_T_2') }}
{{ $t('MN_F_T_934') }} {{ $t('MN_F_T_935') }} {{ $t('MN_F_T_936') }} {{ $t('MN_F_T_937') }} {{ $t('MN_F_T_938') }}
- {{$t('MN_F_T_939')}} + {{ $t('MN_F_T_939') }} - + - - - - - - - - - + + + + + + + + + -->
- - - - - - - - - - - + + + + + + + + + + +
{ if (res.code == 200) { Message({ @@ -541,6 +544,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.calculateOperatorLoading = false }) } }, @@ -549,6 +554,7 @@ export default { const verify = this.verifySelect() const time = this.$refs.multipleTable.selection[0].settleDate if (verify) { + this.calculateOperatorLoading = true noPublishBonus({ 'settleDate': time }).then((res) => { if (res.code == 200) { Message({ @@ -561,6 +567,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.calculateOperatorLoading = false }) } }, @@ -569,6 +577,7 @@ export default { const verify = this.verifySelect() const time = this.$refs.multipleTable.selection[0].settleDate if (verify) { + this.calculateOperatorLoading = true publishBonus({ 'settleDate': time }).then((res) => { if (res.code == 200) { Message({ @@ -581,6 +590,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.calculateOperatorLoading = false }) } }, @@ -589,6 +600,7 @@ export default { const verify = this.verifySelect() const time = this.$refs.multipleTable.selection[0].settleDate if (verify) { + this.calculateOperatorLoading = true grantBonus({ 'settleDate': time }).then((res) => { if (res.code == 200) { Message({ @@ -601,6 +613,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.calculateOperatorLoading = false }) } }, @@ -609,6 +623,7 @@ export default { const verify = this.verifySelect() const time = this.$refs.multipleTable.selection[0].settleDate if (verify) { + this.calculateOperatorLoading = true withdrawalBonus({ 'settleDate': time }).then((res) => { if (res.code == 200) { Message({ @@ -621,6 +636,8 @@ export default { type: 'error' }) } + }).finally(() => { + this.calculateOperatorLoading = false }) } }, @@ -654,7 +671,7 @@ export default { }) }, changeTime(val) { - if(val){ + if (val) { this.select.startDate = val[0] this.select.endDate = val[1] } @@ -675,7 +692,7 @@ export default { const sums = [] columns.forEach((column, index) => { if (index === 0) { - sums[index] = this.$t('MN_F_T_951') +'(¥)' + sums[index] = this.$t('MN_F_T_951') + '(¥)' return } if (index === 1) { @@ -750,36 +767,36 @@ export default { }) }, getDataList() { - 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.tableData.censusSummaryList = res.rows this.total = res.total }) }, - openFullScreen(){ - const loading = Loading.service({ + searchHandle() { + const loading = Loading.service({ lock: true, text: 'Loading', - background: 'rgba(0, 0, 0, 0.7)', + background: 'rgba(0, 0, 0, 0.7)' }) setTimeout(() => { loading.close() - this.getDataList() + this.getDataList() }, 1000) }, handleSelectionChange(val) {}, /** 导出按钮操作 */ handleExport() { const queryParams = this.queryParams - this.$confirm( this.$t('MN_F_T_407'), this.$t('MN_F_T_304'), { + this.$confirm(this.$t('MN_F_T_407'), this.$t('MN_F_T_304'), { confirmButtonText: this.$t('w_0035'), cancelButtonText: this.$t('ENU_P_TYPE0'), type: 'warning'