feat: 新增
This commit is contained in:
parent
22d2252dea
commit
c2b92db2ef
|
@ -12,14 +12,7 @@ export interface jobuser {
|
||||||
status: string;
|
status: string;
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
data: {
|
data: object;
|
||||||
jobuser: {
|
|
||||||
username: string; // 账号
|
|
||||||
password: string; // 密码
|
|
||||||
time: Date; // 注册时间
|
|
||||||
type: number; // 累计在线时间
|
|
||||||
}[]
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button v-show="record.black != 1" status="danger" @click="showConfirm(record.id)">封禁</a-button>
|
<a-button v-show="record.black != 1" status="danger" @click="showConfirm(record.id)">封禁</a-button>
|
||||||
<a-button v-show="record.black == 1" status="danger" @click="showConfirm(record.id)">解禁</a-button>
|
<a-button v-show="record.black == 1" status="danger" @click="showConfirm(record.id)">解禁</a-button>
|
||||||
<a-button @click="show_group(record.username)">查看团队</a-button>
|
<!-- <a-button @click="show_group(record.username)">查看团队</a-button> -->
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
|
|
|
@ -3,31 +3,25 @@
|
||||||
<Breadcrumb :items="['menu.withdraw', 'menu.withdraw.list']" />
|
<Breadcrumb :items="['menu.withdraw', 'menu.withdraw.list']" />
|
||||||
|
|
||||||
<a-card class="general-card" :title="$t('menu.withdraw.list')">
|
<a-card class="general-card" :title="$t('menu.withdraw.list')">
|
||||||
<a-table :data="data">
|
<a-table :data="data">
|
||||||
<template #columns>
|
<template #columns>
|
||||||
<a-table-column title="用户id" data-index="user_id"></a-table-column>
|
<a-table-column title="用户id" data-index="user_id"></a-table-column>
|
||||||
<a-table-column title="用户名称" data-index="username"></a-table-column>
|
<a-table-column title="用户名称" data-index="username"></a-table-column>
|
||||||
<a-table-column title="转账金额" data-index="money"></a-table-column>
|
<a-table-column title="转账金额" data-index="money"></a-table-column>
|
||||||
<a-table-column title="状态" data-index="status"></a-table-column>
|
<a-table-column title="状态" data-index="status" filterable="filters: [{
|
||||||
|
text: 'London',
|
||||||
|
value: 'London',
|
||||||
|
}, {
|
||||||
|
text: 'Paris',
|
||||||
|
value: 'Paris',
|
||||||
|
},],
|
||||||
|
filter: (value, row) => row.address.includes(value),"></a-table-column>
|
||||||
<a-table-column title="操作时间" data-index="createtime2"></a-table-column>
|
<a-table-column title="操作时间" data-index="createtime2"></a-table-column>
|
||||||
<a-table-column title="操作">
|
<a-table-column title="操作">
|
||||||
<template #cell="{ record }">
|
<template #cell="{ record }">
|
||||||
<a-button v-if="record.status == '申请中'" @click="showConfirm(record.id)">审批</a-button>
|
<a-button v-if="record.status == '申请中'" @click="showConfirm(record.id)">审批</a-button>
|
||||||
</template>
|
</template>
|
||||||
</a-table-column>
|
</a-table-column>
|
||||||
<!-- <a-table-column title="是否封禁" data-index="black"><template #cell="{ record }">
|
|
||||||
{{ record.black == 1 ? '是' : '否' }}
|
|
||||||
</template></a-table-column>
|
|
||||||
<a-table-column title="操作">
|
|
||||||
<template #cell="{ record }">
|
|
||||||
<a-button @click="create(record.id)">编辑</a-button>
|
|
||||||
<a-space>
|
|
||||||
<a-button v-show="record.black != 1" status="danger" @click="showConfirm(record.id)">封禁</a-button>
|
|
||||||
<a-button v-show="record.black == 1" status="danger" @click="showConfirm(record.id)">解禁</a-button>
|
|
||||||
<a-button @click="show_group(record.username)">查看团队</a-button>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</a-table-column>-->
|
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
@ -39,12 +33,30 @@ import { computed, ref, reactive, watch, nextTick, onMounted } from 'vue';
|
||||||
import { lists } from '@/api/withdraw';
|
import { lists } from '@/api/withdraw';
|
||||||
import { Modal } from '@arco-design/web-vue';
|
import { Modal } from '@arco-design/web-vue';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: 'Name',
|
||||||
|
dataIndex: 'name',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Salary',
|
||||||
|
dataIndex: 'salary',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Address',
|
||||||
|
dataIndex: 'address',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Email',
|
||||||
|
dataIndex: 'email',
|
||||||
|
},
|
||||||
|
];
|
||||||
interface DataItem {
|
interface DataItem {
|
||||||
username: string;
|
user_id: string;
|
||||||
password: string;
|
username: string;
|
||||||
time: Date;
|
money: Date;
|
||||||
money: string;
|
status: string;
|
||||||
|
createtime2: string;
|
||||||
}
|
}
|
||||||
let data = ref<DataItem[]>([])
|
let data = ref<DataItem[]>([])
|
||||||
//弹窗控制
|
//弹窗控制
|
||||||
|
@ -59,9 +71,9 @@ const show_group=(id:number)=>{
|
||||||
const showConfirm = (id: string) => {
|
const showConfirm = (id: string) => {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '操作提醒',
|
title: '操作提醒',
|
||||||
content: '是否同意该用户提现申请',
|
content: '是否同意该用户的提现申请',
|
||||||
okText: '通过',
|
okText: '同意',
|
||||||
cancelText: '不通过',
|
cancelText: '拒绝',
|
||||||
onOk: () => handleBlock(id),
|
onOk: () => handleBlock(id),
|
||||||
onCancel: () => Message.info('取消操作'),
|
onCancel: () => Message.info('取消操作'),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue