|
@@ -22,7 +22,8 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" label="操作" width="180">
|
|
<el-table-column align="center" label="操作" width="180">
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
- <el-link :underline="false" v-if="row.status != '1'" type="primary" size="mini" @click="toEdit(row)" style="margin-right: 10px">修改报名信息</el-link>
|
|
|
|
|
|
+ <el-link :underline="false" type="primary" size="mini" @click="toView(row)" style="margin-right: 10px">查看活动</el-link>
|
|
|
|
+ <el-link :underline="false" v-if="row.status != '1'" type="warning" size="mini" @click="toEdit(row)" style="margin-right: 10px">修改报名信息</el-link>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -104,6 +105,8 @@ const store = SignStore()
|
|
const dictDataStore = DictDataStore()
|
|
const dictDataStore = DictDataStore()
|
|
// 加载中
|
|
// 加载中
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
|
|
+// 路由
|
|
|
|
+const router = useRouter()
|
|
// 列表
|
|
// 列表
|
|
const list = ref([])
|
|
const list = ref([])
|
|
let skip = 0
|
|
let skip = 0
|
|
@@ -188,6 +191,10 @@ const toEdit = (data) => {
|
|
form.value = data
|
|
form.value = data
|
|
dialog.value = { type: '1', show: true, title: '修改报名信息' }
|
|
dialog.value = { type: '1', show: true, title: '修改报名信息' }
|
|
}
|
|
}
|
|
|
|
+// 查看赛事
|
|
|
|
+const toView = (item) => {
|
|
|
|
+ router.push({ path: '/match/detail', query: { id: item.match } })
|
|
|
|
+}
|
|
// 报名
|
|
// 报名
|
|
const submitForm = async (formEl) => {
|
|
const submitForm = async (formEl) => {
|
|
if (!formEl) return
|
|
if (!formEl) return
|