mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 09:43:32 +00:00
perf: 列表移除按钮新增 confirm 对话框
This commit is contained in:
@@ -284,11 +284,15 @@ export default {
|
||||
}
|
||||
},
|
||||
removeUserFromOrg({ row, reload }) {
|
||||
const url = `/api/v1/users/users/${row.id}/remove/`
|
||||
this.$axios.post(url).then(() => {
|
||||
reload()
|
||||
this.$message.success(this.$tc('RemoveSuccessMsg'))
|
||||
})
|
||||
this.$confirm(this.$t('RemoveWarningMsg') + ' ' + row.name + ' ?', this.$tc('Info'), {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
const url = `/api/v1/users/users/${row.id}/remove/`
|
||||
this.$axios.post(url).then(() => {
|
||||
reload()
|
||||
this.$message.success(this.$tc('RemoveSuccessMsg'))
|
||||
})
|
||||
}).catch(() => {})
|
||||
},
|
||||
async bulkRemoveCallback({ selectedRows, reloadTable }) {
|
||||
const ids = selectedRows.map(v => {
|
||||
|
Reference in New Issue
Block a user