feat(bonusCount): 列表操作按钮添加loading
This commit is contained in:
parent
2bb5af8311
commit
b86e65dc9c
|
@ -146,17 +146,20 @@
|
||||||
size="small"
|
size="small"
|
||||||
style="background-color: #48B2FD;"
|
style="background-color: #48B2FD;"
|
||||||
class="thebtn2"
|
class="thebtn2"
|
||||||
|
:loading="btnLoading"
|
||||||
@click="balance"
|
@click="balance"
|
||||||
>{{ '结算' }}</el-button>
|
>{{ '结算' }}</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-has-buttons="['bonusCountPublish']"
|
v-has-buttons="['bonusCountPublish']"
|
||||||
size="small"
|
size="small"
|
||||||
class="thebtn2"
|
class="thebtn2"
|
||||||
|
:loading="btnLoading"
|
||||||
@click="publish"
|
@click="publish"
|
||||||
>{{ '公布' }}</el-button>
|
>{{ '公布' }}</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
class="thebtn2"
|
class="thebtn2"
|
||||||
|
:loading="btnLoading"
|
||||||
@click="publish1"
|
@click="publish1"
|
||||||
>{{ '不公布' }}</el-button>
|
>{{ '不公布' }}</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -164,6 +167,7 @@
|
||||||
size="small"
|
size="small"
|
||||||
style="background-color: #009B58"
|
style="background-color: #009B58"
|
||||||
class="thebtn2"
|
class="thebtn2"
|
||||||
|
:loading="btnLoading"
|
||||||
@click="grant"
|
@click="grant"
|
||||||
>{{ '发放' }}</el-button>
|
>{{ '发放' }}</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -171,6 +175,7 @@
|
||||||
size="small"
|
size="small"
|
||||||
style="background-color: #48B2FD"
|
style="background-color: #48B2FD"
|
||||||
class="thebtn2"
|
class="thebtn2"
|
||||||
|
:loading="btnLoading"
|
||||||
@click="withdraw"
|
@click="withdraw"
|
||||||
>{{ '提现' }}</el-button>
|
>{{ '提现' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -406,6 +411,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
btnLoading: false,
|
||||||
dealerList: [],
|
dealerList: [],
|
||||||
isActive: true,
|
isActive: true,
|
||||||
typeList: [
|
typeList: [
|
||||||
|
@ -528,6 +534,7 @@ export default {
|
||||||
const verify = this.verifySelect()
|
const verify = this.verifySelect()
|
||||||
const time = this.$refs.multipleTable.selection[0].settleDate
|
const time = this.$refs.multipleTable.selection[0].settleDate
|
||||||
if (verify) {
|
if (verify) {
|
||||||
|
this.btnLoading = true
|
||||||
settleBonus({ 'settleDate': time }).then((res) => {
|
settleBonus({ 'settleDate': time }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
Message({
|
Message({
|
||||||
|
@ -541,6 +548,9 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.btnLoading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 不公布
|
// 不公布
|
||||||
|
@ -548,6 +558,7 @@ export default {
|
||||||
const verify = this.verifySelect()
|
const verify = this.verifySelect()
|
||||||
const time = this.$refs.multipleTable.selection[0].settleDate
|
const time = this.$refs.multipleTable.selection[0].settleDate
|
||||||
if (verify) {
|
if (verify) {
|
||||||
|
this.btnLoading = true
|
||||||
noPublishBonus({ 'settleDate': time }).then((res) => {
|
noPublishBonus({ 'settleDate': time }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
Message({
|
Message({
|
||||||
|
@ -561,6 +572,9 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.btnLoading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 公布
|
// 公布
|
||||||
|
@ -568,6 +582,7 @@ export default {
|
||||||
const verify = this.verifySelect()
|
const verify = this.verifySelect()
|
||||||
const time = this.$refs.multipleTable.selection[0].settleDate
|
const time = this.$refs.multipleTable.selection[0].settleDate
|
||||||
if (verify) {
|
if (verify) {
|
||||||
|
this.btnLoading = true
|
||||||
publishBonus({ 'settleDate': time }).then((res) => {
|
publishBonus({ 'settleDate': time }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
Message({
|
Message({
|
||||||
|
@ -581,6 +596,9 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.btnLoading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 发放
|
// 发放
|
||||||
|
@ -588,6 +606,7 @@ export default {
|
||||||
const verify = this.verifySelect()
|
const verify = this.verifySelect()
|
||||||
const time = this.$refs.multipleTable.selection[0].settleDate
|
const time = this.$refs.multipleTable.selection[0].settleDate
|
||||||
if (verify) {
|
if (verify) {
|
||||||
|
this.btnLoading = true
|
||||||
grantBonus({ 'settleDate': time }).then((res) => {
|
grantBonus({ 'settleDate': time }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
Message({
|
Message({
|
||||||
|
@ -601,6 +620,9 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.btnLoading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 提现
|
// 提现
|
||||||
|
@ -608,6 +630,7 @@ export default {
|
||||||
const verify = this.verifySelect()
|
const verify = this.verifySelect()
|
||||||
const time = this.$refs.multipleTable.selection[0].settleDate
|
const time = this.$refs.multipleTable.selection[0].settleDate
|
||||||
if (verify) {
|
if (verify) {
|
||||||
|
this.btnLoading = true
|
||||||
withdrawalBonus({ 'settleDate': time }).then((res) => {
|
withdrawalBonus({ 'settleDate': time }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
Message({
|
Message({
|
||||||
|
@ -621,6 +644,9 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.btnLoading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 展开折叠
|
// 展开折叠
|
||||||
|
|
Loading…
Reference in New Issue