This commit is contained in:
parent
4e954e42d5
commit
bcdf4a5b73
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue