فهرست منبع

feat(gameAthlete): 添加表格列溢出提示并移除注释代码

- 为参与项目列添加溢出提示功能,当内容超出列宽时显示tooltip
- 移除多余的注释代码,清理无用的表格列定义
zhou 1 ماه پیش
والد
کامیت
42955066df
1فایلهای تغییر یافته به همراه1 افزوده شده و 7 حذف شده
  1. 1 7
      src/views/system/gameAthlete/index.vue

+ 1 - 7
src/views/system/gameAthlete/index.vue

@@ -70,7 +70,7 @@
         </el-table-column>
         <el-table-column label="年龄" align="center" prop="age" v-if="columns[5].visible" />
         <el-table-column label="手机号" align="center" prop="phone" v-if="columns[11].visible" />
-        <el-table-column label="参与项目" align="center" prop="projectList" width="200px" v-if="columns[6].visible">
+        <el-table-column label="参与项目" align="center" prop="projectList" width="200px" :show-overflow-tooltip="true" v-if="columns[6].visible">
           <template #default="scope">
             {{ formatProjectList(scope.row.projectList) }}
           </template>
@@ -81,12 +81,6 @@
             {{ getTeamNameById(scope.row.teamId) }}
           </template>
         </el-table-column>
-        <!-- <el-table-column label="芯片号" align="center" prop="chipCode" v-if="columns[9].visible" /> -->
-        <!-- <el-table-column label="手机号" align="center" prop="phone" v-if="columns[10].visible" /> -->
-        <!-- <el-table-column label="居住地址" align="center" prop="location" v-if="columns[11].visible" /> -->
-        <!-- <el-table-column label="T恤尺码" align="center" prop="tshirtSize" v-if="columns[12].visible" /> -->
-        <!-- <el-table-column label="组别" align="center" prop="groupType" v-if="columns[13].visible" /> -->
-        <!-- <el-table-column label="号码" align="center" prop="number" v-if="columns[14].visible" /> -->
         <el-table-column label="状态" align="center" prop="status" v-if="columns[9].visible" >
           <template #default="scope">
             <dict-tag :options="game_event_status" :value="scope.row.status" />