|
@@ -41,6 +41,14 @@
|
|
|
i.label
|
|
|
}}</el-radio>
|
|
|
</template>
|
|
|
+ <template #industry>
|
|
|
+ <el-option
|
|
|
+ v-for="i in industryList"
|
|
|
+ :key="i._id"
|
|
|
+ :label="i.label"
|
|
|
+ :value="i.value"
|
|
|
+ ></el-option>
|
|
|
+ </template>
|
|
|
<template #type>
|
|
|
<el-option
|
|
|
v-for="i in typeList"
|
|
@@ -178,11 +186,13 @@ const statusList = ref([])
|
|
|
const typeList = ref([])
|
|
|
const matchList = ref([])
|
|
|
const formList = ref([])
|
|
|
+const industryList = ref([])
|
|
|
// 加载中
|
|
|
const loading = ref(false)
|
|
|
const formFields = ref([
|
|
|
{ label: t('pages.match.name'), model: 'name' },
|
|
|
{ label: t('pages.match.type'), model: 'type', type: 'select' },
|
|
|
+ { label: t('pages.match.industry'), model: 'industry', type: 'select' },
|
|
|
{ label: t('pages.match.form'), model: 'form', type: 'select' },
|
|
|
{ label: t('pages.match.money'), model: 'money' },
|
|
|
{ label: t('pages.match.time'), model: 'time', type: 'daterange' },
|
|
@@ -241,6 +251,9 @@ const searchOther = async () => {
|
|
|
// 赛事状态
|
|
|
result = await dictDataStore.query({ code: 'matchStatus', is_use: '0' })
|
|
|
if ($checkRes(result)) matchList.value = result.data
|
|
|
+ // 赛事行业
|
|
|
+ result = await dictDataStore.query({ code: 'matchIndustry', is_use: '0' })
|
|
|
+ if ($checkRes(result)) industryList.value = result.data
|
|
|
}
|
|
|
const search = async (query = { skip: 0, limit }) => {
|
|
|
const info = { skip: query.skip, limit: query.limit, ...searchForm.value }
|