feat(competition): 支持决赛环节并添加加时赛管理功能

- 扩展竞赛环节类型,支持决赛环节(RoundType=3)
- 新增加时赛创建功能,支持多分组队伍选择
- 添加题目库禁用/启用功能,支持批量操作
- 优化用户端竞赛流程,区分常规赛和加时赛
- 重构操作按钮组件,提高代码复用性
This commit is contained in:
2026-03-09 17:34:40 +08:00
parent 8469e16638
commit 11fb5481d3
22 changed files with 468 additions and 142 deletions

View File

@ -25,7 +25,7 @@ export function useRouterPush(inSetup = true) {
* @param key 路由名称
* @param options 路由参数
*/
async function routerPushByKey(key: RouteKey, options?: App.Global.RouterPushOptions) {
async function routerPushByKey(key: RouteKey, options?: App.Global.RouterPushOptions, newWindow?: boolean) {
const { query, params } = options || {}
const routeLocation: RouteLocationRaw = {
@ -40,7 +40,13 @@ export function useRouterPush(inSetup = true) {
routeLocation.params = params
}
return routerPush(routeLocation)
if (newWindow) {
const routeData = router.resolve(routeLocation)
window.open(routeData.href, '_blank')
}
else {
return routerPush(routeLocation)
}
}
/**