邀请人变更操作,列表,注销列表

This commit is contained in:
faiz 2024-11-28 11:40:51 +08:00
parent cc225d2f89
commit ca02cd8202
6 changed files with 66 additions and 15 deletions

View File

@ -157,6 +157,12 @@ export function categoryListApi(data) {
export function exportProductApi(data) {
return request.get(`store/product/export`, data)
}
/**
* @description 导出秒杀订单
*/
export function exportSeckillApi(data) {
return request.get(`seckill/product/export`, data)
}
/**
* @description 导出用户操作记录
*/

View File

@ -116,6 +116,12 @@ export function labelDeleteApi(id) {
export function userLstApi(data) {
return request.get('user/lst', data)
}
/**
* @description 注销列表 -- 列表
*/
export function backupinfoLstApi(data) {
return request.get('user/backupinfo/list', data)
}
/**
* @description 用户列表 -- 设置分组
*/

View File

@ -5,6 +5,9 @@
<el-form-item label="用户名称:">
<el-input v-model="tableFrom.nickname" @keyup.enter.native="getList(1)" placeholder="请输入用户名称" clearable class="selWidth" />
</el-form-item>
<el-form-item label="手机号:">
<el-input v-model="tableFrom.phone" @keyup.enter.native="getList(1)" placeholder="请输入用户名称" clearable class="selWidth" />
</el-form-item>
<el-form-item>
<el-button type="primary" size="small" @click="getList(1)">查询</el-button>
</el-form-item>

View File

@ -29,6 +29,12 @@ const userRouter =
name: 'UserList',
meta: { title: '用户列表', noCache: true }
},
{
path: 'cancel',
component: () => import('@/views/user/cancel'),
name: 'UserCancel',
meta: { title: '注销列表', noCache: true }
},
{
path: 'searchRecord',
component: () => import('@/views/user/search'),

View File

@ -495,7 +495,11 @@
@click.native="setLabel(scope.row)"
>设置标签</el-dropdown-item
>
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setModify(scope.row)">修改推荐人</el-dropdown-item> -->
<el-dropdown-item
v-if="!scope.row.cancel_time"
@click.native="setModify(scope.row)"
>修改邀请人</el-dropdown-item
>
<el-dropdown-item
v-if="!scope.row.cancel_time"
@click.native="setPassword(scope.row)"
@ -1313,6 +1317,12 @@ export default {
this.changeSearch()
);
},
//
// setInviter(row) {
// this.$modalForm(modifyUserPassword(row.uid)).then(() =>
// this.changeSearch()
// );
// },
//
setMoney(row) {
this.$modalForm(changeNowMoneyApi(row.uid)).then(() =>

View File

@ -67,7 +67,7 @@
>
<!-- <el-dropdown-item command="group">设置分组</el-dropdown-item> -->
<el-dropdown-item command="label">设置标签</el-dropdown-item>
<!-- <el-dropdown-item command="reference">修改推荐</el-dropdown-item> -->
<!-- <el-dropdown-item command="reference">修改邀请</el-dropdown-item> -->
<el-dropdown-item command="password"
>修改密码</el-dropdown-item
>
@ -815,20 +815,40 @@
</div>
</template>
</el-tab-pane>
<!-- <el-tab-pane label="推荐人变更记录" name="recommend">
<el-tab-pane label="邀请人变更记录" name="recommend">
<template v-if="activeName == 'recommend'">
<el-table :data="tableData.data" size="small">
<el-table-column prop="spread.uid" label="上级推荐人ID" min-width="100">
<el-table-column
prop="spread.uid"
label="邀请人ID"
min-width="100"
>
<template slot-scope="scope">
<span>{{(scope.row.spread && scope.row.spread.uid) || '-'}}</span>
<span>{{
(scope.row.spread && scope.row.spread.uid) || "-"
}}</span>
</template>
</el-table-column>
<el-table-column prop="spread.nickname" label="上级推荐人昵称" min-width="100">
<template slot-scope="scope">
<span>{{(scope.row.spread && scope.row.spread.nickname) || '用户已注销'}}</span>
</template>
</el-table-column>
<el-table-column prop="create_time" label="绑定时间" min-width="100" />
<el-table-column
prop="oldspread.phone"
label="老邀请人手机"
min-width="100"
/>
<el-table-column
prop="spread.phone"
label="邀请人手机"
min-width="100"
/>
<el-table-column
prop="systemadmin.real_name:"
label="操作人"
min-width="100"
/>
<el-table-column
prop="create_time"
label="绑定时间"
min-width="100"
/>
</el-table>
<div class="block">
<el-pagination
@ -841,7 +861,7 @@
/>
</div>
</template>
</el-tab-pane> -->
</el-tab-pane>
</el-tabs>
</div>
</el-drawer>
@ -922,7 +942,7 @@ export default {
{ val: "0", label: "消费记录" },
{ val: "3", label: "持有优惠券" },
{ val: "4", label: "余额变动" },
{ val: "2", label: "推荐人修改记录" },
{ val: "2", label: "邀请人修改记录" },
],
tableData: {
data: [],
@ -1020,12 +1040,12 @@ export default {
this.tableData.total = res.data.count;
this.columns = [
{
title: "上级推荐人ID",
title: "邀请人ID",
key: "spread.uid",
minWidth: 120,
},
{
title: "上级推荐人昵称",
title: "邀请人昵称",
key: "spread.nickname",
minWidth: 120,
},