Jelajahi Sumber

fix(tournaments): 清除延迟注册级别字段值- 在盲注结构变更时重置延迟注册级别为null
- 移除了模板中的多余空行和注释代码- 优化了图片预览对话框的显示逻辑

fugui001 2 bulan lalu
induk
melakukan
982baff551

+ 1 - 0
src/views/system/business/tournaments/index.vue

@@ -749,6 +749,7 @@ const itemOptionsStructuresLevel = ref<{ id: number; label: string }[]>([]);
 
 // 加载报名条件选项
 const handleBlindStructureChange = async (value: number) => {
+  data.form.lateRegistrationLevel = null;
   try {
     const res = await selectBlindLevelsById(value);
     if (res.code === 200) {

+ 1 - 3
src/views/system/business/tournamentsTemplate/index.vue

@@ -222,8 +222,6 @@
           </div>
         </el-form-item>
 
-
-
         <!-- 开始时间 -->
         <!--        <el-form-item label="开始时间" prop="startTime">
           <el-date-picker
@@ -398,7 +396,6 @@
     <el-dialog v-model="dialogVisible2" title="图片预览" width="50%">
       <img :src="previewSrc2 || iconPreviewUrl2 || competitionBg" alt="预览图片" style="max-width: 100%; max-height: 80vh" />
     </el-dialog>
-
   </div>
 </template>
 
@@ -534,6 +531,7 @@ const itemOptionsStructuresLevel = ref<{ id: number; label: string }[]>([]);
 
 // 加载报名条件选项
 const handleBlindStructureChange = async (value: number) => {
+  data.form.lateRegistrationLevel = null;
   try {
     const res = await selectBlindLevelsById(value);
     if (res.code === 200) {