|
@@ -204,6 +204,7 @@ function handleBatchAdd(ids = userIds.value) {
|
|
|
if (!ids.length)
|
|
|
return $message.error('请先选择用户')
|
|
|
$dialog.confirm({
|
|
|
+ title: '提示',
|
|
|
content: `确认分配【${route.query.roleName}】?`,
|
|
|
async confirm() {
|
|
|
await api.addRoleUsers(roleId, { userIds: ids })
|
|
@@ -218,6 +219,7 @@ function handleBatchRemove(ids = userIds.value) {
|
|
|
if (!ids.length)
|
|
|
return $message.error('请先选择用户')
|
|
|
$dialog.confirm({
|
|
|
+ title: '提示',
|
|
|
content: `确认取消分配【${route.query.roleName}】?`,
|
|
|
async confirm() {
|
|
|
await api.removeRoleUsers(roleId, { userIds: ids })
|