|
|
@@ -11,11 +11,6 @@
|
|
|
</template>
|
|
|
</YMTableSearch>
|
|
|
|
|
|
- <div style="margin-bottom: 12px; padding-left: 16px">
|
|
|
- <el-button type="primary" :disabled="selectedMemberIds.length === 0"
|
|
|
- @click="handleBatchSetChannel">批量设置通道</el-button>
|
|
|
- </div>
|
|
|
-
|
|
|
<YMTable ref="table" :table-key="1" :index="true" :selection="true" @selection-change="handleSelectionChange"
|
|
|
:table-options="tableOptions" :edit-form="editForm" :edit-config="editConfig" :columns="columns"
|
|
|
:rows-actions="rowsActions" :show-summary="false" :apis="apis" :actionsWidth="100" @headerClick="headerClick"
|
|
|
@@ -28,9 +23,6 @@
|
|
|
<div>
|
|
|
ID: {{ scoped.row.agent.member_id }}
|
|
|
</div>
|
|
|
- <div>
|
|
|
- 邀请码: {{ scoped.row.agent.user_code }}
|
|
|
- </div>
|
|
|
</div>
|
|
|
<span v-else style="color: #c0c4cc">--</span>
|
|
|
</template>
|
|
|
@@ -137,21 +129,11 @@
|
|
|
<el-button type="info" size="small" @click="rowsActions.find(a => a.key === 'address').method(detailData)">
|
|
|
提现地址
|
|
|
</el-button>
|
|
|
- <!-- 设置通道 -->
|
|
|
- <el-button type="warning" size="small"
|
|
|
- @click="rowsActions.find(a => a.key === 'setChannel').method(detailData)">
|
|
|
- 设置通道
|
|
|
- </el-button>
|
|
|
<!-- 修改密码 -->
|
|
|
<el-button type="primary" size="small"
|
|
|
@click="rowsActions.find(a => a.key === 'modifyPassword').method(detailData)">
|
|
|
修改密码
|
|
|
</el-button>
|
|
|
- <!-- 合并用户 -->
|
|
|
- <el-button type="danger" size="small"
|
|
|
- @click="rowsActions.find(a => a.key === 'secret_key').method(detailData)">
|
|
|
- 合并用户
|
|
|
- </el-button>
|
|
|
<!-- 备注 -->
|
|
|
<el-button type="info" size="small" @click="rowsActions.find(a => a.key === 'note').method(detailData)">
|
|
|
备注
|
|
|
@@ -279,20 +261,6 @@
|
|
|
</template>
|
|
|
</Dialog>
|
|
|
|
|
|
- <Dialog ref="dialogChannel" :dialog-actions="{ width: '480px', title: '设置通道组合' }" :loading="loading"
|
|
|
- @confirm="confirmChannel">
|
|
|
- <template slot="content">
|
|
|
- <el-form ref="channelFormRef" :rules="channelRules" :model="channelFormData" label-width="120px">
|
|
|
- <el-form-item label="通道组合" prop="recharge_channel_group_id">
|
|
|
- <el-select v-model="channelFormData.recharge_channel_group_id" placeholder="请选择通道组合" style="width: 280px">
|
|
|
- <el-option v-for="item in channelGroupList" :key="item.id" :label="item.name"
|
|
|
- :value="item.id"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
- </Dialog>
|
|
|
-
|
|
|
<Dialog ref="dialogPassword" :dialog-actions="{ width: '480px', title: '修改密码' }" :loading="loading"
|
|
|
@confirm="confirmPassword">
|
|
|
<template slot="content">
|
|
|
@@ -340,12 +308,6 @@ export default {
|
|
|
computed: {
|
|
|
searchForm() {
|
|
|
return [
|
|
|
- {
|
|
|
- label: "用户名称",
|
|
|
- type: "input",
|
|
|
- prop: "username",
|
|
|
- clearable: false,
|
|
|
- },
|
|
|
{
|
|
|
label: "用户昵称",
|
|
|
type: "input",
|
|
|
@@ -358,35 +320,6 @@ export default {
|
|
|
prop: "member_id",
|
|
|
clearable: false,
|
|
|
},
|
|
|
- {
|
|
|
- label: "用户等级",
|
|
|
- type: "input",
|
|
|
- prop: "level",
|
|
|
- clearable: false,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "用户邀请码",
|
|
|
- labelWidth: "110px",
|
|
|
- type: "input",
|
|
|
- prop: "user_code",
|
|
|
- clearable: false,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "邀请人邀请码",
|
|
|
- labelWidth: "110px",
|
|
|
- type: "input",
|
|
|
- prop: "agent_user_code",
|
|
|
- clearable: false,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "充值通道",
|
|
|
- type: "select",
|
|
|
- prop: "recharge_channel_group_id",
|
|
|
- options: this.channelGroupList.map((group) => ({
|
|
|
- label: group.name,
|
|
|
- value: group.id,
|
|
|
- })),
|
|
|
- },
|
|
|
{
|
|
|
label: "注册来源",
|
|
|
type: "select",
|
|
|
@@ -429,19 +362,12 @@ export default {
|
|
|
const row = this.detailData;
|
|
|
return [
|
|
|
{ label: '会员ID', value: row.member_id },
|
|
|
- { label: '邀请码', value: row.user_code },
|
|
|
{ label: '会员昵称', value: row.first_name || '--' },
|
|
|
{
|
|
|
label: '注册来源',
|
|
|
value: this.getFromText(row.from),
|
|
|
color: Number(row.from) === 1 ? '#05A58F' : Number(row.from) === 2 ? '#F3061F' : '#606266'
|
|
|
},
|
|
|
- { label: '飞机账号', value: row.username || '--' },
|
|
|
- {
|
|
|
- label: '上级邀请人',
|
|
|
- value: row.agent ? `${row.agent.first_name} (ID:${row.agent.member_id}, 邀请码:${row.agent.user_code})` : '--'
|
|
|
- },
|
|
|
- { label: '会员等级', value: row.level?.level_name || '--' },
|
|
|
{
|
|
|
label: '钱包余额',
|
|
|
value: row.wallet ? Number(row.wallet.available_balance).toFixed(2) : '--',
|
|
|
@@ -467,7 +393,6 @@ export default {
|
|
|
value: row.total_consume != null ? Number(row.total_consume) : '--',
|
|
|
color: Number(row.total_consume) > 0 ? '#18C80A' : '#606266'
|
|
|
},
|
|
|
- { label: '充值通道', value: this.getChannelName(row.recharge_channel_group_id) },
|
|
|
{ label: '注册时间', value: row.created_at || '--' },
|
|
|
{ label: '新增用户', value: this.getNewUserType(row.created_at) },
|
|
|
{ label: '活跃时间', value: row.last_active_time || '--' },
|
|
|
@@ -476,8 +401,6 @@ export default {
|
|
|
value: row.is_banned === 0 ? '正常' : '封号',
|
|
|
color: Number(row.is_banned) === 0 ? '#18C80A' : '#F3061F'
|
|
|
},
|
|
|
- { label: '秘钥', value: row.secret_key || '--' },
|
|
|
- { label: '访客ID', value: row.visitor_id || '--' },
|
|
|
{ label: '备注', value: row.admin_note || '--' },
|
|
|
{ label: '手机号', value: row.phone || '--' },
|
|
|
{ label: 'IP', value: row.register_ip || '--' },
|
|
|
@@ -596,17 +519,6 @@ export default {
|
|
|
vIF: () => false,
|
|
|
method: (row) => this.showWithdrawalAddress(row),
|
|
|
},
|
|
|
- {
|
|
|
- key: "setChannel",
|
|
|
- label: "设置通道",
|
|
|
- // 隐藏该按钮(列表不显示,保留数组项供详情弹窗调用)
|
|
|
- vIF: () => false,
|
|
|
- method: (row) =>
|
|
|
- this.openChannelDialog(
|
|
|
- [row.member_id],
|
|
|
- row.recharge_channel_group_id
|
|
|
- ),
|
|
|
- },
|
|
|
{
|
|
|
key: "modifyPassword",
|
|
|
label: "修改密码",
|
|
|
@@ -622,31 +534,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- key: "secret_key",
|
|
|
- label: "合并用户",
|
|
|
- // 隐藏该按钮(列表不显示,保留数组项供详情弹窗调用)
|
|
|
- vIF: () => false,
|
|
|
- method: (row) => {
|
|
|
- this.$prompt("请输入被合并的用户的秘钥", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- inputPattern: /^\S+$/,
|
|
|
- inputErrorMessage: "请输入被合并的用户的秘钥",
|
|
|
- }).then(({ value }) => {
|
|
|
- usermerge({
|
|
|
- secret_key: value,
|
|
|
- member_id: row.member_id,
|
|
|
- }).then((res) => {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "合并成功!",
|
|
|
- });
|
|
|
- this.onSubmit(this.queryData);
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- },
|
|
|
{
|
|
|
key: "note",
|
|
|
label: "备注",
|
|
|
@@ -787,10 +674,6 @@ export default {
|
|
|
label: "会员ID",
|
|
|
prop: "member_id",
|
|
|
},
|
|
|
- {
|
|
|
- label: "邀请码",
|
|
|
- prop: "user_code",
|
|
|
- },
|
|
|
{
|
|
|
label: "会员昵称",
|
|
|
popover: true,
|
|
|
@@ -802,10 +685,6 @@ export default {
|
|
|
label: "会员ID",
|
|
|
value: ["member_id"],
|
|
|
},
|
|
|
- {
|
|
|
- label: "用户名称",
|
|
|
- value: ["username"],
|
|
|
- },
|
|
|
{
|
|
|
label: "备注",
|
|
|
vShow: (row) => (row?.admin_note ? true : false),
|
|
|
@@ -826,20 +705,6 @@ export default {
|
|
|
return map[row.from] || "--";
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- label: "飞机账号",
|
|
|
- prop: "username",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "上级邀请人",
|
|
|
- prop: "agent",
|
|
|
- width: 240,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "会员等级",
|
|
|
- prop: "level",
|
|
|
- method: (row) => row.level?.level_name || "--",
|
|
|
- },
|
|
|
{
|
|
|
label: "钱包余额",
|
|
|
link: true,
|
|
|
@@ -885,17 +750,6 @@ export default {
|
|
|
label: "打码量",
|
|
|
prop: "total_consume",
|
|
|
},
|
|
|
- {
|
|
|
- label: "充值通道",
|
|
|
- prop: "recharge_channel",
|
|
|
- method: (row) => {
|
|
|
- return (
|
|
|
- this.channelGroupList.find(
|
|
|
- (group) => group.id === row.recharge_channel_group_id
|
|
|
- )?.name || "--"
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
{
|
|
|
label: "注册时间",
|
|
|
prop: "created_at",
|
|
|
@@ -945,31 +799,6 @@ export default {
|
|
|
prop: "is_banned",
|
|
|
method: (row) => (row.is_banned === 0 ? "正常" : "封号"),
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
- label: "秘钥",
|
|
|
- popover: true,
|
|
|
- default: "秘钥",
|
|
|
- width: 70,
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: "找回账号的秘钥",
|
|
|
- value: ["secret_key"],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- label: "访客ID",
|
|
|
- default: "访客ID",
|
|
|
- width: 80,
|
|
|
- popover: true,
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: "访客ID",
|
|
|
- value: ["visitor_id"],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
{
|
|
|
label: "备注",
|
|
|
prop: "admin_note",
|