|
@@ -389,7 +389,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column prop="claimed" label="状态" align="center"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="claimedText" label="状态" align="center"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -397,7 +397,7 @@
|
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">查看牌局</el-button>
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)">查看牌局</el-button>
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
<el-tooltip content="审核" placement="top">
|
|
<el-tooltip content="审核" placement="top">
|
|
|
- <el-button link type="primary" icon="Audit">审核</el-button>
|
|
|
|
|
|
|
+ <el-button link type="primary" icon="Audit" @click="handleAudit(scope.row)">审核</el-button>
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
<el-tooltip content="移除" placement="top">
|
|
<el-tooltip content="移除" placement="top">
|
|
|
<el-button link type="primary" icon="Delete" @click="handleClaimsDelete(scope.row)">移除</el-button>
|
|
<el-button link type="primary" icon="Delete" @click="handleClaimsDelete(scope.row)">移除</el-button>
|
|
@@ -449,7 +449,7 @@ import {
|
|
|
import { selectItemsSelList } from '@/api/system/business/items';
|
|
import { selectItemsSelList } from '@/api/system/business/items';
|
|
|
import { selectBlindLevelsById } from '@/api/system/business/levels';
|
|
import { selectBlindLevelsById } from '@/api/system/business/levels';
|
|
|
import { selectBlingStructuresInfo } from '@/api/system/business/structures';
|
|
import { selectBlingStructuresInfo } from '@/api/system/business/structures';
|
|
|
-import { listClaims, deleteClaim } from '@/api/system/business/claims';
|
|
|
|
|
|
|
+import { listClaims, deleteClaim ,auditSendReward } from '@/api/system/business/claims';
|
|
|
import { TournamentsVO, TournamentsQuery, TournamentsForm, TournamentsBindStructuresVO } from '@/api/system/business/tournaments/types';
|
|
import { TournamentsVO, TournamentsQuery, TournamentsForm, TournamentsBindStructuresVO } from '@/api/system/business/tournaments/types';
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
import LevelsIndex from '@/views/system/business/levels/index.vue';
|
|
import LevelsIndex from '@/views/system/business/levels/index.vue';
|
|
@@ -1056,8 +1056,7 @@ const tournamentInfo = ref<Partial<TournamentsVO>>({
|
|
|
blindStructuresName: '',
|
|
blindStructuresName: '',
|
|
|
lateRegistrationLevel: 0,
|
|
lateRegistrationLevel: 0,
|
|
|
tournamentsBiId: '',
|
|
tournamentsBiId: '',
|
|
|
- signNum: 0,
|
|
|
|
|
-
|
|
|
|
|
|
|
+ signNum: 0
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const auditData = ref<ClaimsVO[]>([]);
|
|
const auditData = ref<ClaimsVO[]>([]);
|
|
@@ -1154,6 +1153,28 @@ const confirmRemove = async () => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+// 审核操作
|
|
|
|
|
+const handleAudit = async (row: ClaimsVO) => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ await ElMessageBox.confirm('确定要审核该记录吗?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 用户点击了【确定】
|
|
|
|
|
+ await auditSendReward(row); // 调用接口,假设接口接受 id 参数
|
|
|
|
|
+ ElMessage.success('审核成功');
|
|
|
|
|
+ getList(); // 刷新列表
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ if (error === 'cancel') {
|
|
|
|
|
+ ElMessage.info('已取消审核');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage.error('审核失败');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
const handleViewLevelsSee = (tournamentsVO: TournamentsVO | undefined | null) => {
|
|
const handleViewLevelsSee = (tournamentsVO: TournamentsVO | undefined | null) => {
|
|
|
if (!tournamentsVO || !tournamentsVO.blindStructureId) {
|
|
if (!tournamentsVO || !tournamentsVO.blindStructureId) {
|
|
|
proxy?.$modal.msgWarning('该赛事未绑定盲注表');
|
|
proxy?.$modal.msgWarning('该赛事未绑定盲注表');
|