会员列表页联调
This commit is contained in:
parent
686c9fd284
commit
66af30d79e
@ -46,7 +46,7 @@
|
||||
<el-table v-loading="loading" :data="umsMemberList" border>
|
||||
<el-table-column label="昵称" prop="nickname" width="150" />
|
||||
<el-table-column label="手机号码" prop="phoneHidden" width="150" />
|
||||
<el-table-column label="佣金" width="120">
|
||||
<!-- <el-table-column label="佣金" width="120">
|
||||
<template v-slot="scope">
|
||||
<div>0.00</div>
|
||||
</template>
|
||||
@ -60,7 +60,7 @@
|
||||
<template v-slot="scope">
|
||||
<div>0.00</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>-->
|
||||
<el-table-column label="注册时间" prop="createTime" width="180">
|
||||
<template v-slot="scope">
|
||||
<div>{{ parseTime(scope.row.createTime) }}</div>
|
||||
@ -85,7 +85,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
<pagination :total="total" v-model:page="queryParams.current" v-model:limit="queryParams.size" @pagination="getList" />
|
||||
</div>
|
||||
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk" />-->
|
||||
<!-- 统计 -->
|
||||
@ -163,8 +163,8 @@ export default {
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
current: 1,
|
||||
size: 10,
|
||||
nickname: null,
|
||||
phone: null,
|
||||
status: undefined,
|
||||
@ -244,16 +244,16 @@ export default {
|
||||
/** 查询会员信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
const { pageNum, pageSize } = this.queryParams;
|
||||
const { current: pageNum, size: pageSize } = this.queryParams;
|
||||
let query = { ...this.queryParams, pageNum: undefined, pageSize: undefined };
|
||||
const pageReq = { page: pageNum - 1, size: pageSize };
|
||||
const pageReq = { current: pageNum - 1, size: pageSize };
|
||||
if (!this.dateRange || this.dateRange.length > 0) {
|
||||
query = { ...this.addDateRange2(query, this.dateRange) };
|
||||
}
|
||||
listUmsMember(query, pageReq).then((response) => {
|
||||
const { content, totalElements } = response;
|
||||
this.umsMemberList = content;
|
||||
this.total = totalElements;
|
||||
const { records = [], total = 0 } = response.data || {};
|
||||
this.umsMemberList = records;
|
||||
this.total = total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
@ -384,16 +384,24 @@ export default {
|
||||
});
|
||||
},
|
||||
goOrder(phone) {
|
||||
if (phone) {
|
||||
decryptedPhone(phone).then((res) => {
|
||||
this.$router.push({
|
||||
path: '/order/order',
|
||||
path: '/order/list',
|
||||
query: {
|
||||
phone: res
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
this.$router.push({
|
||||
path: '/order/list',
|
||||
query: {}
|
||||
});
|
||||
}
|
||||
},
|
||||
goCart(phone) {
|
||||
if (phone) {
|
||||
decryptedPhone(phone).then((res) => {
|
||||
this.$router.push({
|
||||
path: '/member/shoppingCart',
|
||||
@ -402,6 +410,12 @@ export default {
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
this.$router.push({
|
||||
path: '/member/shoppingCart',
|
||||
query: {}
|
||||
});
|
||||
}
|
||||
},
|
||||
showStatistics(memberId) {
|
||||
viewStatistics(memberId).then((response) => {
|
||||
|
@ -24,8 +24,8 @@ export default defineConfig(({ mode, command }) => {
|
||||
open: true,
|
||||
proxy: {
|
||||
[env.VITE_APP_BASE_API]: {
|
||||
// target: 'http://192.168.224.1:8080',
|
||||
target: 'http://192.168.1.250:8080',
|
||||
target: 'http://192.168.1.13:8080',
|
||||
// target: 'http://192.168.1.250:8080',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), ''),
|
||||
|
Loading…
x
Reference in New Issue
Block a user