|
@@ -160,95 +160,6 @@
|
|
|
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
</el-card>
|
|
</el-card>
|
|
- <!-- 添加或修改赛事基本信息对话框 -->
|
|
|
|
- <!-- <el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
|
|
|
- <el-form ref="gameEventFormRef" :model="form" :rules="rules" label-width="80px">
|
|
|
|
- <el-form-item label="赛事编号" prop="eventCode">
|
|
|
|
- <el-input v-model="form.eventCode" placeholder="请输入赛事编号" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="赛事名称" prop="eventName">
|
|
|
|
- <el-input v-model="form.eventName" placeholder="请输入赛事名称" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="赛事类型" prop="eventType">
|
|
|
|
- <el-select v-model="form.eventType" placeholder="请选择赛事类型">
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in game_event_type"
|
|
|
|
- :key="dict.value"
|
|
|
|
- :label="dict.label"
|
|
|
|
- :value="dict.value"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="举办地点" prop="location">
|
|
|
|
- <el-input v-model="form.location" placeholder="请输入举办地点" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="用途" prop="purpose">
|
|
|
|
- <el-select v-model="form.purpose" placeholder="请选择用途">
|
|
|
|
- <el-option
|
|
|
|
- v-for="dict in game_event_purpose"
|
|
|
|
- :key="dict.value"
|
|
|
|
- :label="dict.label"
|
|
|
|
- :value="dict.value"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="开始时间" prop="startTime">
|
|
|
|
- <el-date-picker clearable
|
|
|
|
- v-model="form.startTime"
|
|
|
|
- type="datetime"
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
- placeholder="请选择开始时间">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="结束时间" prop="endTime">
|
|
|
|
- <el-date-picker clearable
|
|
|
|
- v-model="form.endTime"
|
|
|
|
- type="datetime"
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
- placeholder="请选择结束时间">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="赛事链接" prop="eventUrl">
|
|
|
|
- <image-upload v-model="form.eventUrl"/>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="裁判码" prop="refereeUrl">
|
|
|
|
- <image-upload v-model="form.refereeUrl"/>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="签到码" prop="registerUrl">
|
|
|
|
- <image-upload v-model="form.registerUrl"/>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="举办单位" prop="unit">
|
|
|
|
- <el-input v-model="form.unit" placeholder="请输入举办单位" />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="是否默认赛事" prop="isDefault">
|
|
|
|
- <el-radio-group v-model="form.isDefault">
|
|
|
|
- <el-radio
|
|
|
|
- v-for="dict in sys_yes_no"
|
|
|
|
- :key="dict.value"
|
|
|
|
- :value="dict.value"
|
|
|
|
- >{{dict.label}}</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="状态" prop="status">
|
|
|
|
- <el-radio-group v-model="form.status">
|
|
|
|
- <el-radio
|
|
|
|
- v-for="dict in game_event_status"
|
|
|
|
- :key="dict.value"
|
|
|
|
- :value="dict.value"
|
|
|
|
- >{{dict.label}}</el-radio>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="备注" prop="remark">
|
|
|
|
- <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <template #footer>
|
|
|
|
- <div class="dialog-footer">
|
|
|
|
- <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </el-dialog> -->
|
|
|
|
<!-- 注册 RefereeForm 组件 -->
|
|
<!-- 注册 RefereeForm 组件 -->
|
|
<RefereeForm ref="refereeFormRef" />
|
|
<RefereeForm ref="refereeFormRef" />
|
|
<!-- 排行榜对话框 -->
|
|
<!-- 排行榜对话框 -->
|
|
@@ -555,4 +466,17 @@ const openRankingBoard = (eventId: string) => {
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getList();
|
|
getList();
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+// 监听路由变化,当从编辑页返回时检查是否需要刷新列表
|
|
|
|
+onActivated(() => {
|
|
|
|
+ // 检查是否有需要刷新的标识
|
|
|
|
+ const needRefresh = sessionStorage.getItem('needRefreshGameEventList');
|
|
|
|
+ if (needRefresh === 'true') {
|
|
|
|
+ // 清除标识
|
|
|
|
+ sessionStorage.removeItem('needRefreshGameEventList');
|
|
|
|
+ // 刷新列表数据
|
|
|
|
+ getList();
|
|
|
|
+ }
|
|
|
|
+});
|
|
|
|
+
|
|
</script>
|
|
</script>
|