feat: 编排页面显示预计时长
1. 接收后端estimatedDuration字段 2. 场地视图合计时间列显示预计时长 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot]
parent
e1f13dae0d
commit
279af5f8b6
@@ -483,7 +483,7 @@ export default {
|
|||||||
participant: group.type,
|
participant: group.type,
|
||||||
team: 1, // 队伍数量,可以从分组中计算
|
team: 1, // 队伍数量,可以从分组中计算
|
||||||
number: group.items?.length || 0, // 参赛人数
|
number: group.items?.length || 0, // 参赛人数
|
||||||
duration: 0, // 合计时间,如果后端有数据可以显示
|
duration: group.estimatedDuration || 0, // 合计时间
|
||||||
status: group.venueName, // 显示场地名称
|
status: group.venueName, // 显示场地名称
|
||||||
venueName: group.venueName,
|
venueName: group.venueName,
|
||||||
hint: '' // 可以根据需要添加提示信息
|
hint: '' // 可以根据需要添加提示信息
|
||||||
@@ -987,6 +987,7 @@ export default {
|
|||||||
venueName: group.venueName,
|
venueName: group.venueName,
|
||||||
timeSlot: group.timeSlot,
|
timeSlot: group.timeSlot,
|
||||||
timeSlotIndex: group.timeSlotIndex,
|
timeSlotIndex: group.timeSlotIndex,
|
||||||
|
estimatedDuration: group.estimatedDuration || 0,
|
||||||
items: (group.participants || []).map(p => ({
|
items: (group.participants || []).map(p => ({
|
||||||
id: p.id,
|
id: p.id,
|
||||||
schoolUnit: p.schoolUnit,
|
schoolUnit: p.schoolUnit,
|
||||||
@@ -1201,6 +1202,7 @@ export default {
|
|||||||
venueName: group.venueName,
|
venueName: group.venueName,
|
||||||
timeSlot: group.timeSlot,
|
timeSlot: group.timeSlot,
|
||||||
timeSlotIndex: group.timeSlotIndex,
|
timeSlotIndex: group.timeSlotIndex,
|
||||||
|
estimatedDuration: group.estimatedDuration || 0,
|
||||||
participants: group.items.map((item, index) => ({
|
participants: group.items.map((item, index) => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
schoolUnit: item.schoolUnit,
|
schoolUnit: item.schoolUnit,
|
||||||
@@ -1317,6 +1319,7 @@ export default {
|
|||||||
venueName: group.venueName,
|
venueName: group.venueName,
|
||||||
timeSlot: group.timeSlot,
|
timeSlot: group.timeSlot,
|
||||||
timeSlotIndex: group.timeSlotIndex,
|
timeSlotIndex: group.timeSlotIndex,
|
||||||
|
estimatedDuration: group.estimatedDuration || 0,
|
||||||
participants: group.items.map((item, index) => ({
|
participants: group.items.map((item, index) => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
schoolUnit: item.schoolUnit,
|
schoolUnit: item.schoolUnit,
|
||||||
|
|||||||
Reference in New Issue
Block a user