|
@@ -33,7 +33,7 @@
|
|
|
<template #default="{ row }">
|
|
|
<el-link :underline="false" type="primary" size="mini" @click="toView(row)" style="margin-right: 10px">查看</el-link>
|
|
|
<el-link v-if="row.status == '-1'" :underline="false" type="warning" size="mini" @click="toEdit(row)" style="margin-right: 10px">重新提交</el-link>
|
|
|
- <el-link v-if="row.ext_status == '5'" :underline="false" type="primary" size="mini" @click="toFinals(row)">决赛时间确认</el-link>
|
|
|
+ <el-link v-if="row.ext_status == '5' && row.final_start_time" :underline="false" type="primary" size="mini" @click="toFinals(row)">决赛时间确认</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -148,12 +148,12 @@
|
|
|
</el-descriptions>
|
|
|
</div>
|
|
|
<div v-if="dialog.type == '3'">
|
|
|
- <el-descriptions :column="1" :size="size" border>
|
|
|
- <el-descriptions-item label="参加决赛时间"> kooriookami </el-descriptions-item>
|
|
|
+ <el-descriptions :column="2" :size="size" border>
|
|
|
+ <el-descriptions-item label="参加决赛时间"> {{ form.final_start_time }} </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="备注"> 如需调整参加决赛时间请线下联系主办方由主办方进行修改 </el-descriptions-item>
|
|
|
<el-descriptions-item label="操作">
|
|
|
<el-button type="primary" @click="toSign('0')">确认参加</el-button>
|
|
|
- <el-button type="warning" @click="toSign('1')">调整时间</el-button>
|
|
|
- <el-button type="danger" @click="toSign('2')">放弃参加</el-button>
|
|
|
+ <el-button type="danger" @click="toSign('1')">放弃参加</el-button>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</div>
|
|
@@ -178,7 +178,9 @@ const user = computed({
|
|
|
})
|
|
|
// 接口
|
|
|
import { MatchRegStore } from '@/store/api/platform/matchReg'
|
|
|
+import { MatchExtStore } from '@/store/api/platform/matchExt'
|
|
|
const store = MatchRegStore()
|
|
|
+const matchExtStore = MatchExtStore()
|
|
|
// 列表
|
|
|
const list = ref([])
|
|
|
let skip = 0
|
|
@@ -330,12 +332,9 @@ const toSign = (type) => {
|
|
|
if (type == '0') {
|
|
|
// 确认参加
|
|
|
title = '此操作将确认参加该决赛, 是否继续?'
|
|
|
- } else if (type == '1') {
|
|
|
- // 调整时间
|
|
|
- title = '此操作将调整参加决赛的时间,由主办方与您沟通调整时间, 是否继续?'
|
|
|
} else {
|
|
|
// 放弃参加
|
|
|
- title = '此操作将放弃参加该决赛, 是否继续?'
|
|
|
+ title = '此操作将确认放弃参加决赛, 是否继续?'
|
|
|
}
|
|
|
ElMessageBox.confirm(title, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -343,11 +342,15 @@ const toSign = (type) => {
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(async () => {
|
|
|
- ElMessage({
|
|
|
- type: 'success',
|
|
|
- message: '操作成功'
|
|
|
- })
|
|
|
- toClose()
|
|
|
+ let res
|
|
|
+ if (type == '0') {
|
|
|
+ res = await matchExtStore.step5Confirm(form.value.match_id)
|
|
|
+ } else {
|
|
|
+ res = await matchExtStore.step5Refuse(form.value.match_id)
|
|
|
+ }
|
|
|
+ if ($checkRes(res, true)) {
|
|
|
+ toClose()
|
|
|
+ }
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
}
|