Browse Source

修改上传条件

zs 8 months ago
parent
commit
48f81922b7
3 changed files with 13 additions and 2 deletions
  1. 3 1
      src/lang/package/zh-cn/pages.js
  2. 1 1
      src/utils/file.js
  3. 9 0
      src/views/match/info/index.vue

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

@@ -198,7 +198,9 @@ export default {
     examDialogTitle: '审核赛事',
     examDialogTitle: '审核赛事',
     name: '赛事名称',
     name: '赛事名称',
     tags: '标签',
     tags: '标签',
-    type: '赛事类型',
+    type: '类型',
+    match_type: '赛事类型',
+    href: '路由',
     work: '组织单位',
     work: '组织单位',
     industry: '所属产业',
     industry: '所属产业',
     form: '类别',
     form: '类别',

+ 1 - 1
src/utils/file.js

@@ -16,7 +16,7 @@ export async function uploadFileApi(file) {
   if (token) axios.defaults.headers.common['token'] = token
   if (token) axios.defaults.headers.common['token'] = token
   if (apiToken) axios.defaults.headers.common['api-token'] = apiToken
   if (apiToken) axios.defaults.headers.common['api-token'] = apiToken
   return await axios.request({
   return await axios.request({
-    url: '/web/template_wangEditor/upload',
+    url: '/web/cxyy_wangEditor/upload',
     method: 'post',
     method: 'post',
     data: formData,
     data: formData,
     headers: {
     headers: {

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

@@ -31,6 +31,9 @@
             <template #match_status>
             <template #match_status>
               <el-option v-for="i in matchList" :key="i.id" :label="i.label" :value="i.value"></el-option>
               <el-option v-for="i in matchList" :key="i.id" :label="i.label" :value="i.value"></el-option>
             </template>
             </template>
+            <template #match_type>
+              <el-radio v-for="i in matchTypeList" :key="i.id" :label="i.value">{{ i.label }}</el-radio>
+            </template>
             <template #type>
             <template #type>
               <el-option v-for="i in typeList" :key="i.id" :label="i.label" :value="i.value"></el-option>
               <el-option v-for="i in typeList" :key="i.id" :label="i.label" :value="i.value"></el-option>
             </template>
             </template>
@@ -159,6 +162,7 @@ const matchList = ref([])
 const formList = ref([])
 const formList = ref([])
 const tagsList = ref([])
 const tagsList = ref([])
 const sectorList = ref([])
 const sectorList = ref([])
+const matchTypeList = ref([])
 // 多选列表
 // 多选列表
 const selectList = ref([])
 const selectList = ref([])
 // 加载中
 // 加载中
@@ -168,6 +172,8 @@ const formFields = ref([
   { label: t('pages.match.name'), model: 'name' },
   { label: t('pages.match.name'), model: 'name' },
   { label: t('pages.match.tags'), model: 'tags', custom: true },
   { label: t('pages.match.tags'), model: 'tags', custom: true },
   { label: t('pages.match.type'), model: 'type', type: 'select' },
   { label: t('pages.match.type'), model: 'type', type: 'select' },
+  { label: t('pages.match.match_type'), model: 'match_type', type: 'radio' },
+  { label: t('pages.match.href'), model: 'href' },
   { label: t('pages.match.work'), model: 'work' },
   { label: t('pages.match.work'), model: 'work' },
   { label: t('pages.match.industry'), model: 'industry', type: 'select' },
   { label: t('pages.match.industry'), model: 'industry', type: 'select' },
   { label: t('pages.match.form'), model: 'form', type: 'select' },
   { label: t('pages.match.form'), model: 'form', type: 'select' },
@@ -220,6 +226,9 @@ const searchOther = async () => {
   // 类型
   // 类型
   result = await dictDataStore.query({ code: 'matchType', is_use: '0' })
   result = await dictDataStore.query({ code: 'matchType', is_use: '0' })
   if ($checkRes(result)) typeList.value = result.data
   if ($checkRes(result)) typeList.value = result.data
+  // 赛事类型
+  result = await dictDataStore.query({ code: 'activeType', is_use: '0' })
+  if ($checkRes(result)) matchTypeList.value = result.data
   // 类别
   // 类别
   result = await dictDataStore.query({ code: 'matchForm', is_use: '0' })
   result = await dictDataStore.query({ code: 'matchForm', is_use: '0' })
   if ($checkRes(result)) formList.value = result.data
   if ($checkRes(result)) formList.value = result.data