|
|
@@ -79,12 +79,32 @@
|
|
|
<dict-tag :options="sys_user_sex" :value="scope.row.gender" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="个人成绩" align="center" prop="individualPerformance" />
|
|
|
+ <el-table-column label="个人成绩" align="center" prop="individualPerformance">
|
|
|
+ <template #default="scope">
|
|
|
+ <span>{{ scope.row.individualPerformance }}</span>
|
|
|
+ <span v-if="scope.row.individualPerformance !== '--'" style="margin-left: 4px; font-size: 12px; color: #999;">
|
|
|
+ {{
|
|
|
+ projectInfo.scoreRule === '1' ? '秒' :
|
|
|
+ (['2', '6', '7'].includes(projectInfo.scoreRule) ? '米' : projectInfo.countUnit)
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</template>
|
|
|
|
|
|
<!-- 团体项目显示队伍信息 -->
|
|
|
<template v-else>
|
|
|
- <el-table-column label="团队成绩" align="center" prop="teamPerformance" />
|
|
|
+ <el-table-column label="团队成绩" align="center" prop="teamPerformance">
|
|
|
+ <template #default="scope">
|
|
|
+ <span>{{ scope.row.teamPerformance }}</span>
|
|
|
+ <span v-if="scope.row.teamPerformance !== '--'" style="margin-left: 4px; font-size: 12px; color: #999;">
|
|
|
+ {{
|
|
|
+ projectInfo.scoreRule === '1' ? '秒' :
|
|
|
+ (['2', '6', '7'].includes(projectInfo.scoreRule) ? '米' : projectInfo.countUnit)
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</template>
|
|
|
|
|
|
<el-table-column label="积分" align="center" sortable prop="scorePoint" />
|
|
|
@@ -115,7 +135,12 @@
|
|
|
<div v-for="(item, index) in scoreDetails" :key="index" style="margin-bottom: 10px; display: flex; align-items: center;">
|
|
|
<span style="width: 80px;">第 {{ index + 1 }} 轮:</span>
|
|
|
<el-input-number v-model="item.performanceValue" :precision="3" :step="0.1" style="flex: 1" />
|
|
|
- <span style="margin-left: 8px; color: #666; width: 30px;">{{ projectInfo.countUnit || (projectInfo.scoreRule === '1' ? '秒' : '') }}</span>
|
|
|
+ <span style="margin-left: 8px; color: #666; width: 30px;">
|
|
|
+ {{
|
|
|
+ projectInfo.scoreRule === '1' ? '秒' :
|
|
|
+ (['2', '6', '7'].includes(projectInfo.scoreRule) ? '米' : projectInfo.countUnit)
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -139,6 +164,7 @@
|
|
|
:placeholder="projectInfo.scoreRule === '1' ? '支持输入秒数或 00:00.00 格式' : '输入成绩'"
|
|
|
>
|
|
|
<template #append v-if="projectInfo.scoreRule === '1'">秒</template>
|
|
|
+ <template #append v-else-if="['2', '6', '7'].includes(projectInfo.scoreRule)">米</template>
|
|
|
<template #append v-else-if="projectInfo.countUnit">{{ projectInfo.countUnit }}</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -169,7 +195,11 @@
|
|
|
</el-input>
|
|
|
<div v-else style="display: flex; align-items: center;">
|
|
|
<el-input-number v-model="form.teamPerformance" :precision="3" style="flex: 1" />
|
|
|
- <span style="margin-left: 8px; color: #666;">{{ projectInfo.countUnit }}</span>
|
|
|
+ <span style="margin-left: 8px; color: #666;">
|
|
|
+ {{
|
|
|
+ ['2', '6', '7'].includes(projectInfo.scoreRule) ? '米' : projectInfo.countUnit
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</template>
|