Преглед на файлове

修改赛事规模视频

zs преди 8 месеца
родител
ревизия
9a9de77287
променени са 3 файла, в които са добавени 18 реда и са изтрити 1 реда
  1. 2 0
      src/lang/package/zh-cn/pages.js
  2. 4 1
      src/views/footplate/index.vue
  3. 12 0
      src/views/match/info/index.vue

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

@@ -203,6 +203,8 @@ export default {
     tags: '标签',
     type: '类型',
     match_type: '赛事类型',
+    scale: '赛事规模',
+    video: '活动视频',
     href: '外部链接',
     work: '组织单位',
     industry: '所属产业',

+ 4 - 1
src/views/footplate/index.vue

@@ -33,6 +33,9 @@
                 <el-option v-for="item in tagsList" :key="item.id" :label="item.title" :value="item.title" />
               </el-select>
             </template>
+            <template #brief>
+              <WangEditor v-model="form.brief" />
+            </template>
           </custom-form>
         </el-col>
         <el-col :span="24" v-if="dialog.type == '2'">
@@ -110,7 +113,7 @@ const formFields = ref([
   { label: t('pages.footplate.contacts'), model: 'contacts' },
   { label: t('pages.footplate.phone'), model: 'phone' },
   { label: t('pages.footplate.is_use'), model: 'is_use', type: 'radio' },
-  { label: t('pages.footplate.brief'), model: 'brief', type: 'textarea' }
+  { label: t('pages.footplate.brief'), model: 'brief', custom: true }
 ])
 const rules = reactive({ name: [{ required: true, message: t('pages.footplate.titleMessage'), trigger: 'blur' }] })
 const dialog = ref({ type: '1', show: false, title: t('pages.footplate.addDialogTitle') })

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

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