zs 1 год назад
Родитель
Сommit
e1d1f206ed
2 измененных файлов с 14 добавлено и 0 удалено
  1. 1 0
      src/lang/package/zh-cn/pages.js
  2. 13 0
      src/views/match/info/index.vue

+ 1 - 0
src/lang/package/zh-cn/pages.js

@@ -135,6 +135,7 @@ export default {
     examDialogTitle: '审核赛事',
     name: '赛事名称',
     type: '赛事类型',
+    industry: '赛事行业',
     form: '类别',
     file: '封面',
     time: '有效期',

+ 13 - 0
src/views/match/info/index.vue

@@ -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 }