桂冠会员名单数据请求太慢问题

This commit is contained in:
liyuetong
2021-09-10 17:59:06 +08:00
parent 57d657da0e
commit 21a76e3ed3
2 changed files with 10 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ export default {
// height: 54.4vh; // height: 54.4vh;
display: block; display: block;
margin-top: 12.7vh; margin-top: 12.7vh;
margin-top: 21%; margin-top: 20%;
td { td {
border-bottom: 1px solid #142162; border-bottom: 1px solid #142162;
border: 1px solid #7886c8; border: 1px solid #7886c8;

View File

@@ -161,6 +161,13 @@ export default {
}, },
//获取会员名单列表接口 //获取会员名单列表接口
async getQueryLaureMemberListFunc(item) { async getQueryLaureMemberListFunc(item) {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
let data = { let data = {
type: '', type: '',
monthStr: item.monthStr, monthStr: item.monthStr,
@@ -181,6 +188,7 @@ export default {
const res = await queryLaureMemberList(data) const res = await queryLaureMemberList(data)
if (res.result == 0) { if (res.result == 0) {
content = res.content content = res.content
this.$toast.clear()
} }
return content return content
}, },
@@ -267,7 +275,7 @@ export default {
}) })
let res = await queryLaureList(data) let res = await queryLaureList(data)
this.$toast.clear() // this.$toast.clear()
if (res.result == '0') { if (res.result == '0') {
this.list = [] this.list = []
this.isSuccess = true this.isSuccess = true