fix(business-loop): complete arbitration balance refund, withdrawal rejection compensation, admin activity takedown, and companion violation alerts

这个提交包含在:
xcbyy
2026-10-13 17:18:11 +08:00
父节点 9e2c19088b
当前提交 173835dc4e
共有 5 个文件被更改,包括 168 次插入 和 22 次删除

查看文件

@@ -119,7 +119,7 @@
</div>
</template>
</a-table-column>
<a-table-column title="操作" :width="190" fixed="right">
<a-table-column title="操作" :width="260" fixed="right">
<template #cell="{ record }">
<a-space>
<a-button
@@ -136,6 +136,17 @@
>
追加赏金
</a-button>
<a-popconfirm
v-if="record.status !== 'CANCELLED' && record.status !== 'FINISHED'"
content="确定要违规下架该组局吗?下架后将自动原路退款已报名成员。"
type="warning"
@ok="handleCancelActivity(record)"
>
<a-button type="text" status="danger" size="small">
违规下架
</a-button>
</a-popconfirm>
<span v-else style="color: var(--color-text-4); font-size: 12px">已结案/已下架</span>
</a-space>
</template>
</a-table-column>
@@ -351,6 +362,19 @@
}
};
const handleCancelActivity = async (record: any) => {
try {
await axios.post(`/api/activities/${record.id}/cancel`, {
hostId: record.creatorId || 1001,
reason: '平台风控巡查违规下架退款',
});
Message.success('组局已违规下架,已报名搭子款项已全额原路退还');
fetchData();
} catch (err: any) {
Message.error(err.response?.data?.message || err.message || '下架失败');
}
};
onMounted(() => {
fetchData();
});

查看文件

@@ -109,11 +109,14 @@
</div>
</template>
</a-table-column>
<a-table-column title="履约声誉" :width="140">
<a-table-column title="履约声誉" :width="150">
<template #cell="{ record }">
<div style="font-weight: 600; color: #ff7d00">
<icon-star-fill style="margin-right: 4px; color: #ff7d00" />
{{ record.rating }} 分
{{ Number(record.rating).toFixed(1) }} 分
</div>
<div v-if="Number(record.rating) < 4.5" style="margin-top: 2px">
<a-tag size="small" color="red">违规扣分警示</a-tag>
</div>
<div style="font-size: 12px; color: var(--color-text-3)">
已接 {{ record.orderCount }} 单