Explorar el Código

feat(gameScore): 调整表格列顺序并添加性别字段

- 将"队伍名称"和"项目"列的位置进行调换,使数据显示更合理
- 在个人项目中添加性别字段显示,并使用字典标签渲染
- 引入sys_user_sex字典用于性别数据展示
zhou hace 3 semanas
padre
commit
fc012bcbda
Se han modificado 1 ficheros con 9 adiciones y 4 borrados
  1. 9 4
      src/views/system/gameScore/gameScoreEdit.vue

+ 9 - 4
src/views/system/gameScore/gameScoreEdit.vue

@@ -44,18 +44,23 @@
         <el-table-column type="selection" width="55" align="center" />
         <el-table-column label="序号" align="center" type="index" />
         <el-table-column label="队伍编号" align="center" prop="teamCode" />
-        <el-table-column label="项目" align="center" prop="projectName" />
+        <el-table-column label="队伍名称" align="center" prop="teamName" />
         <el-table-column label="项目类型" align="center" prop="projectType" >
           <template #default="scope">
             <dict-tag :options="game_project_type" :value="scope.row.projectType" />
           </template>
         </el-table-column>
-        <el-table-column label="队伍名称" align="center" prop="teamName" />
+        <el-table-column label="项目" align="center" prop="projectName" />
         
         <!-- 个人项目显示运动员信息 -->
         <template v-if="projectClassification === '0'">
-          <el-table-column label="姓名" align="center" prop="name" />
           <el-table-column label="号码" align="center" prop="athleteCode" />
+          <el-table-column label="姓名" align="center" prop="name" />
+          <el-table-column label="姓名" align="center" prop="gender" >
+            <template #default="scope">
+              <dict-tag :options="sys_user_sex" :value="scope.row.gender" />
+            </template>
+          </el-table-column>
           <el-table-column label="个人成绩" align="center" prop="individualPerformance" />
         </template>
         
@@ -136,7 +141,7 @@ import Pagination from '@/components/Pagination/index.vue';
 import type { ComponentInternalInstance } from 'vue';
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
-const { game_project_type } = toRefs<any>(proxy?.useDict('game_project_type'));
+const { game_project_type, sys_user_sex } = toRefs<any>(proxy?.useDict('game_project_type', 'sys_user_sex'));
 
 const route = useRoute();
 const buttonLoading = ref(false);