This commit is contained in:
gyq 2024-05-31 10:03:36 +08:00
parent 4e954e42d5
commit bcdf4a5b73
1 changed files with 9 additions and 5 deletions

View File

@ -8,7 +8,7 @@
</div>
</div>
<el-table :data="tableData.list" style="width: 100%;margin-top: 10px;height:80%;"
:row-class-name="tableRowClassName" @cell-click="cellclicktableData">
:row-class-name="tableRowClassName" @cell-click="cellclicktableData" v-loading="loading">
<el-table-column prop="name" label="昵称" />
<el-table-column prop="telephone" label="手机" width="200px" />
<el-table-column prop="code" label="编号" width="150px" />
@ -212,6 +212,8 @@ const props = defineProps({//首页传值
}
})
const loading = ref(false)
const flowingwater = reactive({//
total: '',
list: []
@ -288,6 +290,7 @@ const inputChange = lodash.debounce(function () { //搜索手机号
}, 500)
const asyncqueryMembermember = async () => {//
loading.value = true
let res = await queryMembermember({
shopId: store.userInfo.shopId,
page: tableData.page,
@ -295,10 +298,11 @@ const asyncqueryMembermember = async () => {//会员列表数据
phone: tableData.phone
})
if (res) {
if (res.list.length != 0) {
tableData.list = res.list
MemberAccount()
}
setTimeout(() => {
loading.value = false
}, 300)
tableData.list = res.list
MemberAccount()
tableData.total = res.total
}
}