feat: 新增
This commit is contained in:
parent
22d2252dea
commit
c2b92db2ef
|
@ -12,14 +12,7 @@ export interface jobuser {
|
|||
status: string;
|
||||
code: number;
|
||||
message: string;
|
||||
data: {
|
||||
jobuser: {
|
||||
username: string; // 账号
|
||||
password: string; // 密码
|
||||
time: Date; // 注册时间
|
||||
type: number; // 累计在线时间
|
||||
}[]
|
||||
};
|
||||
data: object;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<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-button @click="show_group(record.username)">查看团队</a-button> -->
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table-column>
|
||||
|
|
|
@ -8,26 +8,20 @@
|
|||
<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="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="操作">
|
||||
<template #cell="{ record }">
|
||||
<a-button v-if="record.status == '申请中'" @click="showConfirm(record.id)">审批</a-button>
|
||||
</template>
|
||||
</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>
|
||||
</a-table>
|
||||
</a-card>
|
||||
|
@ -39,12 +33,30 @@ import { computed, ref, reactive, watch, nextTick, onMounted } from 'vue';
|
|||
import { lists } from '@/api/withdraw';
|
||||
import { Modal } 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 {
|
||||
user_id: string;
|
||||
username: string;
|
||||
password: string;
|
||||
time: Date;
|
||||
money: string;
|
||||
money: Date;
|
||||
status: string;
|
||||
createtime2: string;
|
||||
}
|
||||
let data = ref<DataItem[]>([])
|
||||
//弹窗控制
|
||||
|
@ -59,9 +71,9 @@ const show_group=(id:number)=>{
|
|||
const showConfirm = (id: string) => {
|
||||
Modal.confirm({
|
||||
title: '操作提醒',
|
||||
content: '是否同意该用户提现申请',
|
||||
okText: '通过',
|
||||
cancelText: '不通过',
|
||||
content: '是否同意该用户的提现申请',
|
||||
okText: '同意',
|
||||
cancelText: '拒绝',
|
||||
onOk: () => handleBlock(id),
|
||||
onCancel: () => Message.info('取消操作'),
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue