|
|
@@ -93,7 +93,7 @@
|
|
|
<div style="display: flex; align-items: center; justify-content: center; gap: 12px;">
|
|
|
<el-button v-if="scope.row.status !== 2" link type="primary" icon="Printer" @click="handlePrintTicket(scope.row)">手动取票</el-button>
|
|
|
<el-button v-if="scope.row.tournamentType === 0 && scope.row.status !== 2" link type="danger" icon="CircleClose" @click="handleCancelRegistration(scope.row)">取消报名</el-button>
|
|
|
- <el-button v-if="scope.row.status === 2" link type="success" icon="Refresh" @click="handleReRegister(scope.row)">帮他报名</el-button>
|
|
|
+ <el-button v-if="scope.row.status === 2" link type="success" icon="Refresh" @click="handleReRegister(scope.row)">手动报名</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -543,23 +543,23 @@ const handleCancelRegistration = async (row: ParticipantsVO) => {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
-/** 帮他报名(恢复已取消的报名) */
|
|
|
+/** 手动报名(恢复已取消的报名) */
|
|
|
const handleReRegister = async (row: ParticipantsVO) => {
|
|
|
try {
|
|
|
- await proxy?.$modal.confirm('确认替该选手重新报名吗?恢复后该报名记录将重新生效。');
|
|
|
+ await proxy?.$modal.confirm('确认为该选手手动报名吗?恢复后该报名记录将重新生效。');
|
|
|
const res = await reRegister({
|
|
|
id: row.id,
|
|
|
tournamentId: row.tournamentId
|
|
|
} as ParticipantsForm);
|
|
|
if (res.code === 200) {
|
|
|
- proxy?.$modal.msgSuccess('已帮他重新报名');
|
|
|
+ proxy?.$modal.msgSuccess('手动报名成功');
|
|
|
await getList();
|
|
|
} else {
|
|
|
- proxy?.$modal.msgError(res.msg || '帮他报名失败');
|
|
|
+ proxy?.$modal.msgError(res.msg || '手动报名失败');
|
|
|
}
|
|
|
} catch (error) {
|
|
|
if (error !== 'cancel') {
|
|
|
- proxy?.$modal.msgError('帮他报名失败:' + (error as Error).message);
|
|
|
+ proxy?.$modal.msgError('手动报名失败:' + (error as Error).message);
|
|
|
}
|
|
|
}
|
|
|
};
|