mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
H&R + exam user support bulk action
This commit is contained in:
@@ -71,6 +71,28 @@
|
||||
<td>Seed points</td>
|
||||
<td>{{baseInfo.seed_points}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>H&R inspecting</td>
|
||||
<td>{{baseInfo.invites}}</td>
|
||||
<td>
|
||||
<el-popconfirm
|
||||
title="Confirm Remove ?"
|
||||
@confirm="handleRemoveHitAndRun"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button size="small">Remove</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
<el-popconfirm
|
||||
title="Confirm Pardon ?"
|
||||
@confirm="handlePardonHitAndRun"
|
||||
>
|
||||
<template #reference>
|
||||
<el-button size="small">Pardon</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Invites</td>
|
||||
<td>{{baseInfo.invites}}</td>
|
||||
@@ -334,6 +356,12 @@ export default {
|
||||
ElMessage.success(res.msg)
|
||||
await fetchPageData()
|
||||
}
|
||||
|
||||
const handleRemoveHitAndRun = async (id) => {
|
||||
let res = await api.removeUserMedal(id)
|
||||
ElMessage.success(res.msg)
|
||||
await fetchPageData()
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
handleRemoveExam,
|
||||
|
||||
Reference in New Issue
Block a user