|
|
@@ -78,7 +78,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
- <a-table-column title="学号" :width="120" data-index="lepao_account" ellipsis tooltip :filterable="{
|
|
|
+ <a-table-column title="学号" :width="80" data-index="lepao_account" ellipsis tooltip :filterable="{
|
|
|
filter: (value, record) => (record.lepao_account ?? '').includes(value),
|
|
|
slotName: 'name-filter',
|
|
|
icon: () => h(IconSearch)
|
|
|
@@ -97,42 +97,47 @@
|
|
|
</template>
|
|
|
|
|
|
</a-table-column>
|
|
|
- <a-table-column title="状态" ellipsis tooltip :width="230">
|
|
|
+ <a-table-column title="状态" ellipsis tooltip :width="130">
|
|
|
<template #cell="{ record }">
|
|
|
<div class="state">
|
|
|
- <div class="circle one" v-if="record.result.record_failed_reason === '自动确认有效'"></div>
|
|
|
- <div class="circle else" v-else></div>
|
|
|
- {{ record.result.record_failed_reason }}
|
|
|
+ <div class="state" v-if="record.state === 0"><div class="circle zero"></div>乐跑进行中</div>
|
|
|
+ <div class="state" v-else-if="record.state === 1"><div class="circle one" ></div>乐跑成功</div>
|
|
|
+ <div class="state" v-else><div class="circle else" ></div>乐跑失败</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
<a-table-column title="跑区" :filterable="{
|
|
|
- filter: (value, record) => (record.result.pass_tit ?? '').includes(value),
|
|
|
+ filter: (value, record) => (record.area ?? '').includes(value),
|
|
|
slotName: 'name-filter',
|
|
|
icon: () => h(IconSearch)
|
|
|
- }" :width="220">
|
|
|
+ }" :width="150">
|
|
|
<template #cell="{ record }">
|
|
|
- {{ record.result.pass_tit }}
|
|
|
+ {{ record.area }}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
<a-table-column title="乐跑距离" :width="100" ellipsis tooltip>
|
|
|
<template #cell="{ record }">
|
|
|
- {{ record.result.distance }} Km
|
|
|
+ {{ record.distance ? `${Number(record.distance).toFixed(2)} Km` : '' }}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
<a-table-column title="跑步时长" :width="100" ellipsis tooltip>
|
|
|
<template #cell="{ record }">
|
|
|
- {{ formatSecondsToMinSec(record.result.time) }}
|
|
|
+ {{ record.distance ? formatSecondsToMinSec(record.time) : `预估10~20分钟` }}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
<a-table-column title="平均配速" :width="90" ellipsis tooltip>
|
|
|
<template #cell="{ record }">
|
|
|
- {{ calculatePace(record.result.time, record.result.distance) }}
|
|
|
+ {{ record.distance ? calculatePace(record.time, record.distance): ''}}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
- <a-table-column title="乐跑时间" :width="145" ellipsis tooltip>
|
|
|
+ <a-table-column title="开始时间" :width="145" ellipsis tooltip>
|
|
|
<template #cell="{ record }">
|
|
|
- {{ stramptoTime(record.time) }}
|
|
|
+ {{ stramptoTime(record.startTime) }}
|
|
|
+ </template>
|
|
|
+ </a-table-column>
|
|
|
+ <a-table-column title="结束时间" :width="145" ellipsis tooltip>
|
|
|
+ <template #cell="{ record }">
|
|
|
+ {{ record.endTime ? stramptoTime(record.endTime) : '' }}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
<a-table-column title="" :width="100" fixed="right">
|
|
|
@@ -286,7 +291,7 @@ GetNotice()
|
|
|
}
|
|
|
|
|
|
.zero {
|
|
|
- background-color: rgb(var(--orange-6));
|
|
|
+ background-color: rgb(var(--blue-6));
|
|
|
}
|
|
|
|
|
|
.one {
|