|
@@ -12,7 +12,7 @@
|
|
</template>
|
|
</template>
|
|
</custom-search-bar>
|
|
</custom-search-bar>
|
|
<custom-button-bar :fields="buttonFields" @add="toAdd" @select="toMoreDelect"></custom-button-bar>
|
|
<custom-button-bar :fields="buttonFields" @add="toAdd" @select="toMoreDelect"></custom-button-bar>
|
|
- <custom-table :data="data" :fields="fields" @query="search" :total="total" :opera="opera" @score="toScore" @preliminary="toPreliminary" @process="toProcess" @sign="toSign" @exam="toExam" @edit="toEdit" @delete="toDelete" @toSelect="toSelect" :select="false">
|
|
|
|
|
|
+ <custom-table :data="data" :fields="fields" @query="search" :total="total" :opera="opera" @ext="toExtOne" @score="toScore" @preliminary="toPreliminary" @process="toProcess" @sign="toSign" @exam="toExam" @edit="toEdit" @delete="toDelete" @toSelect="toSelect" :select="false">
|
|
<template #is_use="{ row }">
|
|
<template #is_use="{ row }">
|
|
<el-tag v-if="row.is_use == '0'" type="success" @click="toUse(row, '1')">启用</el-tag>
|
|
<el-tag v-if="row.is_use == '0'" type="success" @click="toUse(row, '1')">启用</el-tag>
|
|
<el-tag v-else type="info" @click="toUse(row, '0')">禁用</el-tag>
|
|
<el-tag v-else type="info" @click="toUse(row, '0')">禁用</el-tag>
|
|
@@ -307,13 +307,13 @@ const fields = [
|
|
{ label: t('pages.match.tags'), model: 'tags', isSearch: true, format: (i) => getDict(i, 'tags') },
|
|
{ label: t('pages.match.tags'), model: 'tags', isSearch: true, format: (i) => getDict(i, 'tags') },
|
|
{ label: t('pages.match.type'), model: 'type', isSearch: true, type: 'select', format: (i) => getDict(i, 'type') },
|
|
{ label: t('pages.match.type'), model: 'type', isSearch: true, type: 'select', format: (i) => getDict(i, 'type') },
|
|
{ label: t('pages.match.form'), model: 'form', isSearch: true, type: 'select', format: (i) => getDict(i, 'form') },
|
|
{ label: t('pages.match.form'), model: 'form', isSearch: true, type: 'select', format: (i) => getDict(i, 'form') },
|
|
- // { label: t('pages.match.money'), model: 'money' },
|
|
|
|
{ label: t('pages.match.is_use'), model: 'is_use', custom: true, format: (i) => getDict(i, 'is_use') },
|
|
{ label: t('pages.match.is_use'), model: 'is_use', custom: true, format: (i) => getDict(i, 'is_use') },
|
|
{ label: t('pages.match.match_status'), model: 'match_status', format: (i) => getDict(i, 'match') },
|
|
{ label: t('pages.match.match_status'), model: 'match_status', format: (i) => getDict(i, 'match') },
|
|
{ label: t('pages.match.status'), model: 'status', format: (i) => getDict(i, 'status') }
|
|
{ label: t('pages.match.status'), model: 'status', format: (i) => getDict(i, 'status') }
|
|
]
|
|
]
|
|
const opera = [
|
|
const opera = [
|
|
- { label: t('common.preliminary'), method: 'preliminary', display: (i) => i.form === '4' },
|
|
|
|
|
|
+ { label: t('common.preliminary'), method: 'preliminary', display: (i) => i.form === '4' && i.status === '1' },
|
|
|
|
+ { label: t('common.ext'), method: 'ext', display: (i) => i.form === '4' && i.status === '1' },
|
|
{ label: t('common.score'), method: 'score', display: (i) => i.match_status == '2' && i.form != '3' && i.form != '4' },
|
|
{ label: t('common.score'), method: 'score', display: (i) => i.match_status == '2' && i.form != '3' && i.form != '4' },
|
|
{ label: t('common.sign'), method: 'sign', type: 'warning', display: (i) => i.form != '4' },
|
|
{ label: t('common.sign'), method: 'sign', type: 'warning', display: (i) => i.form != '4' },
|
|
{
|
|
{
|
|
@@ -511,7 +511,11 @@ const toMoreDelect = () => {
|
|
const toAdd = () => {
|
|
const toAdd = () => {
|
|
dialog.value = { type: '1', show: true, title: t('pages.match.addDialogTitle') }
|
|
dialog.value = { type: '1', show: true, title: t('pages.match.addDialogTitle') }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+// 赛事设置
|
|
|
|
+const toExtOne = (data) => {
|
|
|
|
+ form.value = data
|
|
|
|
+ window.open(`/cxyyMatch/home/?id=${data.id || data._id}`)
|
|
|
|
+}
|
|
// 修改
|
|
// 修改
|
|
const toEdit = async (data) => {
|
|
const toEdit = async (data) => {
|
|
let res = await store.fetch(data.id)
|
|
let res = await store.fetch(data.id)
|