赛事页面bug
This commit is contained in:
parent
3f71d2c19f
commit
f865c0b020
@ -217,8 +217,8 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.preview-area {
|
||||
width: 280px;
|
||||
height: 200px;
|
||||
width: 178px;
|
||||
height: 178px;
|
||||
border: 1px solid var(--el-border-color);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
@ -246,12 +246,17 @@ onMounted(() => {
|
||||
|
||||
<style>
|
||||
.avatar-uploader .el-upload {
|
||||
width: 178px;
|
||||
height: 178px;
|
||||
border: 1px dashed var(--el-border-color);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: var(--el-transition-duration-fast);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.avatar-uploader .el-upload:hover {
|
||||
@ -264,6 +269,9 @@ onMounted(() => {
|
||||
width: 178px;
|
||||
height: 178px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -271,8 +279,14 @@ onMounted(() => {
|
||||
.upload-placeholder {
|
||||
color: #8c939d;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
.cert-form {
|
||||
background: var(--el-bg-color);
|
||||
padding: 24px;
|
||||
|
||||
@ -132,8 +132,7 @@
|
||||
{{ scope.row.projectTypeName }}
|
||||
</template>
|
||||
<template #completionCount="scope">
|
||||
{{ scope.row.projectTypeId == '1003' || scope.row.projectTypeId == '1004' ? 1 :
|
||||
scope.row.completionCount }}
|
||||
{{ scope.row.completionCount }}
|
||||
</template>
|
||||
</ProTable>
|
||||
<template #footer>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<div style="height:50px;"></div>
|
||||
<Step3ProjectConfig v-model:modelValue="formData.projectConfig" :readonly="true" />
|
||||
<div style="height:50px;"></div>
|
||||
<Step4FeeConfig v-model:modelValue="formData.feeConfig" :readonly="true" />
|
||||
<Step4FeeConfig v-model:modelValue="formData.feeConfig" :readonly="true" :projects="formData.projectConfig.projects" />
|
||||
<div style="height:100px;"></div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="报名管理" name="second">
|
||||
@ -79,11 +79,8 @@
|
||||
<el-descriptions-item label="类型:">{{ item.projectType }}</el-descriptions-item>
|
||||
<el-descriptions-item label="时长:">{{ item.totalDurationMinutes }}:{{ item.durationSeconds
|
||||
}}</el-descriptions-item>
|
||||
<!-- <el-descriptions-item label="费用">{{ item.fee }}</el-descriptions-item> -->
|
||||
<el-descriptions-item :label="`组别${idx + 1}:`" v-for="(group, idx) in item.groups">
|
||||
<el-tag>{{ group.groupName }}</el-tag>
|
||||
<!-- <span style="margin: 0 10px;">{{ group.birthDateStart }} -- {{ group.birthDateEnd
|
||||
}}</span> -->
|
||||
<span style="margin: 0 70px;">参与人数: {{ group.participantCount }}</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
@ -225,6 +222,8 @@ const formData = ref({
|
||||
creditCode: '',
|
||||
bankName: '',
|
||||
accountNumber: '',
|
||||
businessLicenseUrl: '',
|
||||
projectPrices: {},
|
||||
},
|
||||
});
|
||||
// 打开弹窗
|
||||
|
||||
@ -18,8 +18,7 @@
|
||||
</template>
|
||||
|
||||
<template #completionCount="scope">
|
||||
{{ scope.row.projectTypeId == '1003' || scope.row.projectTypeId == '1004' ? 1 :
|
||||
scope.row.completionCount }}
|
||||
{{ scope.row.completionCount }}
|
||||
</template>
|
||||
|
||||
<template #action="scope">
|
||||
|
||||
@ -814,15 +814,6 @@ const toggleGroupSelection = (id) => {
|
||||
if (idx >= 0) {
|
||||
selectedGroupIds.value.splice(idx, 1);
|
||||
} else {
|
||||
// 检查是否已经选择了其他项目的组别
|
||||
const groupToAdd = allGroups.value.find(g => g.id === id);
|
||||
if (groupToAdd && selectedGroupIds.value.length > 0) {
|
||||
const existingProjectId = allGroups.value.find(g => g.id === selectedGroupIds.value[0])?.projectId;
|
||||
if (groupToAdd.projectId !== existingProjectId) {
|
||||
ElMessage.warning('一次报名只能选择一个项目,请先取消已选择的项目');
|
||||
return;
|
||||
}
|
||||
}
|
||||
selectedGroupIds.value.push(id);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user