赛事报名,去报名判断和序号问题
This commit is contained in:
parent
d0e2cfd225
commit
4276180a08
@ -306,7 +306,7 @@ const tableRef = ref();
|
|||||||
const initParam = ref({ refresh: true });
|
const initParam = ref({ refresh: true });
|
||||||
|
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
{ type: 'index', label: '序号', align: 'center', width: 70 },
|
{ type: 'index', label: '序号', align: 'center', width: 70, fixed: 'left' },
|
||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: '赛事名称',
|
label: '赛事名称',
|
||||||
@ -408,9 +408,11 @@ const eventStatusTagType = (status) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const isEventEnrolling = (row) => {
|
const isEventEnrolling = (row) => {
|
||||||
// 用户端“去报名”只对报名中开放
|
// 用户端"去报名"只对报名中开放,同时需要用户通过商户认证
|
||||||
const s = row?.status ?? row?.eventStatus;
|
const s = row?.status ?? row?.eventStatus;
|
||||||
return s === 'Enrolling' || s === 'enrolling' || s === 0 || s === '0';
|
const isEnrolling = s === 'Enrolling' || s === 'enrolling' || s === 0 || s === '0';
|
||||||
|
const canRegister = row?.canRegister ?? row?.CanRegister ?? false;
|
||||||
|
return isEnrolling && canRegister;
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------- 赛事详情 --------------------
|
// -------------------- 赛事详情 --------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user