zs 3 月之前
父節點
當前提交
1a5f493498
共有 2 個文件被更改,包括 9 次插入4 次删除
  1. 1 0
      src/lang/package/zh-cn/common.js
  2. 8 4
      src/views/information/parts/platform/match.vue

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

@@ -11,6 +11,7 @@ export default {
   exam: '审核',
   dict: '字典数据',
   preliminary: '初赛报名名单',
+  ext: '赛事设置',
   sign: '报名',
   score: '分数',
   process: '流程',

+ 8 - 4
src/views/information/parts/platform/match.vue

@@ -12,7 +12,7 @@
       </template>
     </custom-search-bar>
     <custom-button-bar :fields="buttonFields" @add="toAdd" @select="toMoreDelect"></custom-button-bar>
-    <custom-table :data="data" :fields="fields" @query="search" :total="total" :opera="opera" @score="toScore" @preliminary="toPreliminary" @process="toProcess" @sign="toSign" @exam="toExam" @edit="toEdit" @delete="toDelete" @toSelect="toSelect" :select="false">
+    <custom-table :data="data" :fields="fields" @query="search" :total="total" :opera="opera" @ext="toExtOne" @score="toScore" @preliminary="toPreliminary" @process="toProcess" @sign="toSign" @exam="toExam" @edit="toEdit" @delete="toDelete" @toSelect="toSelect" :select="false">
       <template #is_use="{ row }">
         <el-tag v-if="row.is_use == '0'" type="success" @click="toUse(row, '1')">启用</el-tag>
         <el-tag v-else type="info" @click="toUse(row, '0')">禁用</el-tag>
@@ -307,13 +307,13 @@ const fields = [
   { label: t('pages.match.tags'), model: 'tags', isSearch: true, format: (i) => getDict(i, 'tags') },
   { label: t('pages.match.type'), model: 'type', isSearch: true, type: 'select', format: (i) => getDict(i, 'type') },
   { label: t('pages.match.form'), model: 'form', isSearch: true, type: 'select', format: (i) => getDict(i, 'form') },
-  // { label: t('pages.match.money'), model: 'money' },
   { label: t('pages.match.is_use'), model: 'is_use', custom: true, format: (i) => getDict(i, 'is_use') },
   { label: t('pages.match.match_status'), model: 'match_status', format: (i) => getDict(i, 'match') },
   { label: t('pages.match.status'), model: 'status', format: (i) => getDict(i, 'status') }
 ]
 const opera = [
-  { label: t('common.preliminary'), method: 'preliminary', display: (i) => i.form === '4' },
+  { label: t('common.preliminary'), method: 'preliminary', display: (i) => i.form === '4' && i.status === '1' },
+  { label: t('common.ext'), method: 'ext', display: (i) => i.form === '4' && i.status === '1' },
   { label: t('common.score'), method: 'score', display: (i) => i.match_status == '2' && i.form != '3' && i.form != '4' },
   { label: t('common.sign'), method: 'sign', type: 'warning', display: (i) => i.form != '4' },
   {
@@ -511,7 +511,11 @@ const toMoreDelect = () => {
 const toAdd = () => {
   dialog.value = { type: '1', show: true, title: t('pages.match.addDialogTitle') }
 }
-
+// 赛事设置
+const toExtOne = (data) => {
+  form.value = data
+  window.open(`/cxyyMatch/home/?id=${data.id || data._id}`)
+}
 // 修改
 const toEdit = async (data) => {
   let res = await store.fetch(data.id)