This commit is contained in:
parent
4e954e42d5
commit
bcdf4a5b73
|
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="tableData.list" style="width: 100%;margin-top: 10px;height:80%;"
|
<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="name" label="昵称" />
|
||||||
<el-table-column prop="telephone" label="手机" width="200px" />
|
<el-table-column prop="telephone" label="手机" width="200px" />
|
||||||
<el-table-column prop="code" label="编号" width="150px" />
|
<el-table-column prop="code" label="编号" width="150px" />
|
||||||
|
|
@ -212,6 +212,8 @@ const props = defineProps({//首页传值
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const loading = ref(false)
|
||||||
|
|
||||||
const flowingwater = reactive({//获取流水初始化
|
const flowingwater = reactive({//获取流水初始化
|
||||||
total: '',
|
total: '',
|
||||||
list: []
|
list: []
|
||||||
|
|
@ -288,6 +290,7 @@ const inputChange = lodash.debounce(function () { //搜索手机号
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
||||||
const asyncqueryMembermember = async () => {//会员列表数据
|
const asyncqueryMembermember = async () => {//会员列表数据
|
||||||
|
loading.value = true
|
||||||
let res = await queryMembermember({
|
let res = await queryMembermember({
|
||||||
shopId: store.userInfo.shopId,
|
shopId: store.userInfo.shopId,
|
||||||
page: tableData.page,
|
page: tableData.page,
|
||||||
|
|
@ -295,10 +298,11 @@ const asyncqueryMembermember = async () => {//会员列表数据
|
||||||
phone: tableData.phone
|
phone: tableData.phone
|
||||||
})
|
})
|
||||||
if (res) {
|
if (res) {
|
||||||
if (res.list.length != 0) {
|
setTimeout(() => {
|
||||||
|
loading.value = false
|
||||||
|
}, 300)
|
||||||
tableData.list = res.list
|
tableData.list = res.list
|
||||||
MemberAccount()
|
MemberAccount()
|
||||||
}
|
|
||||||
tableData.total = res.total
|
tableData.total = res.total
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue