|
|
@ -30,45 +30,47 @@ |
|
|
|
@click="handleDel()" |
|
|
|
@click="handleDel()" |
|
|
|
>删除用户</a-button> |
|
|
|
>删除用户</a-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #action="{ record }"> |
|
|
|
<template #bodyCell="{ column, record }"> |
|
|
|
<TableAction |
|
|
|
<template v-if="column.key === 'action'"> |
|
|
|
:actions="[ |
|
|
|
<TableAction |
|
|
|
{ |
|
|
|
:actions="[ |
|
|
|
label: '编辑', |
|
|
|
{ |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
label: '编辑', |
|
|
|
auth: ['user_edit'], |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
onClick: handleEdit.bind(null, record) |
|
|
|
auth: ['user_edit'], |
|
|
|
}, |
|
|
|
onClick: handleEdit.bind(null, record) |
|
|
|
{ |
|
|
|
}, |
|
|
|
label: '删除', |
|
|
|
{ |
|
|
|
icon: 'ant-design:delete-outlined', |
|
|
|
label: '删除', |
|
|
|
color: 'error', |
|
|
|
icon: 'ant-design:delete-outlined', |
|
|
|
auth: ['user_del'], |
|
|
|
color: 'error', |
|
|
|
onClick: handleDel.bind(null, record) |
|
|
|
auth: ['user_del'], |
|
|
|
}]" |
|
|
|
onClick: handleDel.bind(null, record) |
|
|
|
:dropDownActions="[ |
|
|
|
}]" |
|
|
|
{ |
|
|
|
:dropDownActions="[ |
|
|
|
label: '加入黑名单', |
|
|
|
{ |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
label: '加入黑名单', |
|
|
|
onClick: handleBlacklist.bind(null, record) |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
}, |
|
|
|
onClick: handleBlacklist.bind(null, record) |
|
|
|
{ |
|
|
|
}, |
|
|
|
label: '加入白名单', |
|
|
|
{ |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
label: '加入白名单', |
|
|
|
onClick: handleWhitelist.bind(null, record) |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
}, |
|
|
|
onClick: handleWhitelist.bind(null, record) |
|
|
|
{ |
|
|
|
}, |
|
|
|
label: '推送申请', |
|
|
|
{ |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
label: '推送申请', |
|
|
|
onClick: handlePushAdd.bind(null, record) |
|
|
|
icon: 'fa6-regular:pen-to-square', |
|
|
|
}, |
|
|
|
onClick: handlePushAdd.bind(null, record) |
|
|
|
{ |
|
|
|
}, |
|
|
|
label: '重置密码', |
|
|
|
{ |
|
|
|
icon: 'fa6-brands:battle-net', |
|
|
|
label: '重置密码', |
|
|
|
auth: ['user_reset'], |
|
|
|
icon: 'fa6-brands:battle-net', |
|
|
|
onClick: handleResetPassword.bind(null, record), |
|
|
|
auth: ['user_reset'], |
|
|
|
}]" |
|
|
|
onClick: handleResetPassword.bind(null, record), |
|
|
|
/> |
|
|
|
}]" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</BasicTable> |
|
|
|
</BasicTable> |
|
|
|
<!--弹出窗体区域--> |
|
|
|
<!--弹出窗体区域--> |
|
|
@ -160,7 +162,7 @@ |
|
|
|
width: 220, |
|
|
|
width: 220, |
|
|
|
title: '操作', |
|
|
|
title: '操作', |
|
|
|
dataIndex: 'action', |
|
|
|
dataIndex: 'action', |
|
|
|
slots: { customRender: 'action' }, |
|
|
|
//slots: { customRender: 'action' }, |
|
|
|
fixed: false |
|
|
|
fixed: false |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleSearchInfoFn: () => clearSelectedRowKeys() |
|
|
|
handleSearchInfoFn: () => clearSelectedRowKeys() |
|
|
|