|
@@ -19,6 +19,9 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" v-if="dialog.type == '1'">
|
|
|
<custom-form v-model="form" :fields="formFields" :rules="rules" @save="toSave">
|
|
|
+ <template #video>
|
|
|
+ <custom-upload model="video" :list="form.file" :limit="1" url="/files/web/cxyy_match/upload" @change="onUpload"></custom-upload>
|
|
|
+ </template>
|
|
|
<template #file>
|
|
|
<custom-upload model="file" :list="form.file" :limit="1" listType="picture-card" url="/files/web/cxyy_match/upload" @change="onUpload"></custom-upload>
|
|
|
</template>
|
|
@@ -34,6 +37,9 @@
|
|
|
<template #match_status>
|
|
|
<el-option v-for="i in matchList" :key="i.id" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
|
+ <template #scale>
|
|
|
+ <el-radio v-for="i in scaleList" :key="i.id" :label="i.label">{{ i.label }}</el-radio>
|
|
|
+ </template>
|
|
|
<template #match_type>
|
|
|
<el-radio v-for="i in matchTypeList" :key="i.id" :label="i.value">{{ i.label }}</el-radio>
|
|
|
</template>
|
|
@@ -166,6 +172,7 @@ const formList = ref([])
|
|
|
const tagsList = ref([])
|
|
|
const sectorList = ref([])
|
|
|
const matchTypeList = ref([])
|
|
|
+const scaleList = ref([])
|
|
|
// 多选列表
|
|
|
const selectList = ref([])
|
|
|
// 加载中
|
|
@@ -176,6 +183,7 @@ const formFields = ref([
|
|
|
{ label: t('pages.match.tags'), model: 'tags', custom: true },
|
|
|
{ label: t('pages.match.type'), model: 'type', type: 'select' },
|
|
|
{ label: t('pages.match.match_type'), model: 'match_type', type: 'radio' },
|
|
|
+ { label: t('pages.match.scale'), model: 'scale', type: 'radio' },
|
|
|
{ label: t('pages.match.href'), model: 'href', display: () => form.value.match_type == '1' },
|
|
|
{ label: t('pages.match.work'), model: 'work' },
|
|
|
{ label: t('pages.match.industry'), model: 'industry', type: 'select' },
|
|
@@ -187,6 +195,7 @@ const formFields = ref([
|
|
|
{ label: t('pages.match.order_num'), model: 'order_num', type: 'number' },
|
|
|
{ label: t('pages.match.rules'), model: 'rules', custom: true },
|
|
|
{ label: t('pages.match.brief'), model: 'brief', custom: true },
|
|
|
+ { label: t('pages.match.video'), model: 'video', custom: true },
|
|
|
{ label: t('pages.match.match_status'), model: 'match_status', type: 'select' }
|
|
|
])
|
|
|
const rules = reactive({
|
|
@@ -234,6 +243,9 @@ const searchOther = async () => {
|
|
|
// 赛事类型
|
|
|
result = await dictDataStore.query({ code: 'activeType', is_use: '0' })
|
|
|
if ($checkRes(result)) matchTypeList.value = result.data
|
|
|
+ // 赛事规模
|
|
|
+ result = await dictDataStore.query({ code: 'matchScale', is_use: '0' })
|
|
|
+ if ($checkRes(result)) scaleList.value = result.data
|
|
|
// 类别
|
|
|
result = await dictDataStore.query({ code: 'matchForm', is_use: '0' })
|
|
|
if ($checkRes(result)) formList.value = result.data
|